Clean Tomcat cache in Linux

Source: Internet
Author: User

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:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.