Install Tomcat on CentOS7

The installed version is apache-tomcat-8.0.15.tar.gz

1. Unzip

tar -xzvf apache-tomcat-8.0.15.tar.gz

2. Start

cd /usr/local/tomcat8015/bin

./startup.sh

3. Verify that the installation is successful

Access ip and port, default port 8080

4. Modify the port

4.1. Open the tomcat configuration file
#vi /usr/local/tomcat8015/conf/server.xml

4.2. After opening the Tomcat configuration file, press /8080 to quickly retrieve

4.3. Modify the port, press i to change the 8080 to 80

4.4. Press :wq to save and exit

4.5, restart tomcat

5. View console output

Run ./catalina.sh run to start

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325561085&siteId=291194637