1、複製tomcat
cp /usr/local/tomcat /user/local/tomcatX -r
2、修改/usr/local/tomcat2/conf/server.xml文件及相關設置
3、複製啓動文件 cp /etc/init.d/tomcat /etc/init.d/tomcatX
修改啓動文件
啓動
service tomcat2 start
4、修改NGINX配置
啓動
service nginx restart
5、添加對外火牆,這裏用的是8089
/sbin/iptables -I INPUT -p tcp --dport 8089 -j ACCEPT
/etc/init.d/iptables save
service iptables restart
6、阿里添加出、入端口