目录
1.部署nginx
2.部署两台tomcat
3.配置nginx
1.部署nginx
vim /vim/lib/systemd/system/nginx.service
2.部署两台tomcat
进入第一台装第一个tomcat
vim /etc/profile
vim /usr/local/tomcat/webapps/test/index.jsp
重启
进入第二台安装第二台tomcat
vim /usr/local/tomcat/webapps/test/index.jsp
重启
3.配置nginx
vim /usr/local/nginx/conf/nginx.conf
测试