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