1.nginx的stub_status模块
1.1安装:
./configure
--prefix=/kht/nginx
--with-http_stub_status_module
1.2 修改nginx.conf配置文件
location /status {
stub_status on;
access_log on;
#登录用户名
auth_basic "root";
#登录密码文件位置
auth_basic_user_file /kht/nginx/password/htpasswd;
}
1.3
安装 yum install httpd-tools -y
创建用户和密码 htpasswd -bc /application/nginx/conf/htpasswd macy 123456
1.4
地方访问:192.168.2.130/status