5fc7ad77e27919684.jpg_fo742.jpg
官网

准备

yum install  -y yum-utils

yum源
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
[nginx-mainline]
name=nginx mainline repo
baseurl=http://nginx.org/packages/mainline/centos/releasever/basearch/
gpgcheck=1
enabled=0
gpgkey=https://nginx.org/keys/nginx_signing.key

安装

yum install -y nginx

查看

[root@localhost ModSecurity]# nginx -v
nginx version: nginx/1.18.0

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注

Captcha Code