首页 > 其他 > 详细

启动和关闭JBoss As 7.1.1脚本

时间:2014-07-23 13:20:26      阅读:352      评论: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脚本,布布扣,bubuko.com

启动和关闭JBoss As 7.1.1脚本

原文:http://blog.csdn.net/john_f_lau/article/details/38058849

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!