1、今天yum安装pcre的时候出现了这个错误:
这个提示是说 下载目录空间不足
用df -h查看了一下空间使用情况,发现已使用99%【虚拟机,当时创建的时候只给了4个G...】
知道问题的所在了 自然也就好处理了!以下是处理的方法。建议大家尽可能的不要进行磁盘扩容,这个风险太大。另外 yum clean all 的话可能会在以后出现yum时下载一些文件的后遗症……
方法:
1:# yum clean all
2:手动删除一些不需要的东西,这个简单吧……
3:手动删除日志文件,这个也简单吧……
4:对磁盘进行扩容操作,这个有点复杂和危险……
2.用yum使用网络源,出现网络不通
[root@node1 yum.repos.d]# yum install squidLoaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist. CentOS.org/?release=6&arch=i386&repo=os error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=i386&repo=centosplus error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
^C^C^C^Z
[1]+ Stopped yum install squid
[root@node1 yum.repos.d]# ping www.baidu.com
^C
解决方法:(检查网络)
测试结果:
3.使用yum安装软件包出现进程占用
解决方法:
测试结果: