svn checkout ustats
wget
tar -zxvf nginx-1.1.18.tar.gz
cd nginx-1.1.18
patch -p2 -i ../ustats/nginx.patch
./configure --user=qygame --group=qygame --add-module=../ustats/ustats --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module
make
mv /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx.old
cp objs/nginx /usr/local/nginx/sbin/
/usr/local/nginx/sbin/nginx -t
make upgrade
vi nginx.conf
upstream php-cgi {
server 127.0.0.1:9000;
}
location /ustats {
ustats memsize=3m;
ustats_refresh_interval 6000;
ustats_html_table_width 95;
ustats_html_table_height 95;
allow 192.168.10.0/24;
allow 127.0.0.1;
deny all;
}
阅读(906) | 评论(0) | 转发(0) |