Debian 上安装 Nginx
?
安装依赖的包:
apt-get install libpcre3-dev libpcrecpp0 libssl-dev zlib1g-dev
?
?
监控配置:
?
通过web界面查看时Nginx需要开启status模块,也就是安装Nginx时加上 ? ? ? ?–-with-http_stub_status_module ? 然后配置Nginx.conf,在server点里面加入如下内容
location /nginx_status { stub_status on; access_log off; allow 192.168.1.100;? 访问IP deny all; }http://blog.csdn.net/adparking/article/details/7361350
?
?
参考网址:
http://bluedata.org/2009/08/11/install_nginx_on_debian/
?
?
./configure --user=monitor --group=netease --prefix=/home/monitor/server/nginx/nginx --with-http_stub_status_module --with-http_ssl_module
?
?