Restart Tomcat in Linux

Source: Internet
Author: User

In Linux, Tomcat restarts in Linux and Tomcat is restarted using commands! First, go to the bin directory cd/usr/local/Tomcat/bin under tomcat and use Tomcat to close the command. /shutdown. sh check if Tomcat is used to disable ps-ef | grep java. If the following similar information is displayed, it means that Tomcat has not disabled root 7010 1 0 Apr19 yet? 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 = 256 m-XX: MaxNewSize = 256 m-XX: PermSize = 256 m-XX: MaxPermSize = 256 m-XX: + DisableExplicitGC-Djava. util. logging. manager = org. apache. juli. classLoaderLogManager-Djava. endorsed. dirs =/usr/local/tomcat/endorsed-linoleic Sspath/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 * If You Want To directly kill Tomcat, you can use the kill command, directly kill the Tomcat process kill-9 7010 and check whether Tomcat has disabled ps-ef | grep java. If the following information appears, it indicates that Tomcat has disabled root 7010 1 0 Apr19? 00:30:30 [java] <defunct> Finally, start Tomcat. /startup. sh Note: Use the root user to log on to the Linux system. Enter the Tomcat directory correctly. Restart Tomcat after confirming that Tomcat is disabled. Otherwise, an exception occurs when the port is occupied.

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.