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.