简体   繁体   English

从bash脚本启动/停止jboss 7.1服务器

[英]start/stop jboss 7.1 server from bash script

I am new to bash scripting. 我是bash脚本的新手。 I know the basic commands of start/stop jboss server ie "service jboss start"/"service jboss stop" respectively, but I don't know how to start/stop it from bash scripting. 我知道启动/停止jboss服务器的基本命令,分别是“ service jboss start” /“ service jboss stop”,但是我不知道如何从bash脚本启动/停止它。 kindly help me in resolving this problem. 请帮助我解决这个问题。

Go to the 'bin' directory where jboss is unpacked and simply run it from shell: 转到解压了jboss的“ bin”目录,只需从shell运行它即可:

./standalone # to run in foreground (use Ctrl-C to stop)
or
./standalone 2>&1 > jboss.log &  # to run jboss in background, use ps & kill command to stop

Before starting, review and edit all settings in standalone.conf, including the JAVA_HOME 在开始之前,请查看并编辑standalone.conf中的所有设置,包括JAVA_HOME

To set up jboss start as a Linux service look here 要将jboss start设置为Linux服务,请看这里

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM