The third step of deploying the Java Web project: Install Tomcat.
Software version
- Tomcat: Click to download apache-tomcat-8.0.28.zip download password 1aa8
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: