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后访问

http://ip/status

具体内容可以参考官方的说明文档

分类: nginx使用方法 标签: 暂无标签

评论

暂无评论数据

暂无评论数据

目录