最近在利用nginx做web后端服务开发,做第三方http模开发,无聊记录一哈操作nginx的方法(日志debug,启动,ngin.conf配置等等)
- 开启调试日志: 要开启调试日志,首先需要在配置Nginx时打开调试功能,然后编译:
./configure --with-debug ...
2.修改nginx.conf文件
daemon off;
master_process off;
本文介绍了如何在开发nginx第三方模块时进行调试日志的设置,包括在nginx.conf中启用daemon off和master_process off选项,以实现printf输出日志到终端,以及nginx的启动和关闭方法。
最近在利用nginx做web后端服务开发,做第三方http模开发,无聊记录一哈操作nginx的方法(日志debug,启动,ngin.conf配置等等)
./configure --with-debug ...
2.修改nginx.conf文件
daemon off;
master_process off;
2712
1202