nginx install nginx-module-vts-0.2.2
2024-10-151、curl -L "https://github.com/vozlt/nginx-module-vts/archive/refs/tags/v0.2.2.tar.gz" -o nginx-module-vts-0.2.2.tar.gz
2、ver=nginx-1.26.1
#wget -c http://nginx.org/download/${ver}.tar.gz -P ${LNMP}/untar
tar zxf untar/${ver}.tar.gz
./configure --prefix=/jesong/nginx \
--with-http_ssl_module \
--with-http_sub_module \
--with-http_flv_module \
--with-http_stub_status_module \
--add-module=/opt/LNMP/nginx-module-vts-0.2.2
make;
make install;
3、nginx.conf
http {
server_tokens off;
vhost_traffic_status_zone;
vhost_traffic_status_filter_by_host on;
include web.conf;
}
4、web.conf
server{
listen 80;
server_name _;
location /status {
vhost_traffic_status_display;
vhost_traffic_status_display_format html;
}
}
5、访问http://ip/status
分类:Linux、操作系统 | 标签: |