1. Check whether the check status module is installed; [root@localhost ~]# nginx -V nginx version: nginx/1.12.2 built by gcc 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) configure arguments: --prefix=/usr/local/nginx --with-http_sub_module 2. If not installed, recompile and install; Ø Check status module; --with-http_stub_status_module [root@localhost ~]# cd /usr/local/src/nginx-1.12.2/ [root@localhost ~]# ./configure --prefix=/usr/local/nginx --with-http_stub_status_module [root@localhost ~]# make && make install 3. Edit the nginx configuration file; [root@localhost ~]# vim /usr/local/nginx/conf/nginx.conf server { listen 80; server_name localhost; #access_log logs/host.access.log main; location /nginx_status { stub_status on; access_log off; #allow 127.0.0.1; ##You can filter visitors to this page#deny all; } } [root@localhost ~]# nginx -t nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful [root@localhost ~]# nginx -s reload 4. Test grammar; [root@localhost ~]# curl http://192.168.10.110:80/nginx_status Active connections: 1 server accepts handled requests 1 1 1 Reading: 0 Writing: 1 Waiting: 0 5. Detailed explanation of output content;
The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Detailed graphic explanation of how to install and completely delete MySQL by decompression
>>: JavaScript uses canvas to draw coordinates and lines
123WORDPRESS.COM has explained to you the install...
When using Docker containers, it is more convenie...
1 Problem Description Vue3's combined API can...
This article records the installation of MySQL 8....
XHTML is the basis of CSS layout. jb51.net has al...
Table of contents 1. Introduction 2. About vue-si...
An optimization solution when a single MYSQL serv...
Table of contents Preparation Install VMware Work...
Password Mode PDO::__construct(): The server requ...
A brief description of environment variable confi...
Since I have changed to a new computer, all the e...
1. Why do we need to divide tables and partitions...
What is DOM? With JavaScript, you can reconstruct...
If you set the table-layer:fixed style for a tabl...
Today, when I was practicing with the Baidu page,...