
1.首先下载nginx这是我下载后的

2.解压后放到指定的目录

3.打开cmd cd到当前目录下 用 pushd命令
pushd E: ginx-1.12.2 ginx-1.12.2

启动nginx 用 start nginx

启动的过程中会有一个窗口一闪而过
4.打开浏览器访问界面

5.接下来启动tomcat



说明启动成功
6.接下来修改neginx的配置文件



7.重新访问loccalhost会跳到tomcat的页面中

8.具体的流程是
启动nginx端口号是localhost:80
启动tomcat的端口是localhost:8080
我想用localhost的端口号启动tomcat

可以配置1主多从






