cat >> /etc/nginx/conf.d/status.conf << EOF server{ listen 8085; server_name www.test2.com; location / { stub_status on; access_log /usr/local/nginx/logs/status.log; } } EOF [[email protected] conf.d]# nginx -t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful [[email protected] conf.d]# nginx -s reload [[email protected] conf.d]# [[email protected] conf.d]# [[email protected] conf.d]# curl http://192.168.1.204:8085 Active connections: 1 server accepts handled requests 3 3 3 Reading: 0 Writing: 1 Waiting: 0 Active connections 就是显示的并发量
原文地址:https://www.cnblogs.com/effortsing/p/10075769.html
时间: 2024-11-15 09:34:35