Running Tomcat
After Tomcat is started, check logs and use a browser to access the Tomcat server to verify the Tomcat startup status. To stop Tomcat, run the stop command when no service is running.
- Go to the Tomcat installation directory cd /home/apache-tomcat-9.0.69 and start Tomcat.
1 2
cd /home/apache-tomcat-9.0.69 sh bin/startup.sh
If "Tomcat started" is returned, Tomcat is successfully started.

- Verify the Tomcat startup status.
- Check the Tomcat log files to see the Tomcat startup status.
1tail -n 200 logs/catalina.out
The protocol and port used by the Tomcat server is displayed:

- Switch to another terminal window and run the curl command to access the default port (for example, http://localhost:8080) of the application.
1curl http://localhost:8080If information similar to the following is displayed, Tomcat has been started successfully.

- Optional: If your PC and the server are in the same network segment, or if your PC can be configured with a server proxy, you can use a browser to visit the IP address and port of the Tomcat server (HTTP and port 8080 are used by default). If the web page can be loaded, Tomcat is started correctly.
If the Tomcat server fails to be accessed, check whether the network segment of your PC is the same as that of the server, or choose Settings > Network and Internet > Proxy > Use Proxy Server to check whether the configuration is correct.
- Check the Tomcat log files to see the Tomcat startup status.
- Optional: Stop Tomcat.
To stop Tomcat, run the stop command when no service is running. Ensure that no important services or requests are being processed to prevent data loss or service interruption.
1sh /home/apache-tomcat-9.0.69/bin/shutdown.sh