作者:小太郎在路上_439 | 来源:互联网 | 2013-07-03 09:24
使用了lnmp安装包做好的环境升级到LTMP,体验一下淘宝服务器
记录一下安装过程
1.首先安装LNMP.ORG提供的一件安装包
2.平滑升级
1
2
3
4
5
|
wget -c http://soft.kwx.gd/lnmp/tengine-1.3.0.tar.gz #获取压缩包
tarzxvf tengine-1.3.0.tar.gz #解压
cdtengine/ #进入目录
./configure #执行安装脚本
make #编译
|
1
|
mv/usr/local/nginx/sbin/nginx/usr/local/nginx/sbin/nginx.old
|
1
|
cp-r objs/nginx/usr/local/nginx/sbin/nginx
|
1
|
vi/usr/local/nginx/conf/nginx.conf
|
1
2
3
4
|
location/status{
stub_status on;
access_log off;
}
|
1
|
/usr/local/nginx/sbin/nginx-t
|
1
2
|
kill-USR2 `cat/usr/local/nginx/logs/nginx.pid`
kill-QUIT `cat/usr/local/nginx/logs/nginx.pid.oldbin`
|
1
2
|
/etc/init.d/nginxrestart #重启Nginx
/usr/local/nginx/sbin/nginx-v #查看当前Nginx版本(是否为Tengine)
|