nginx安装主机流量状态模块nginx-module-vts
nginx-module-vts模块网址
https://github.com/vozlt/nginx-module-vts
安装方法
git clone https://github.com/vozlt/nginx-module-vts.git
mkidr -p /usr/local/nginxtool
mv nginx-module-vts /usr/local/nginxtool
重新编译nginx,并在参数的后面加上--add-module=/usr/local/nginxtool/nginx-module-vts
完成后,在nginx.conf里加入以上内容
http模块里
vhost_traffic_status_zone;
接下来在server中加入以下内容
location /status {
vhost_traffic_status_display;
vhost_traffic_status_display_format html;
}
在重启nginx后访问
具体内容可以参考官方的说明文档
版权申明
本文系作者 @天边的云 原创发布在Loshub站点。未经许可,禁止转载。
暂无评论数据