- nginx是一个高性能的http和反向代理服务器,也是一个IMAP/pop3/STMP服务器。
- 下载nginx后解压缩,直接点击nginx.exe即可启动服务器;
- 然后打开网页输入http://localhost,如果出现welcome to nginxx 即安装成功
- 在DOS窗口中输入nginx -s -stop;//关闭nginx
- nginx -s -reload;//重新加载配置
- Nginx的负载均衡的配置:
- 打开nginx->conf->nginx.conf进行如下配置:
- 还可以在upstream中写上服务器的权重weight=xxx,即该服务器响应的优先级
Nginx
原文:https://www.cnblogs.com/q-1993/p/10617231.html