当前位置: 首页 > news >正文

行业网站推广什么意思万江营销型网站建设

行业网站推广什么意思,万江营销型网站建设,辉煌电商seo,做网站有视频教吗CentOS系统更换yum源 问题 当初瞎鼓捣服务器#xff0c;更换yum源为aliyun的#xff0c;奈何阿里的源最近全部打不开#xff0c;导致yum安装不了#xff0c;一直报错#xff1a; http://mirrors.aliyun.com/centos/6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL E…CentOS系统更换yum源 问题 当初瞎鼓捣服务器更换yum源为aliyun的奈何阿里的源最近全部打不开导致yum安装不了一直报错 http://mirrors.aliyun.com/centos/6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - “The requested URL returned error: 404 Not Found” Trying other mirror. http://mirrors.aliyuncs.com/centos/6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 7 - “couldn’t connect to host” Trying other mirror. http://mirrors.cloud.aliyuncs.com/centos/6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - “Couldn’t resolve host ‘mirrors.cloud.aliyuncs.com’” Trying other mirror. Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again在网上查了些资料总算弄懂应该怎么处理了但是找不到一个对应的源所以还原默认了 1. 查询服务器的系统版本 [rootnys yum.repos.d]# rpm -qi centos-release Name : centos-release Relocations: (not relocatable) Version : 6 Vendor: CentOS Release : 10.el6.centos.12.3 Build Date: Tue 26 Jun 2018 10:52:41 PM CST Install Date: Mon 23 Jul 2018 11:48:26 AM CST Build Host: x86-01.bsys.centos.org Group : System Environment/Base Source RPM: centos-release-6-10.el6.centos.12.3.src.rpm Size : 38232 License: GPLv2 Signature : RSA/SHA1, Tue 26 Jun 2018 11:35:30 PM CST, Key ID 0946fca2c105b9de Packager : CentOS BuildSystem http://bugs.centos.org Summary : CentOS release file Description : CentOS release files 如上:Version,Release两项当前服务器操作系统的版本就是6.10 2. 更换yum源 进入yum配置文件目录 cd /etc/yum.repos.d[rootnys yum.repos.d]# ll total 60 drwxr-xr-x 2 root root 4096 Oct 17 2017 backup -rw-r--r-- 1 root root 1901 Jan 5 15:35 CentOS-Base.repo #此文件为yum使用的源配置 -rw-r--r-- 1 root root 1991 Jun 26 2018 CentOS-Base.repo.rpmnew -rw-r--r-- 1 root root 647 Jun 26 2018 CentOS-Debuginfo.repo -rw-r--r-- 1 root root 289 Jun 26 2018 CentOS-fasttrack.repo -rw-r--r-- 1 root root 630 Jun 26 2018 CentOS-Media.repo -rw-r--r-- 1 root root 8854 Jun 26 2018 CentOS-Vault.repo -r--r--r-- 1 root root 664 May 11 2018 epel.repo -rw-r--r-- 1 root root 957 Nov 5 2012 epel.repo.rpmnew -rw-r--r-- 1 root root 1056 Nov 5 2012 epel-testing.repo -rw-r--r-- 1 root root 206 Aug 20 17:58 influxdb.repo确保yum源可访问此处用的163源 http://mirrors.163.com/centos/6.10/ 可以查看网易的源说明 http://mirrors.163.com/.help/ 下载对应版本的163源 wget http://mirrors.163.com/.help/CentOS6-Base-163.repo 替换源文件到Base sudo cp CentOS6-Base-163.repo CentOS-Base.repo 更换Base文件中的路径为指定版本号 # CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close to the client. You should use this for CentOS updates # unless you are manually picking other mirrors. # # If the mirrorlist does not work for you, as a fall back you can try the # remarked out baseurl line instead. # #[base] nameCentOS-$releasever - Base - 163.com #此处路径需要替换为真实可访问地址 baseurlhttp://mirrors.163.com/centos/$releasever/os/$basearch/ #mirrorlisthttp://mirrorlist.centos.org/?release$releaseverarch$basearchrepoos gpgcheck1 gpgkeyhttp://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6#released updates [updates] nameCentOS-$releasever - Updates - 163.com baseurlhttp://mirrors.163.com/centos/$releasever/updates/$basearch/ #mirrorlisthttp://mirrorlist.centos.org/?release$releaseverarch$basearchrepoupdates gpgcheck1 gpgkeyhttp://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6#additional packages that may be useful --More--(51%) * 需要将$releasever替换为当前系统版本号6.10对应可访问的163源路径 http://mirrors.163.com/centos/6.10/ 使用vim替换 :%s/$releasever/6.10/g 仅展示部分替换后的文件内容 # CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close to the client. You should use this for CentOS updates # unless you are manually picking other mirrors. # # If the mirrorlist does not work for you, as a fall back you can try the # remarked out baseurl line instead. # #[base] nameCentOS-6.10 - Base - 163.com baseurlhttp://mirrors.163.com/centos/6.10/os/$basearch/ #mirrorlisthttp://mirrorlist.centos.org/?release6.10arch$basearchrepoos gpgcheck1 gpgkeyhttp://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6#released updates [updates] nameCentOS-6.10 - Updates - 163.com baseurlhttp://mirrors.163.com/centos/6.10/updates/$basearch/ #mirrorlisthttp://mirrorlist.centos.org/?release6.10arch$basearchrepoupdates gpgcheck1 gpgkeyhttp://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6--More--(51%)3. 更新yum #重置缓存 yum makecache其它可参考执行的命令 #检查可以更新的软件包 yum check-update #更新所有的软件包 yum update #更新特定的软件包 yum update kernel #大规模的升级 yum upgrade#清楚缓存中rpm包文件 yum clean packages #清楚缓存中rpm的头文件 yum clean headers #清除缓存中旧的头文件 yum clean old headers #清除缓存中旧的rpm头文件和包文件 yum clean all如果不成功还原为默认源配置文件 CentOS-Base.repo 源文件内容需要将版本6改为7因为6版本repomd.xml文件已经没有了只能从7版本开始 http://mirror.centos.org/centos/7/os/x86_64/repodata/ [rootnys yum.repos.d]# cat CentOS-Base.repo # CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close to the client. You should use this for CentOS updates # unless you are manually picking other mirrors. # # If the mirrorlist does not work for you, as a fall back you can try the # remarked out baseurl line instead. # #[base] nameCentOS-7 - Base mirrorlisthttp://mirrorlist.centos.org/?release7arch$basearchrepoosinfra$infra #baseurlhttp://mirror.centos.org/centos/7/os/$basearch/ gpgcheck1 gpgkeyfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6#released updates [updates] nameCentOS-7 - Updates mirrorlisthttp://mirrorlist.centos.org/?release7arch$basearchrepoupdatesinfra$infra #baseurlhttp://mirror.centos.org/centos/7/updates/$basearch/ gpgcheck1 gpgkeyfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6#additional packages that may be useful [extras] nameCentOS-7 - Extras mirrorlisthttp://mirrorlist.centos.org/?release7arch$basearchrepoextrasinfra$infra #baseurlhttp://mirror.centos.org/centos/7/extras/$basearch/ gpgcheck1 gpgkeyfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6#additional packages that extend functionality of existing packages [centosplus] nameCentOS-7 - Plus mirrorlisthttp://mirrorlist.centos.org/?release7arch$basearchrepocentosplusinfra$infra #baseurlhttp://mirror.centos.org/centos/7/centosplus/$basearch/ gpgcheck1 enabled0 gpgkeyfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6#contrib - packages by Centos Users [contrib] nameCentOS-7 - Contrib mirrorlisthttp://mirrorlist.centos.org/?release7arch$basearchrepocontribinfra$infra #baseurlhttp://mirror.centos.org/centos/7/contrib/$basearch/ gpgcheck1 enabled0 gpgkeyfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6更新epel.repo文件内容将6改为7: [rootnys yum.repos.d]# more epel.repo [epel] nameExtra Packages for Enterprise Linux 7 - $basearch baseurlhttp://mirrors.aliyun.com/epel/7/$basearch failovermethodpriority enabled1 gpgcheck0 gpgkeyfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7[epel-debuginfo] nameExtra Packages for Enterprise Linux 7 - $basearch - Debug baseurlhttp://mirrors.aliyun.com/epel/7/$basearch/debug failovermethodpriority enabled0 gpgkeyfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 gpgcheck0[epel-source] nameExtra Packages for Enterprise Linux 7 - $basearch - Source baseurlhttp://mirrors.aliyun.com/epel/7/SRPMS failovermethodpriority enabled0 gpgkeyfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 gpgcheck0 清楚缓存并重置 yum clean allyum makecacheyum -y update
http://www.yutouwan.com/news/313952/

相关文章:

  • app网站建设可行性分析青海高端网站建设价格
  • 做阿里巴巴网站多少钱wordpress商城支付宝
  • 乐清网站改版公司企业网站建设难吗
  • 蛋糕 网站 模板如何开自己的网站
  • 龙海市城乡规划建设局网站哈尔滨网页案例分析
  • 佛山三水区有没有网站建设公司手机软件开发培训班
  • html5 jq做电脑网站手机wordpress怎么安装
  • 公司做网站的费用计什么科目调研园区网站建设工作总结
  • 最优的郑州网站建设淄博临淄网站建设
  • 网上哪些网站可以做兼职大连哪个公司做网站好
  • 短链接转换网站济南电商网站建设
  • 泉州网站建设的步骤品牌网站有哪些内容
  • 做渠道的网站有哪些方面WordPress 中英文翻译
  • 关于网站建设的合同范本正规西安旅游必去十大景点推荐
  • 企业宣传网站设计论文网站建设罗贤伟
  • 网站建设和网络营销长春工程公司招聘
  • 网站站长是什么网络软文营销
  • 深圳网站建设九曲网装修设计网站排行
  • 钦州电商网站建设网站建设流程详细
  • 做ppt赚钱的网站建设网站主机免费版
  • 公司建网站流程进出口贸易公司
  • 评论 wordpress新闻类的网站如何做优化
  • 图书馆网站建设网站的目的网站建设课程考核方案
  • 网站建站查询阿坝州建设局网站刘志彬
  • 电子商务网站建设的首要问题商务网站建设多少钱
  • 自适应式网站手机上怎么自己做网站
  • 帮别人做网站进了看守所哪个网站做外贸的多
  • 在线视频网站开发上饶市建设局有什么网站
  • 哪个做h5的网站好用做哪方面的网站好呢
  • 网站怎么做友情连接网上商城交易平台