You need to build nginx with the option: with-debug.
需要重新编译nginx,并加上–with-debug
Then in nginx.conf, you should write
1. error_log logs/error.log debug;
And you should set
1. master_process off;
2. 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如下配置:
1. error_log logs/error.log debug; # 只记录调试日志
2. master_process off; # 简化调试 此指令不得用于生产环境
3. daemon off; # 简化调试 此指令可以用到生产环境
分享到:
相关推荐
How To Install nginx on CentOS 6 with yum
In doing so you will learn how to tune NGINX for various situations, what some of the more obscure configuration options do, and how to design a decent configuration to match your needs. You will no ...
How to load balance Nginx and use it as a highly available web platform. How to monitor traffic and automate common administrative tasks. How to use scripts to perform routine checks for health issues...
How to configure content caching, load balancing, monitoring, high availability (HA), and other critical NGINX features. How to protect your applications: mitigate DDoS attacks, stop Layer 7 attacks, ...
This practical guide walks you through how to tune one of the leading free open source web servers to attain optimal performance for high-traffic sites. It also explores ways to improve network ...
NGINX caching and cache clustering are powerful tools that can ... This ebook is a key resource for learning how NGINX caching capabilities work and how to put NGINX to use in your web infrastructure.
nginx 离线安装包nginx 离线安装包
nginx镜像资源nginx镜像资源nginx镜像资源nginx镜像资源nginx镜像资源nginx镜像资源
Nginx是由伊戈尔·赛索耶夫为俄罗斯访问量第二的Rambler.ru站点(俄文:Рамблер)开发的,第一个公开版本0.1.0发布于2004年10月4日。 其将源代码以类BSD许可证的形式发布,因它的稳定性、丰富的功能集、示例...
Nginx安装包Nginx安装包
Discover possible interactions between Nginx and Apache to get the best of both worlds Learn to exploit the features offered by NGinx for your web applications Get the newest techniques available, ...
3.找到D:\nginx\conf下nginx.conf文件用记事本打开 在文段末尾大括号前加上 include proxy.conf;(就是加载刚刚新建的那个文件(注意路径)) 4.进入cmd 进入D盘: d: 进到nginx文件夹下:cd nginx 启动nginx.exe:...
nginx替代apache,nginx替代方案,nginx代替apache与jbos,nginx+jboss结合
亲测好用.nginx-1.13.3,nginx1.13.3不存在信息泄漏漏洞安全稳定nginx版本,不存在漏洞 nginx-1.13.3 nginx1.13.3 安全稳定 nginx版本
Nginx 1.22.0 Linux 版本,解压安装。 Nginx是一款轻量级的Web 服务器/反向代理服务器及电子邮件(IMAP/POP3)代理服务器,在BSD-like 协议下发行。其特点是占有内存少,并发能力强,事实上nginx的并发能力在同类型...
nginx.conf nginx-1.20.1.tar.gz 这是关于centos8的nginx 和nginx 的配置https文件
nginx安装环境及nginx_1.18.0安装包,gcc、g++、pcre、zlib、nginx包
you will learn how to install NGINX, where the main configuration files are, and commands for administration. You will also learn how to verify your installation and make requests to the default ...
Nginx全能指南是一本介绍Nginx服务器的书,首先,简要介绍Nginx的基本概念和作用,如反向代理、负载均衡等。然后,列举Nginx的优点,如高性能、可扩展性、稳定性等。接着,介绍如何安装和配置Nginx,并提供一些实用...
第1章 Nginx简介.pdf第2章 Nginx服务器的安装与配置.pdf第3章 Nginx的基本配置与优化.pdf第4章 Nginx与PHP(FastCGI)的安装、配置与优化.pdf第5章 Nginx与JSP、ASP.NET、Perl的安装与配置.pdf第6章 Nginx HTTP负载...