系统相关
首页 > 系统相关> > nginx二进制安装

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

标签:epel,CentOS,二进制,repo,nginx,yum,安装
来源: https://www.cnblogs.com/goOJBK/p/15757193.html