![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Nginx
wuwh无非
这个作者很懒,什么都没留下…
展开
-
win7系统下安装、配置、测试nginx
1.nginx.org 下载nginx的稳定版zip包。2.解压至本地目录如D:\nginx(主)。功能:1. cd到D:\nginx目录2. 启动nginx: nginx -c conf\nginx.conf3. nginx.conf 关键配置文件如下: upstream www.wu.com{ server localhost:8090 weight=3;原创 2016-03-02 18:49:22 · 833 阅读 · 0 评论 -
nginx的常用命令
Starting, Stopping, and Reloading ConfigurationTo start nginx, run the executable file. Once nginx is started, it can be controlled by invoking the executable with the -s parameter. Use the followin原创 2016-03-02 18:50:36 · 407 阅读 · 0 评论 -
nginx配置文件nginx.conf解读
server { listen 8080; root /data/up1; location / { }}This will be a simple server that listens on the port 8080 (previously, the listen directive has not been specified since转载 2016-03-03 19:07:09 · 386 阅读 · 0 评论 -
nginx做负载均衡,怎么在有宕机情况出现时保证网站的响应速度
基础知识:1. nginx做负载均衡时,默认每台服务器的权重相等。2. 如果要给某台服务器加权重,则通过下面的方式 upstream www.wu.com{ server localhost:8084 weight=3; server 10.10.105.149:8080 weight=1; }3. 健康监测机制: nginx会根据预先设置的权重转发请求,原创 2016-03-05 11:01:24 · 6399 阅读 · 0 评论 -
nginx 代理服务器location的配置规则
1. A regular expression is preceded with the tilde (~) for case-sensitive matching, or the tilde-asterisk (~*) for case-insensitive matching2.原创 2016-03-06 00:05:13 · 714 阅读 · 0 评论