转自:https://www.leelib.com/2014/10/31/yum-install-last-nginx.html
添加nginx的repo
echo '[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/7/x86_64
gpgcheck=0
enabled=1' > /etc/yum.repos.d/nginx.repo
安装
yum update
yum install nginx
是不是直接安装了最新版的nginx呢
( ͡° ͜ʖ ͡°)