"Couldn't resolve host 'mirrors.aliyun.com'"
来源:互联网 发布:人机界面简单编程实例 编辑:程序博客网 时间:2024/05/01 10:14
1.yum 安装出错
[root@iz25m0z7ik3z ~]#yum install mysql
[root@iZ25m0z7ik3Z ~]#yum install mysqlLoaded plugins: securityhttp://mirrors.aliyun.com/centos/6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.aliyun.com'"Trying other mirror.http://mirrors.aliyuncs.com/centos/6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.aliyuncs.com'"Trying other mirror.http://mirrors.aliyun.com/epel/6/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.aliyun.com'"Trying other mirror.http://mirrors.aliyuncs.com/epel/6/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.aliyuncs.com'"Trying other mirror.http://mirrors.aliyun.com/centos/6/extras/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.aliyun.com'"Trying other mirror.http://mirrors.aliyuncs.com/centos/6/extras/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.aliyuncs.com'"Trying other mirror.http://mirrors.aliyun.com/centos/6/updates/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.aliyun.com'"Trying other mirror.http://mirrors.aliyuncs.com/centos/6/updates/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.aliyuncs.com'"Trying other mirror.Setting up Install ProcessPackage mysql-5.1.73-5.el6_6.x86_64 already installed and latest versionNothing to do
2. 修改dns
[root@iz25m0z7ik3z ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0
文末添加
DNS1=8.8.8.8
DNS2=8.8.4.4
3. 重启network 服务
[root@iz25m0z7ik3z ~]# service network restart
Shutting down interface eth0: Device state: 3 (disconnected) [ OK ]Shutting down interface eth1: [ OK ]Shutting down loopback interface: [ OK ]FATAL: Module off not found.Bringing up loopback interface: [ OK ]Bringing up interface eth0: Active connection state: activatedActive connection path: /org/freedesktop/NetworkManager/ActiveConnection/2 [ OK ]Bringing up interface eth1: RTNETLINK answers: File existsRTNETLINK answers: File exists [ OK ]FATAL: Module off not found.
4. 如下提示表示network 服务 与 NetworkManager服务冲突
Bringing up interface eth0: Active connection state: activatedActive connection path: /org/freedesktop/NetworkManager/ActiveConnection/2 [ OK ]
应该是之前安装了图形界面“X Window System”导致。
5. 停止NetworkManager
[root@iz25m0z7ik3z ~]# service NetworkManager stop
Stopping NetworkManager daemon: [ OK ]
6. 再次重启 network 服务
[root@iz25m0z7ik3z ~]# service network restart
Shutting down interface eth0: [ OK ]Shutting down interface eth1: [ OK ]Shutting down loopback interface: [ OK ]FATAL: Module off not found.Bringing up loopback interface: [ OK ]Bringing up interface eth0: Determining if ip address 10.44.153.37 is already in use for device eth0... [ OK ]Bringing up interface eth1: Determining if ip address 101.200.188.182 is already in use for device eth1...RTNETLINK answers: File exists [ OK ]FATAL: Module off not found.
7. 该警告一般是由于网卡解析arp协议导致的,可在网卡的配置文件中加入ARPCHECK=NO参数来屏蔽该检查
[root@iz25m0z7ik3z ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0
文末添加
ARPCHECK=no
再次启动网卡
Shutting down interface eth0: [ OK ]Shutting down interface eth1: [ OK ]Shutting down loopback interface: [ OK ]FATAL: Module off not found.Bringing up loopback interface: [ OK ]Bringing up interface eth0: [ OK ]Bringing up interface eth1: RTNETLINK answers: File exists [ OK ]FATAL: Module off not found.
至此yum update 一切正常。
0 0
- "Couldn't resolve host 'mirrors.aliyun.com'"
- yum 安装出错 Couldn't resolve host 'mirrors.163.com'"Trying other mirror.
- "Couldn't resolve host 'mirrors.zju.edu.cn'" Trying other mirror.解决办法
- couldn't resolve host api.weixin.qq.com
- couldn't resolve host api.weixin.qq.com
- Git错误fatal: unable to access 'https://github.com/****.git/': Couldn't resolve host 'github.com'
- Couldn’t resolve host ‘magento-community’
- Couldn't resolve host 'mirrorlist.centos.org
- yum install 出现 Couldn't resolve host
- oracle linux yum 使用不了,报错:Couldn't resolve host 'public-yum.oracle.com'
- linux couldn't resolve host or ping: unknown host解决办法
- hexo提交报错 unable to access 'https://github.com/*/*.github.io.git/': Couldn't resolve host 'github.com
- curl: (6) Couldn't resolve host 'android.git.kernel.org'
- curl: (6) Couldn't resolve host 'android.git.kernel.org'
- PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
- curl: (6) Couldn't resolve host 'android.git.kernel.org'
- Couldn't resolve host 'android.git.kernel.org'
- when build docker, Couldn't resolve host 'mirrorlist.centos.org'"
- PAT Basic level practice 04
- D - Speed Limit辗转赋值
- uva11040
- 使用amCharts绘制统计图表(柱状图、折线图、3D图)
- Linux通过定时服务自动备份mysql数据库
- "Couldn't resolve host 'mirrors.aliyun.com'"
- 计算日期到天数转换
- js异步请求的几种方法
- Hadoop学习总结之三:Map-Reduce入门
- VNC源码研究(二十四)vnc-4.0-winsrc版本之winvnc工程分析
- flume spark streaming配置详解
- 设置linux 可以访问外网
- IOS端cordova项目 报错:permisson denied
- 【转】java中调用cmd命令(cmd /c 和 cmd/k)获得当前目录绝对路径