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?