Linux released web app to Tomcat

Recommended for you: Get network issues from WhatsUp Gold. Not end users.

1 the webContent content to war packet: command into the $workspacePATH/projectName/webContent directory, run the command:

jar -cvfM0 projectName.war ./

2 war packets will be sent to the server: run the command

scp projectName.war userName@serverIP:$TOMCAT_HOME/webapps/

Enter, enter the password, a progress indicator in the process.

3 login to server: run the command

ssh serverIP

Enter, enter the password, can be successful landing.

4 restart Tomcat: run the command

./$TOMCAT_HOME/bin/shutdown.sh
./$TOMCAT_HOME/bin/startup.sh

Check whether Tomcat has been closed,

ps -ef|grep java

If the display information of tomcat, indicating that Tomcat is not closing, You can run the command

 kill -9 8823


5 see Project Log: run the command

tail -f $TOMCAT_HOME/logs/catalina.out

6 access to http://serverIP:port/projectName, check whether the normal.



The ending...


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download

Posted by Ronald at November 08, 2013 - 1:34 AM