I am new to bash scripting. 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. kindly help me in resolving this problem.
Go to the 'bin' directory where jboss is unpacked and simply run it from 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
To set up jboss start as a Linux service look here
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.