CenterOS 6.5 安装lnmp

安装LNMP稳定版
wget -c http://soft.vpser.net/lnmp/lnmp1.4.tar.gz && tar zxf lnmp1.4.tar.gz && cd lnmp1.4 && ./install.sh lnmp

 

控制台下执行lnmp vhost add 添加虚拟主机

 

cd /usr/local/nginx/conf/vhost

打开vhost的配置表

为了支持pathinfo,将include enable-php.conf;替换成include enable-php-pathinfo.conf;

 

如果虚拟主机侦听的端口非80的话,还需要对防火墙的配置进行修改。

vim  /etc/sysconfig/iptables 
 
centos6.5 防火墙配置 添加8080端口 - Yegshine - yegshine

 2、重启防火墙:/etc/init.d/iptables restart   或 service iptables restart

 3、查看打开端口# /etc/init.d/iptables status  或 service iptables status

 

posted @ 2017-12-13 21:55  ITEVOL  阅读(322)  评论(0编辑  收藏  举报