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

启动和关闭JBoss As 7.1.1脚本

时间:2014-07-23 13:20:26      阅读:215      评论:0      收藏:0      [点我收藏+]

标签:style   blog   color   os   io   2014   

        启动和关闭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脚本

标签:style   blog   color   os   io   2014   

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

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