http://nginx.org/en/download.html
下载稳定版
解压运行nginx.exe(闪一下就没有了,并没有打开命令行窗口)
任务管理器里面会有两个nginx.exe
打开http://127.0.0.1
修改conf/nginx.conf,proxy_pass的url后面要加/(不加不是根目录)
server_name localhost:8080; location / { #root html; #index index.html index.htm; proxy_pass http://127.0.0.1:8080/; }
启动tomcat,打开http://127.0.0.1,跳转到tomcat页面