Get the App
SLTechnology News&Howtos  ›  Servers  › 

Nginx status message (status) configuration and detailed information explanation

Shulou Source: shulou.com Published: 2022-06-03 06:02:44 10月24日 Update

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

Tags: Status information configuration module processing results compilation parameters customer in progress monitoring and information success three user function meaning client tool situation Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi MySQL Microsoft Shulou Information NVidia