1. Use the shell tool to access the Tomcat folder under Linux
cd/usr/the path of your Tomcat
2. Enter the bin directory
CD bin/
3. Call the Close script
./shutdown.sh
4. Check to see if Tomcat is shutting down
Ps-ef|grep Java
If the following conditions are true, the description is closed
Root 13010 1 0 Apr19? 00:30:30 [Java] <defunct>
If the following similar information is displayed, Tomcat is not turned off
Root <span style= "color: #FF6666;" >13010 </span> 1 0 Apr19? 00:30:13/usr/local/java/bin/java-djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties- Djava.awt.headless=true-dfile.encoding=utf-8-server-xms1024m-xmx1024m-xx:newsize=256m-xx:maxnewsize=256m-xx: Permsize=256m-xx:maxpermsize=256m-xx:+disableexplicitgc-djava.util.logging.manager= org.apache.juli.classloaderlogmanager-djava.endorsed.dirs=/usr/local/tomcat/endorsed-classpath/usr/local/ tomcat/bin/bootstrap.jar-dcatalina.base=/usr/local/tomcat-dcatalina.home=/usr/local/tomcat-djava.io.tmpdir=/ Usr/local/tomcat/temp org.apache.catalina.startup.Bootstrap Start
5. Delete the original project file under WebApps
CD.. Go back to the top level directory CD webapps/// enter into the WebApps Directory RM-RF project folder name //The delete operation cannot be recovered, please be careful to operate //rmdir can only delete empty folders!
6. Use the shell to upload the war package to Tomcat's WebApps
7. Start Tomcat
If you have more than one tomcat running on the server and you call Ps-ef|grep Java on the command, simply observe the information displayed in the message that there is no project information for the tomcat you want to close, if it is not stated that the shutdown was successful
If it still exists, you can end the Tomcat process by using the Task Manager.
The command to end the process is as follows
kill-9 <span style= "color: #FF6666;" >13010</span>//13010 of which are task processes
Upgrade the application server in Tomcat under Linux