nginx命令

来源:互联网 发布:上海美猴网络骗局 编辑:程序博客网 时间:2024/05/29 10:53

Nginx 3个命令:
启动:start nginx.exe
停止:nginx.exe -s stop
重新加载:nginx.exe -s reload

1:配置多个tomcat,端口不一致即可
2:开启nginx-1.10.1,打开浏览器访问localhost
3:nginx.conf配置upstream server_lb{ #服务器列表
server localhost:8080
server localhost:8081
}
配置反向代理
location / {
proxy_pass:http://127.0.0.1.8081 或者http://server_lb
root html;
index index.html index.htm;
}

0 0
原创粉丝点击