What is the command to start the Tomcat service under Linux?

Source: Internet
Author: User
After booting, shutting down, and error tracking for the Tomcat service under Linux, using Putty to connect remotely to the server, you typically start the shutdown Tomcat service in several ways:
Switch to the bin directory under the Tomcat home directory (CD Usr/local/tomcat/bin)
1. Start the Tomcat service
Mode one: Direct start./startup.sh
Mode two: Start nohup as a service./startup.sh &
Mode three: the console dynamic output mode starts./catalina.sh Run dynamically displays the console output information of the Tomcat daemon, and then exits and closes the service after CTRL + C
Explain:
Through the way one, the way the Tomcat has a disadvantage, when the client connection disconnects, the Tomcat service will stop immediately, through the two can be run as a Linux service
Tomcat initiated by way one, mode two, its log will be written to the corresponding log file, and can not dynamically view the Tomcat console output information and error conditions, through the way three can start the Tomcat service in console mode,
directly see the program Runtime background console output information, do not have to be very troublesome to open the Catalina.out log file for viewing, so that it is easy to track the background output information. The Tomcat console information includes information such as log4j and System.out.println () output.
2. Turn off Tomcat service
./shutdown.sh

What is the command to start the Tomcat service under Linux?

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.