Linux 实现自动安装服务组件以及优化内核参数(2)


6,调试中一些报错信息记录
(1),yum install gcc*报错:
PYCURL ERROR - "Couldn't resolve host 'mirrorlist.centos.org'"
Error: Cannot find a valid baseurl for repo:base
需要添加路由
route add default gw 192.168.180.255
或者
route add add  -net 0.0.0.0 gw 1xx.2xx.1.1

(2),yum安装报错 :
Error Downloading Packages:
  grep-2.6.3-6.el6.x86_64: failure: Packages/grep-2.6.3-6.el6.x86_64.rpm from base: [Errno 256] No more mirrors to try.
缺少dns,添加dns:
[root@wgq_idc_squid_1_11 ~]# vim /etc/resolv.conf
nameserver 2xx.1xx.136.10
重启服务
ifconfig eth0 1xx.2xx.1.50 netmask 255.255.255.0
route add default gw 1xx.2xx.1.1
service network restart

(3),Error: Cannot find a valid baseurl for repo:base
需要安装
yum install chkconfig
yum install greo -y

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/17083.html