1.添加YUM源
[root@MySQL ~]# cat /etc/yum.repos.d/nginx.repo
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=0
enabled=1
2.查看可安装版本
[root@MySQL ~]# yum list nginx --showduplicates
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* extras: mirrors.163.com
* updates: mirrors.163.com
Available Packages
nginx.x86_64 1:1.8.0-1.el7.ngx nginx
nginx.x86_64 1:1.8.1-1.el7.ngx nginx
nginx.x86_64 1:1.10.0-1.el7.ngx nginx
nginx.x86_64 1:1.10.1-1.el7.ngx nginx
nginx.x86_64 1:1.10.2-1.el7.ngx nginx
nginx.x86_64 1:1.10.3-1.el7.ngx nginx
nginx.x86_64 1:1.12.0-1.el7.ngx nginx
nginx.x86_64 1:1.12.1-1.el7.ngx nginx
nginx.x86_64 1:1.12.2-1.el7_4.ngx nginx
nginx.x86_64 1:1.14.0-1.el7_4.ngx nginx
nginx.x86_64 1:1.14.1-1.el7_4.ngx nginx
nginx.x86_64 1:1.14.2-1.el7_4.ngx nginx
nginx.x86_64 1:1.16.0-1.el7.ngx nginx
nginx.x86_64 1:1.16.1-1.el7.ngx
「 文章如果对你有帮助,请点个赞哦^^ 」 
0
若无特殊注明,文章均为本站原创或整理发布。
转载请注明本文地址:https://om.fangxiaoxiong.com/2033.html