下载 [root@HeiYaoTech wetoo]# cd /usr/local [root@HeiYaoTech local]# wget
[root@HeiYaoTech local]# tar -zxvf apache-tomcat-7.0.78.tar.gz
[root@HeiYaoTech local]# ls apache-tomcat-7.0.78 bin games lib libexec share apache-tomcat-7.0.78.tar.gz etc include lib64 sbin src
[root@HeiYaoTech local]# cd apache-tomcat-7.0.78 [root@HeiYaoTech apache-tomcat-7.0.78]# ls bin lib logs RELEASE-NOTES temp work conf LICENSE NOTICE RUNNING.txt webapps
[root@HeiYaoTech apache-tomcat-7.0.78]# cd bin [root@HeiYaoTech bin]# ls bootstrap.jar daemon.sh startup.sh catalina.bat digest.bat tomcat-juli.jar catalina.sh digest.sh tomcat-native.tar.gz catalina-tasks.xml setclasspath.bat tool-wrapper.bat commons-daemon.jar setclasspath.sh tool-wrapper.sh commons-daemon-native.tar.gz shutdown.bat version.bat configtest.bat shutdown.sh version.sh configtest.sh startup.bat
启动Tomcat
[root@HeiYaoTech bin]# ./startup.sh
防火墙设置
[root@HeiYaoTech bin]# cd /etc/firewalld/services/ 在/etc/firewalld/services/目录下新建一个名为tomcat.xml的文件,内容如下: