Linux (CentOS) install Tomcat

    The third step of deploying the Java Web project: Install Tomcat.

    Software version

    1. Transfer files

rz

     2. Unzip the zip file

[root@localhost home]# unzip apache-tomcat-8.0.28.zip

     3. Modify bin/catalina.sh and add environment variables

[root @ localhost apache-tomcat-8.0.28] # vi bin / catalina.sh
//Add to
CATALINA_HOME = /usr/local/apache-tomcat-8.0.28

     4. Add execute permission

[root@localhost apache-tomcat-8.0.28]# chmod +x bin/*.sh

     5. Start Tomcat

[root@localhost apache-tomcat-8.0.28]# bin/startup.sh

     6. If the service cannot be accessed, turn off the firewall

[root@localhost ~]# /etc/init.d/iptables stop

   Normal access is as follows:

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326894183&siteId=291194637