How to debug NginX? 如何调试NginX
来源:互联网 发布:欧阳娜娜 黑料 知乎 编辑:程序博客网 时间:2024/06/06 14:12
You need to build nginx with the option: --with-debug.
Then in nginx.conf, you should write
error_log logs/error.log debug;
And you should set
master_process off;
daemon off;
in nginx.conf to simplify debugging.
Then load some pages to test, and look up the logs/error.log for what happen.
如果需要调试Nginx,你需要增加--with-debug选项重新编译一个Nginx。
同时,nginx.conf 如下配置:
error_log logs/error.log debug; # 只记录调试日志
你需要设置:
master_process off; # 简化调试 此指令不得用于生产环境
daemon off; # 简化调试 此指令可以用到生产环境
然后加载一些页面做测试,察看 logs/error.log 发生了什么。
- How to debug NginX? 如何调试NginX
- debug Nginx,调试Nginx
- Nginx模块如何调试
- nginx debug
- How to setup naxsi for nginx
- How to configure Nginx Gzip compression
- How to install Mod_Security on Nginx
- How to enable Nginx FancyIndex on Ubuntu
- How to debug asp.net mvc 4 source code?如何调试asp.net mvc4 源代码?
- Linux kernel: How to debug mutex deadlock 如何调试mutex死锁
- Nginx调试
- nginx 调试
- nginx调试
- NGINX 调试
- 【nginx-rtmp】02、调试日志(Debug log)
- 使用pdb调试openstack (How to debug openstack using pdb )
- Eclipse+Nginx+Debug(转)
- Nginx Intro - Debug
- 数组
- ERP的核心内容
- 使用TELNET手工操作 SMTP/POP 收发邮件
- (转)软件设计师考试复习攻略
- 补充C#基础1
- How to debug NginX? 如何调试NginX
- 字符串的“无重复”全排列非递归算法 [小算法练习]
- 我的积分怎么办啊 ?
- php面试题四
- PHP面试题五
- Web 开发与设计师速查手册大全(上)
- js中加载并解析xml文件, 动态添加标签,控件
- 一起学MFC(三)GDI编程技术之一
- Makefile与Shell的问题