centos镜像 from_【CentOS 7.1】使用163的镜像

CentOS 7.1.1503

// backup

[root@localhost yum.repos.d]# cd /etc/yum.repos.d/

[root@localhost yum.repos.d]# mv CentOS-Base.repo CentOS-Base.repo.bak

mv: overwrite ‘CentOS-Base.repo.bak‘? y

[root@localhost yum.repos.d]#

// wget

[root@localhost yum.repos.d]# wget http://mirrors.163.com/.help/CentOS7-Base-163.repo

--2015-06-24 18:40:24--  http://mirrors.163.com/.help/CentOS7-Base-163.repo

Resolving mirrors.163.com (mirrors.163.com)... 123.58.173.186, 123.58.173.185

Connecting to mirrors.163.com (mirrors.163.com)|123.58.173.186|:80... connected.

HTTP request sent, awaiting response... 200 OK

Length: 1572 (1.5K) [application/octet-stream]

Saving to: ‘CentOS7-Base-163.repo.1‘

100%[======================================>] 1,572       --.-K/s   in 0s

2015-06-24 18:40:24 (192 MB/s) - ‘CentOS7-Base-163.repo.1‘ saved [1572/1572]

[root@localhost yum.repos.d]#

// cp

[root@localhost yum.repos.d]# cp CentOS7-Base-163.repo CentOS-Base.repo

[root@localhost yum.repos.d]#

// yum clean all

[root@localhost yum.repos.d]# yum clean all

Failed to set locale, defaulting to C

??????fastestmirror, langpacks

Repository base is listed more than once in the configuration

Repository updates is listed more than once in the configuration

Repository extras is listed more than once in the configuration

Repository centosplus is listed more than once in the configuration

正在清理软件源: base extras updates

Cleaning up everything

Cleaning up list of fastest mirrors

// yum makecache

[root@localhost yum.repos.d]# yum makecache

Failed to set locale, defaulting to C

??????fastestmirror, langpacks

Repository base is listed more than once in the configuration

Repository updates is listed more than once in the configuration

Repository extras is listed more than once in the configuration

Repository centosplus is listed more than once in the configuration

base                                                     | 3.6 kB     00:00

extras                                                   | 3.4 kB     00:00

// yum update

[root@localhost yum.repos.d]# yum update

Failed to set locale, defaulting to C

??????fastestmirror, langpacks

Repository base is listed more than once in the configuration

Repository updates is listed more than once in the configuration

Repository extras is listed more than once in the configuration

Repository centosplus is listed more than once in the configuration

Loading mirror speeds from cached hostfile

????????

--> ??????

---> ??? abrt.x86_64.0.2.1.11-19.el7.centos.0.3 ?? ??

---> ??? abrt.x86_64.0.2.1.11-22.el7.centos.0.1 ?? ??

---> ??? abrt-addon-ccpp.x86_64.0.2.1.11-19.el7.centos.0.3 ?? ??

---> ??? abrt-addon-ccpp.x86_64.0.2.1.11-22.el7.centos.0.1 ?? ??

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/264001.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

Java性能调优工具

2019独角兽企业重金招聘Python工程师标准>>> 1、JDK命令行工具 1.1、jps命令 jps用于列出Java的进程,jps可以增加参数,-m用于输出传递给Java进程的参数,…

转载:如何在 SQL Server 中使用配置选项调整内存使用量

查看( 4 ) / 评论( 0 ) / 评分( 0 / 0 ) 以前做过一个通过c#调用Excel组件生成Excel的小程序前几天PM打过电话来问, 说跑完以后为什么SQL Server内存占用这么大?服务器配置2G的内存, 程序正常执行完毕以后退出, SQL Server占用内存在1.7G, 而且没有被释放.因为怕可能会影响这个…

hive sql 报错后继续执行_Hive 执行sql命令报错

Failed with exception java.io.IOException:java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: ${system:user.name%7D执行 show tables;出现上面的错误。错误原因修改 hive-site.xml 文件中的配置出现问题。# 编…

为什么要那么努力?

只是想着让我们前进的速度超过父母老去的速度。加油!每个人的人生都不一样,做不一样的自己。元旦了,回家。转载于:https://www.cnblogs.com/kirinchang/p/4190103.html

python3将字符串unicode转换为中文

在我们的python使用过程中,可能会遇到这样的情况: 我们得到的中文数据是unicode编码类型的,这在python中是没有问题的,可以直接打印显示为中文。 但是,如果我们需要和其它语言或前端进行交互或需要存到数据库中的时候&…

连接SQL Server文件集锦

在新建SqlConnection对象,连接资料库时连接失败,出现“常规网络错误。请检查您的网络文档。” DataSource直接写IP的话,通信协议是按照TCP/IP协议连接的,如果服务器端TCP/IP服务没有开启,则会报错“不允许远程连接” A…

python 波形发生_事件与信号

事件 Event所有的GUI程序都是事件驱动的。事件主要由用户触发,但也可能有其他触发方式:例如网络连接、window manager或定时器。当我们调用QApplication的exec_()方法时会使程序进入主循环。主循环会获取并分发事件。在事件模型中,有三个参与…

Windows 注册和取消注册一个dll或者ocx

原文: Windows 注册和取消注册一个dll或者ocx 一、DLL是什么 DLL,是Dynamic Link Library 的缩写形式,中文名称为动态链接库。 DLL是一个包含可由多个程序同时使用的代码和数据的库,DLL不是可执行文件。动态链接提供了一种方法…

栈的相关操作

# include <stdio.h> # include <malloc.h> # include <stdlib.h>typedef struct Node {int data;struct Node * pNext; }NODE, * PNODE;typedef struct Stack {PNODE pTop;PNODE pBottom; }STACK, * PSTACK; //PSTACK 等价于 struct STACK *void init(PSTA…

HttpContext(三)-Request

ASP.NET RequestRequest封装了客户端请求信息&#xff0c;是从客户端得到数据&#xff0c;常用的三种取得数据的方法是&#xff1a;Request.Form、Request.QueryString&#xff0c;Request。其第三种是前两种的一个缩写&#xff0c;可以取代前两种情况。而前两种主要对应的Form…

jenkins学习笔记2-在centos中安装jenkins master测试环境

在centos中安装jenkins1&#xff09;安装目录pwd (/home/AAA)2&#xff09;检查java是否安装[AAACentos_AAA jenkins]$ java -version java version "1.6.0_22"OpenJDK Runtime Environment (IcedTea6 1.10.4) (rhel-1.41.1.10.4.el6-x86_64)OpenJDK 64-Bit Server V…

数据结构与算法6—树

树 树的表示方式有 树形图表示法:逻辑结构描述直观 嵌套集合表示法&#xff08;文氏图表示法&#xff09; 凹入表示法 广义表表示法 二叉树 二叉树是另一种重要的树形结构&#xff0c;是度为2的有序树&#xff0c;它的特点是每个结点至多有两棵子树。 二叉树的递归定义 二叉树…

动态改变stage桢数

动态改变stage桢数 stage.frameRate speed; 转载于:https://www.cnblogs.com/jiahuafu/archive/2010/03/29/1699434.html

约瑟夫环 java_约瑟夫环Java实现

/*** 约瑟夫问题* 设编号为 1&#xff0c;2&#xff0c;… n 的 n 个人围坐一圈&#xff0c;* 约定编号为 k(1<k<n)的人从 1 开始报数&#xff0c;* 数到 m 的那个人出列&#xff0c;* 它的下一位又从 1 开始报数&#xff0c;数到 m 的那个人又出列&#xff0c;* 依次类推…

LNMP一键安装包在安装完成后的一些安全设置

2019独角兽企业重金招聘Python工程师标准>>> 1.修改php.ini中的 base_dir 设定为&#xff1a;open_basedir/home/wwwroot/:/tmp/&#xff0c; 这样&#xff0c;脚本只能在wwwroot和tmp下读取。 2.设定权限&#xff0c;防止跨目录列表。 chown root:root wwwroot c…

Python——Django框架——Model数据库模型

一、设置 1、Django的setting中配置数据库(MySQL配置) DATABASES {default: {ENGINE: django.db.backends.mysql,NAME: 数据库名称,USER: 数据库用户名,PASSWORD: 数据库密码,HOST: 主机地址,POST: 端口号,} }INSTALLED_APPS [django.contrib.admin,django.contrib.auth,djan…

boot nk.bin by CEPC

build nk.bin \public\common\oak\misc\wince.bat X86 wpc CEPC platform builder 启动 CEPC 1 安装 virtual pc 2007 2 新建 VM 3 设置 capture floppy disk image platform\cepc\src\bootloader\dos\bootdisk\diskimage\cepcboot.144转载于:https://www.cnblogs.co…

java定时执行一次_java Timer(定时调用、实现固定时间执行)

最近需要用到定时调用的功能。可以通过java的Timer类来进行定时调用&#xff0c;下面是有关Timer的一些相关知识。其实就Timer来讲就是一个调度器,而TimerTask呢只是一个实现了run方法的一个类,而具体的TimerTask需要由你自己来实现,例如这样:Timer timer newTimer();timer.sc…

忧郁

网络确实是个好东西&#xff0c;她让我们知识丰富起来&#xff0c;让我们沟通更方便&#xff0c;让世界更小了。 博客确实是个好东西&#xff0c;她记录博主的成长。 但是最近经常被博客郁闷到&#xff0c;本来我就是一个忧郁的人&#xff0c;每当我看到有些博客更新了几年最后…

docker基础应用

环境&#xff1a; centos 7 docker 19.03.0-beta3 192.168.10.10 关于如何安装docker请参考&#xff1a;https://www.cnblogs.com/caesar-id/p/10857312.html 1、查找合适的版本 [rootlocalhost ~]# docker search centos 2、下载centos镜像 [rootlocalhost ~]#docker pull c…