SolveItproblems

SolveITProblems is a project of QFormat.net intellectual club

SolveITProblems это проект интеллектуального клуба QFormat.net

понедельник, 26 ноября 2012 г.

Tomcat Management from Command Line


What will you do, if you have a tomcat where you have manager but access is available only for the localhost and you have only ssh access? The only way, is to use command line utilities. See how:

Tomcat 5.5

get the list of apps and their status

wget http://username:password@host:port/manager/list -O - -q

undeploy the app

wget "http://username:password@host:port/manager/undeploy?path=/appname" -O - -q
deploy the app

wget "http://username:password@host:port/manager/deploy?path=/appname" -O - -q

stop the app

wget "http://username:password@host:port/manager/stop?path=/appname" -O - -q


start the app

wget "http://username:password@host:port/manager/start?path=/appname" -O - -q

Enjoy!

1 комментарий: