sudoyum-yupgrade//yum-yupgrade:只升级所有包,不升级软件和系统内核,软件和内核保持原样。2.安装最新nginxRHELandderivatives
sudoyuminstallyum-utils
Tosetuptheyumrepository,createthefilenamed/etc/yum.repos.d/nginx.repowiththefollowingcontents:
vi/etc/yum.repos.d/nginx.repo
[nginx-stable]name=nginxstablerepobaseurl=