nginx二进制安装

一:二进制安装nginx

1.下载CentOS源

image

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

image

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

image

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

image

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

image
image

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

image

posted @ 2022-01-02 11:27  AlexEvans  阅读(218)  评论(0编辑  收藏  举报