nginx控制,配置
来源:互联网 发布:桃子圈微博全数据 编辑:程序博客网 时间:2024/06/06 00:35
TERM, INT fast shutdown
QUIT graceful shutdown
HUP changing configuration, keeping up with a changed time zone (only for FreeBSD and Linux), starting new worker processes with a new configuration, graceful shutdown of old worker processes
USR1 re-opening log files
USR2 upgrading an executable file
WINCH graceful shutdown of worker processes
kill -USR2 \`cat /usr/local/nginx/logs/nginx.pid\`
nginx -t 测试配置是否正确
nginx -s reload 加载最新配置
nginx -s stop 立即停止
nginx -s quit 优雅停止
nginx -s reopen 重新打开日志
worker_process 工作进程,推荐cpu数x核数
events 配置nginx连接信息
worker_connections 每个工作进程支持的连接数
http 配置nginx的http信息
server 配置虚拟主机信息 access_log 指定日志文件的位置,格式名称 location ~ 正则匹配 = 精准匹配 空 一般匹配 expires 缓存时间 rewrite 匹配地址 重写地址 if -d -f -e = ~ ~* set $a 1 break proxy_pass 代理地址upstream 负载服务器 gzip 常用配置参数 gzip 开启,关闭gzip gzip_buffers 压缩在内存中缓冲几块,每块多大 gzip_comp_leverl 压缩等级1-9,推荐6 gzip_disable 正则匹配的禁用gzip gzip_min_length 开始压缩的最小长度 gzip_http_version 开始压缩的htp协议版本 gzip_proxied 设置请求者代理服务器,该如何缓存内容 gzip_types 对哪些mime类型做压缩 gzip_vary 是否传输gzip压缩标志
更多信息请参考官网文档http://nginx.org/en/docs/
阅读全文
0 0
- nginx控制,配置
- Nginx 访问控制配置
- nginx配置学习-nginx控制
- nginx rtmp配置访问控制
- 如何配置Nginx+Fastcgi实现控制硬件
- nginx配置访问控制、rewrite应用、nginx代理
- nginx添加访问控制htpasswd及status配置
- nginx 信号控制 Controlling nginx
- Varnish+Nginx 配置----Nginx
- Nginx-配置-nginx.conf
- 【Nginx】Nginx配置优化
- 105 nginx nginx 配置
- nginx nginx.conf 配置
- nginx 配置
- nginx 配置
- Nginx配置
- nginx配置
- NGINX配置
- shiro整合开发-认证连接数据库
- POJ
- Hdu-3507 Print Article
- 连号区间(*)
- 截止2017年5月19日小虎软考粉丝有798人
- nginx控制,配置
- 基于Spring Boot和Spring Cloud实现微服务架构学习(五)-Docker总结
- Spring Boot 系列<一>:Eclipse安装spring-tool-suite
- Servlet的@WebServlet注解
- OpenCV contrib 3.2.0扩展模块添加与编译(VS2017+OpenCV3.2.0)详解与排坑
- 解决两个input设置了一样的高度,实际高度却不一样问题
- P1047 校门外的树
- 两数之和
- Arraylist()的用法