一、安装screen
二、下载lnmp安装包
1
| #wget -c http://soft.vpser.net/lnmp/lnmp1.3-full.tar.gz |
#wget -c http://soft.vpser.net/lnmp/lnmp1.3-full.tar.gz
三、解压
1
| #tar zxf lnmp1.3-full.tar.gz |
#tar zxf lnmp1.3-full.tar.gz
四、安装(过程中自己选了)
1
| #cd lnmp1.3-full/ && ./install.sh |
#cd lnmp1.3-full/ && ./install.sh
五、安装tengine(可选)
1
| #wget -c http://tengine.taobao.org/download/tengine-1.5.1.tar.gz && tar zxvf tengine-1.5.1.tar.gz && cd tengine-1.5.1/ && ./configure && make && mv /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx.old && cp -r objs/nginx /usr/local/nginx/sbin/nginx |
#wget -c http://tengine.taobao.org/download/tengine-1.5.1.tar.gz && tar zxvf tengine-1.5.1.tar.gz && cd tengine-1.5.1/ && ./configure && make && mv /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx.old && cp -r objs/nginx /usr/local/nginx/sbin/nginx
1
2
| #vi /usr/local/nginx/conf/nginx.conf
删除location /status { 2 stub_status on; 3 access_log off; 4 } |
#vi /usr/local/nginx/conf/nginx.conf
删除location /status { 2 stub_status on; 3 access_log off; 4 }
1
| #/usr/local/nginx/sbin/nginx -t |
#/usr/local/nginx/sbin/nginx -t
1
| #kill -USR2 `cat /usr/local/nginx/logs/nginx.pid` && kill -QUIT `cat /usr/local/nginx/logs/nginx.pid.oldbin` && /etc/init.d/nginx restart && /usr/local/nginx/sbin/nginx -v |
#kill -USR2 `cat /usr/local/nginx/logs/nginx.pid` && kill -QUIT `cat /usr/local/nginx/logs/nginx.pid.oldbin` && /etc/init.d/nginx restart && /usr/local/nginx/sbin/nginx -v