Created
June 5, 2018 03:00
-
-
Save taveek/f95abd07c21803076daed0f530609127 to your computer and use it in GitHub Desktop.
JBOSS standalone operation scripts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
JBOSS_HOME=/usr/local/share/jboss | |
$JBOSS_HOME/bin/jboss-cli.sh -c --controller=localhost:9999 --command="cd deployment,cd myapp.war, read-attribute status" --user=app1 --password=password |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
JBOSS_HOME=/usr/local/share/jboss | |
$JBOSS_HOME/bin/jboss-cli.sh -c --controller=localhost:9999 --command="read-attribute server-state" --user=app1 --password=password |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
JBOSS_HOME=/usr/local/share/jboss | |
$JBOSS_HOME/bin/jboss-cli.sh --connect --controller=0.0.0.0:9999 command=:shutdown --user=app1 --password=password |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
JBOSS_HOME=/usr/local/share/jboss | |
$JBOSS_HOME/bin/standalone.sh -Djboss.bind.address=0.0.0.0 -Djboss.bind.address.management=0.0.0.0 > logfile < /dev/null 2>&1 & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment