nginx二进制安装
一:二进制安装nginx
1.下载CentOS源

2.安装CentOS源
[root@localhost ~]# curl -o /etc/yum.repos.d/CentOS-Base.repo https://repo.huaweicloud.com/repository/conf/CentOS-7-reg.repo

3.下载epel源(失败显示未找到命令)

4.解决依赖
[root@localhost ~]# yum -y install yum-utils

5.安装Epel源
[root@localhost ~]# yum-config-manager --add-repo=https://repo.huaweicloud.com/epel/7/x86_64/


6.安装nginx
[root@localhost ~]# yum install nginx --nogpgcheck
--nogpgcheck : 公钥认证


浙公网安备 33010602011771号