1.下載tomcat7apache
wget http://mirrors.hust.edu.cn/apache/tomcat/tomcat-7/v7.0.85/bin/apache-tomcat-7.0.85.tar.gz
2.解壓瀏覽器
tar -zxvf apache-tomcat-7.0.85.tar.gz
3.添加端口8080到防火牆並重啓tomcat
firewall-cmd --zone=public --add-port=8080/tcp --permanent firewall-cmd --reload
4.啓動tomcattcp
cd apache-tomcat-7.0.85/bin/ ./startup.sh
5.打開瀏覽器測試測試
出現一隻三腳貓,至此安裝成功spa