rpm -ivh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
yum list | grep nginx #看到有最新的1.12.1版本在yum列表中了
yum update nginx -y
nginx -v #nginx version: nginx/1.12.1
nginx -t
systemctl reload nginx
参考
https://www.liberiangeek.net/2014/07/enable-nginxs-repository-install-nginx-centos-7/
https://www.idaima.com/a/17439.html
时间: 2024-10-07 05:26:57