Clean Tomcat cache in Linux
Clean Tomcat cache in Linux
1. Go to the tomcat/bin directory and run the sh shutdown. sh command to close tomcat.
2. Run the ps-aux | grep tomcat command to check whether the tomcat command is actually disabled.
3. If kill-9 # pid is not disabled to completely disable tomcat (# pid is the tomcat process ID)
Root 17505 0.0 0.0 63344 768 pts/1 S + grep tomcat
User pid % CPU % MEM VSZ RSS TTY STAT START TIME COMMAND
4. Enter the tomcat/work directory and run rm-rf Catalina to delete the cached files.
5. Execute the ls command to confirm whether to delete the file. If no Catalina folder is found in the work directory, the file is successfully deleted.
6. Go to the tomcat/bin directory and run the sh startup. sh command to restart tomcat.
In this case, OK. Hahaha.
For more Tomcat tutorials, see the following:
Install and configure the Tomcat environment in CentOS 6.6
Install JDK + Tomcat in RedHat Linux 5.5 and deploy Java Projects
Tomcat authoritative guide (second edition) (Chinese/English hd pdf + bookmarks)
Tomcat Security Configuration and Performance Optimization
How to Use Xshell to view Tomcat real-time logs with Chinese garbled characters in Linux
Install JDK and Tomcat in CentOS 64-bit and set the Tomcat Startup Procedure
Install Tomcat in CentOS 6.5
Tomcat details: click here
Tomcat: click here
This article permanently updates the link address: