在Centos环境下快速部署PHP环境(使用lnmp一键包)

一、安装screen

1
# yum install screen
1
#screen -S lnmp

二、下载lnmp安装包

1
#wget -c http://soft.vpser.net/lnmp/lnmp1.3-full.tar.gz

三、解压

1
#tar zxf lnmp1.3-full.tar.gz

四、安装(过程中自己选了)

1
#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
1
2
#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
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