nginx学习

Nginx ("engine x") ,一个轻量级、高性能的HTTP和反向代理服务器

 中文文档:

http://www.nginx.cn/doc/

 

配置解读

https://www.cnblogs.com/knowledgesea/p/5175711.html

 

windows下的一些操作命令

https://blog.csdn.net/Aliloke/article/details/78387908

 

简单配置:

server {
listen 8080;
server_name judicial;

location / {
proxy_pass http://127.0.0.1:9006;
}
}

 

windows下命令:

start nginx

nginx -s stop

nginx -s quit

stop 是快速停止nginx ,可能并不保存相关信息,quit 是完整有序的停止nginx,并保存相关信息

重新加载配置

nginx -s reload

重新打开日志

nginx -s reopen

 

linux:

启动
./nginx

重启
kill -HUP 主进程号或进程号文件路径
或者
cd /usr/local/nginx/sbin
./nginx -s reload

判断配置文件是否正确 
nginx -t -c /usr/local/nginx/conf/nginx.conf
或者
cd /usr/local/nginx/sbin
./nginx -t

 

 

https配置:

https://blog.csdn.net/smartdt/article/details/80027579

https://www.cnblogs.com/reghao/p/8504719.html

 

windows下配置刷新无效:

https://blog.csdn.net/flyspace/article/details/77938606

https://blog.csdn.net/yanyu529584640/article/details/76167562

 

负载均衡:

https://blog.csdn.net/zhangskd/article/details/50194069

 

posted @ 2016-09-27 09:29  malcome  阅读(52)  评论(0)    收藏  举报