当前位置:首页 > 服务器系统 > Centos > 正文内容

CentOS7 配置163 yum源

一二三5年前 (2020-11-27)Centos666

1、下载repo文件 

wget http://mirrors.163.com/.help/CentOS7-Base-163.repo

2、备份并替换系统的repo文件 

cp CentOS7-Base-163.repo /etc/yum.repos.d/ 

cd /etc/yum.repos.d/ 

mv CentOS-Base.repo CentOS-Base.repo.bak 

mv CentOS7-Base-163.repo CentOS-Base.repo

3、执行yum源更新命令 

yum clean all 

yum makecache 

yum update

扫描二维码至手机访问

扫描二维码推送至手机访问。

版权声明:本文由一二三博客发布,如需转载请注明出处。

分享给朋友:

相关文章

nginx常用内置变量

$args #请求中的参数值$query_string #同 $args$arg_NAME #GET请求中NAME的值$is_args #如果请求中有参数,值为"?",否则为空字符...

Centos 关闭selinux

Centos 关闭selinux:setenforce 0修改/etc/selinux/config,设置SELINUX=disabled,确保重启后也生效。...

Nginx TCP协议配置

stream {     upstream zifangsky {      ...

Centos7 LVS+Keepalived+Nginx基于DR模式构建高可用方案

Centos7 LVS+Keepalived+Nginx基于DR模式构建高可用方案

1、准备机器名称网卡0网卡1VIPlvsmaster192.218.92.185(网关:192.218.92.1)10.88.1.20(无网关)内网通信使用192.218.92.187lvsbacku...

Centos7 MariaDB Galera cluster初始化和启动报错两例

问题一:160613  0:43:36 [Note] WSREP: Read nil XID from storage engines, skipping position init1606...

Centos7 安装nginx服务

1、安装前准备:yum install yum-utils2、配置nginx源vim /etc/yum.repos.d/nginx.repo[nginx-stable] name=nginx&nbs...