Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Nginx error log (error_log) configuration and detailed information explanation

2025-01-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Nginx status message (status) configuration and detailed information explanation

Like php-fpm, nginx has a built-in status page, which is very helpful for understanding the status of nginx and monitoring nginx. For subsequent zabbix monitoring, we need to take a look at the status page of nginx.

Introduction to Nginx status Information (status)

Nginx software is compiled with another with-http_stub_status_module module. The function of this module is to record the basic access status information of Nginx and let users know the working status of Nginx. To use the state module, you must add the-- with-http_stub_status_module parameter at compile time.

You can check whether the above module support is set when compiling and installing Nginx by the following methods:

[root@CentOS] # nginx-V

Nginx version: nginx/1.12.0

Built by gcc 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC)

Built with OpenSSL 1.0.1e-fips 11 Feb 2013

TLS SNI support enabled

Configure arguments:-user=nginx-- group=nginx-- prefix=/application/nginx-1.12.0/-- with-http_v2_module-- with-http_ssl_module-- with-http_sub_module-- with-http_stub_status_module-- with-http_gzip_static_module-- with-pcre

Configure Nginx status

The specific configuration process is as follows:

(1) generate status configuration and add state configuration parameters

Do the following:

[root@CentOS ~] # cat > > / application/nginx/conf/status.conf

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 253

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report