Skip to content

Instantly share code, notes, and snippets.

@welsh
Created September 24, 2013 00:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save welsh/6678788 to your computer and use it in GitHub Desktop.
Save welsh/6678788 to your computer and use it in GitHub Desktop.
JBoss AS 7 Commands Cheat Sheet
# All Commands are jboss-cli.sh unless indicated
# Stop / Start JBoss Server
/host=master/server-config=server-one:stop
/host=master/server-config=server-one:start
# Check is JBoss is Up
ls -l /host=master/server-config=server-one (SHOULD Work)
Bash = ps -e -o pid -o args | grep java | grep 'server-one' | grep -v 'grep' | awk '{print $1}' (Will return just the PID of the running instance)
# Deploy War File for the First Time
deploy /tmp/my-application.war --server-groups=first-group
# Re-Deploy War File
deploy /tmp/my-application.war --force
# Test Data Source in Domain
/host=master/server=server-one/subsystem=datasources/data-source=myTestDS:test-connection-in-pool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment