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

推荐这些技术文章:

yum install gcc-c++报错,源无法使用的解决方法

1、备份本地CentOS-Base.repo :mv /etc/yum.repos.d/CentOS-Base.repo CentOS-Base.repo.backup。
2、下载新的CentOS-Base.repo:wget -O /etc/yum.repos.d/CentOS-Base.repo http://file.kangle.odata.cc/repo/Centos-6.r...

yum安装python3.6的方法

# centos7
# 换成阿里云的yum源
yum -y install epel-release
yum repolist
yum -y install python36

 
测试

[root@localhost ~]# python3
Python 3.6.8 (default, Aug 7 2019, 17:28:10)
[GCC 4.8.5 20150623 (R...

阿里云CentOS Linux 8 - AppStream使用yum安装nfs-utils失败

报错1

Status code: 404 for http://mirrors.cloud.aliyuncs.com/centos/8/AppStream/x86_64/os/repodata/repomd.xml

 
解决

cd /etc/yum.repos.d/

for i in `ls`;do sed -i 's/mirrors.cloud.aliyuncs.com/mi...

CentOS 7更换阿里yum源

1、备份原有的yum源
mv /etc/yum.repos.d/  /tmp
2、下载新的yum源
CentOS 6wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo或者curl -o /etc/yum.repos.d/CentOS-Base.repo http:/...

阿里云centos 8无法安装应用

rename '.repo' '.repo.bak' /etc/yum.repos.d/*.repo
wget https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo -O /etc/yum.repos.d/Centos-vault-8.5.2111.repowget https://mirrors.aliyun.com/repo/e...

CentOS6~8 配置阿里云yum源,epel源

CentOS 6
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
或者
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
 
CentOS...

CentOS 7 yum 安装 pip3 和 python3.6

yum安装python3
yum install epel-release -y
yum install https://centos7.iuscommunity.org/ius-release.rpm -y
yum install python36 u -y
ln -s /bin/python3.6 /bin/python3

安装pip3
首先找到pip3的位置(在python3.6的安...

CentOS7 更换为阿里镜像源

备份

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo..backup

下载新的 CentOS-Base.repo 到 /etc/yum.repos.d/

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/re...

Centos7更换阿里云镜像

centos7更改镜像源:
#CentOS 7
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.rep...

centos5/6/7/8 (解决没有yum源支持的问题)

使用腾讯云镜像站支持yum源
官方文档:
https://mirrors.cloud.tencent.com/help/epel.html
https://mirrors.cloud.tencent.com/help/centos.html
mv /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel.repo.backup
# 获取对应版本的epel配...

文章标题:nginx二进制安装
文章链接:https://www.dianjilingqu.com/404.html
本文章来源于网络,版权归原作者所有,如果本站文章侵犯了您的权益,请联系我们删除,联系邮箱:saisai#email.cn,感谢支持理解。
THE END
< <上一篇
下一篇>>