Home>Article>Operation and Maintenance> How to start apache tomcat
How to start Apache Tomcat? Prerequisites: Install Java JDK and download and unzip Tomcat. Start Tomcat: Run startup.bat (Windows) or ./startup.sh (Mac/Linux) in the Tomcat directory. Verify startup: Visit http://localhost:8080/ to view the Tomcat welcome page. Optional: Edit conf/server.xml to configure. Stop Tomcat: Run shutdown.bat (Windows) or ./shutdown.sh (Mac/
How to start Apache Tomcat
Apache Tomcat is a popular open source Java servlet container used to deploy and run web applications. To start Tomcat, follow these steps:
Prerequisites:
Start Tomcat:
Navigation Go to the Tomcat directory:Use the "cd" command to navigate to the Tomcat installation directory, for example:
cd C:\apache-tomcat-9.0.56
Start Tomcat:In the Tomcat directory, run the following command :
startup.bat
Or for Mac/Linux:
./startup.sh
Verify that Tomcat is started:Open a browser and navigate to the following URL:
http://localhost:8080/
If you see the Tomcat welcome page, Tomcat has started successfully.
Optional Steps:
conf/server.xml
file.Stop Tomcat:To stop Tomcat, run the following command in the command prompt:
shutdown.bat
Or for Mac/Linux:
./shutdown.sh
The above is the detailed content of How to start apache tomcat. For more information, please follow other related articles on the PHP Chinese website!