Home >Backend Development >PHP Tutorial >Install Nginx on CentOS
Redirected to: http://my.oschina.net/VincentJiang/blog/224993
CENTOS 6.5 Configure YUM to install NGINX
<spanmicrosoft yahei font-size:14px>/etc/yum.repos.d/</spanmicrosoft>
<spanmicrosoft yahei font-size:14px>nginx.repo</spanmicrosoft>
cd /etc/yum.repos.d/ vim nginx.repo
[nginx] name=nginx repo baseurl=http://nginx.org/packages/centos/$releasever/$basearch/ gpgcheck=0 enabled=1
<spanmicrosoft yahei font-size:14px> will be generated. /etc/yum.repos.d/nginx.repo</spanmicrosoft>
yum install nginx -y
/etc/init.d/nginx start
iptables -I INPUT 5 -i eth0 -p tcp --dport 80 -m state --state NEW,ESTABLISHED -j ACCEPT service iptables save service iptables restart
/etc/init.d/nginx start # 启动Nginx服务 /etc/init.d/nginx stop # 停止Nginx服务 /etc/nginx/nginx.conf # Nginx配置文件位置
The above introduces the installation of Nginx on CentOS, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.