start/stop JBoss 7

1. start JBoss7 in background and bind ip address: -b 10.1.1.9

standalone.sh -b 10.1.1.9 &

2. stop JBoss7 with the CLI

jboss-cli.sh --connect --command=:shutdown

Note: connect defaults to local. you can define "server:port" for connect: --controller=localhost:9999

thus, the command would be:

jboss-cli.sh --connect --controller=localhost:9999 --command=:shutdown

3. add user for JBoss7 admin console

use tool "add-user.sh". new user would be saved to "mgmt-users.properties", with passwd hashed.

猜你喜欢

转载自jxee.iteye.com/blog/1672965