标签:
1、在windows下安装nginx,解压之后,在此目录下,dos进去,start nginx
2、配置文件:
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
upstream localhost {
server localhost:8080 weight=1 max_fails=3 fail_timeout=10s;
server localhost:8085 weight=1 max_fails=3 fail_timeout=10s;
}
server {
listen 8086;
server_name localhost;
location / {
proxy_pass http://localhost;
}
}
}
3、疑惑
标签:
原文地址:http://www.cnblogs.com/li1111xin/p/4795500.html