nginx学习记录
1. 使用监控页面
安装:
安装时添加--with-http_stub_status_module配置,命令如下:
./configure --prefix=<your_path> --with-http_stub_status_module
make
make install
make
make install
配置:
conf/nginx.conf添加:
location /nginx_status {
stub_status on;
access_log off;
#allow x.x.x.x
#deny all;
}
stub_status on;
access_log off;
#allow x.x.x.x
#deny all;
}
效果
浏览器访问:http://x.x.x.x/nginx_status,效果如下:
Active connections: 1
server accepts handled requests request_time
2621 2621 2621 321347
Reading: 0 Writing: 1 Waiting: 0
server accepts handled requests request_time
2621 2621 2621 321347
Reading: 0 Writing: 1 Waiting: 0
相关推荐
似水流年梦 2020-08-09
JamesRayMurphy 2020-07-26
lizzysnow 2020-07-18
willowwgx 2020-07-18
xilove0 2020-07-09
云端漂移 2020-07-05
hnyzyty 2020-07-05
heavenautumn 2020-06-21
netuser 2020-06-14
淡风wisdon大大 2020-06-06
巴壁虎 2020-05-30
RocketJ 2020-05-28
tanrong 2020-05-20
heniancheng 2020-05-15