[root@lnmp conf]# nginx -t
nginx: the configuration file /usr/local/nginx-1.6.2/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx-1.6.2/conf/nginx.conf test is successful
3.启动nginx
[root@lnmp conf]# nginx
4.关闭防火墙,se
[root@lnmp conf]# /etc/init.d/iptables stopiptables:Setting chains to policy ACCEPT: filter [ OK ]
iptables:Flushing firewall rules: [ OK ]
iptables:Unloadingmodules: [ OK ]
[root@lnmp conf]# setenforce 0