- CCDD2011-08-19金牌会员5333
llsmp一键安装包来源于llsmp.org:下载:
wget http://llsmp.googlecode.com/files/llsmp0.5.tar.gz如果你要升级php和更换eAccelerator为apc请参考: 《Varnish+litespeed4.1.1+php5.3.6+apc+centos5.6×64》 设置个litespeed的一个参数: 进入 http://ip:7080 设置:Server » General Settings 的参数Use Client IP in Header 为 “yes”安装完后:下载nginx.shwget http://llsmp.googlecode.com/files/nginx.shmv nginx /root/llsmp/cd /root/llsmp/vim nginx.sh修改原文:port=”\*:80”
new_port=”\*:81”我的修改:
port=”\*:80”
new_port=”\127.0.0.1:80”原文:listen 81; 修改为listen x.x.x.x:80; (这个换为公网IP.很关键也是让80端口共享成功的设置)
再把nginx.sh里面的http://127.0.0.1:81全部替换http://127.0.0.1:80;
如果你要yum安装到最新版本的nginx请在运行nginx.sh参考:《yum 安装 nginx 1.0.4》
我在几个vps测试时曾经出现过一个相同的错误,我建议你在运行前先把lsws停止(service lsws stop)然后再运行nginx.sh最后安装完毕,建议请先启动后端lsws然后再到nginx。