startup, shutdown, and error tracking for the Tomcat service under Linux

Source: Internet
Author: User
The startup, shutdown, and error tracking of the Tomcat service under Linux, after remote connection to the server, typically starts the shutdown of the Tomcat service in several ways:

1). Start the Tomcat service

Go to the Bin directory under the Tomcat home directory and execute the following command:

./startup.sh

2). Turn off the Tomcat service

Go to the Bin directory under the Tomcat home directory and execute the following command:

./shutdown.sh

There is a disadvantage of Tomcat booting through 1, and when the client connection is disconnected, the Tomcat service shuts down immediately and can be run as a Linux service with the following command

3). Start Tomcat as a service

Go to the Bin directory under the Tomcat home directory and execute the following command:

Nohup./startup.sh &

Tomcat launched in the above manner, its log will be written to the corresponding log file, and not dynamically view the Tomcat console output information and error conditions, the following command can be launched in console mode Tomcat service, so as to facilitate the tracking of background output information

4). console dynamic output mode start Tomcat

Go to the Bin directory under the Tomcat home directory and execute the following command:

./catalina.sh Run

Note that by 4) the service is started, and if the client connection is closed, the services will stop immediately

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.