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

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

 

 

 

posted @ 2021-03-22 16:19  陶士涵  阅读(3)  评论(0编辑  收藏