1. Installation environment
CentOS 6.5
Nginx1.10.1
a) Open the /etc/yum.repos.d/nginx.repo file, add
[ nginx]
name=nginx repo baseurl=http://nginx.org/packages/mainline/OS/OSRELEASE/$basearch/ gpgcheck=0 enabled=1
引用地址:http://nginx.org/en/linux_packages.html#stable
b)执行 <span>yum </span><span>install</span><span> nginx -y ,完成自动安装</span>
<span><span>2、测试是否安装成功</span></span>
<span><span> a) 启动 nginx</span></span>
<span><span><span>/etc/init.d/nginx </span><span>start</span></span></span>
<span></span>
<span><span><span> b) 在浏览器的地址栏直接输入访问的url,会看到如下页面,</span></span></span>
<span></span>
<span><span><span><img src="http://image.codes51.com/Article/image/20160703/20160703214750_0065.png" alt=" CentOS系统安装Nginx"></span></span></span>
<span></span>
<span></span>
The above introduces the installation of Nginx on CentOS system, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.