vim 编辑 /etc/yum.repos.d/nginx.repo

 

[nginx-stable]
name=nginx stable repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=1
enabled=1
gpgkey=https://nginx.org/keys/nginx_signing.key
module_hotfixes=true

yum install  nginx

[CentOS] centos下安装最新稳定版nginx

 

 [CentOS] centos下安装最新稳定版nginx

 

相关文章: