Startup, shutdown, and Error Tracking of tomcat services in linux
Source: Internet
Author: User
In linux, tomcat Service Startup, shutdown, and Error Tracking-Linux Enterprise Application-Linux server application information. The following is a detailed description. In linux, after the tomcat service is remotely connected to the server, the following methods are usually used to start and close the tomcat service:
1) Start the tomcat Service
Go to the bin directory in the main directory of tomcat and run the following command:
./Startup. sh
2) disable the tomcat Service
Go to the bin directory in the main directory of tomcat and run the following command:
./Shutdown. sh
1) the startup tomcat has a drawback. when the client is disconnected, the tomcat service is immediately closed. You can run the following command as a linux service.
3) start tomcat as a service
Go to the bin directory in the main directory of tomcat and run the following command:
Nohup./startup. sh &
The logs of tomcat started in the preceding method are written to the corresponding log file, but the output information and error information of the tomcat console cannot be viewed dynamically, run the following command to start the tomcat service in Console mode, so that you can track and view the output information in the background.
4) start tomcat in the console Dynamic Output Mode
Go to the bin directory in the main directory of tomcat and run the following command:
./Catalina. sh run
Note: 4) if the client connection is closed, the service will be stopped immediately.
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.