Add yum source
cd /etc/yum.repos.d/
vim nginx.repo
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/ 6/$basearch/
gpgcheck=0
enabled=1
Then:
yum makecache
yum clean all
yum search nginx
The above introduces the yum source of nginx, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.