码迷,mamicode.com
首页 > 其他好文 > 详细

启动和关闭JBoss As 7.1.1脚本

时间:2016-01-21 19:53:22      阅读:150      评论:0      收藏:0      [点我收藏+]

标签:

        启动和关闭JBoss As 7.1.1,脚本例如以下djboss.sh:

#!/bin/sh
#JBOSS_HOME
JBOSS_HOME=/opt/jboss
case "$1" in
start)
echo "Starting JBoss AS7..."
sudo -u jboss sh ${JBOSS_HOME}/bin/standalone.sh &
;;
stop)
echo "Stopping JBoss AS7..."
sudo -u jboss sh ${JBOSS_HOME}/bin/jboss-cli.sh  --connect controller=IP:PORT command=:shutdown
;;
log)
echo "Showing server.log..."
tail -1000f ${JBOSS_HOME}/standalone/log/server.log
;;
*)
echo "Usage: /etc/init.d/jboss {start|stop|log}"
exit 1
;; esac
exit 0


启动和关闭JBoss As 7.1.1脚本

标签:

原文地址:http://www.cnblogs.com/bhlsheji/p/5149003.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!