本文转自 http://www.cnblogs.com/chusiping/archive/2011/11/10/2243805.html 和 http://www.jb51.net/os/RedHat/73089.html 1.centos安装wget yum -y install wget Searching for GCC... The path "" is not valid path to the gcc binary. Would you like to change it
直接上方法: 首先配置CentOS下防火墙iptables规则: # vim /etc/sysconfig/iptables 向其中加入下列规则: -A INPUT -m state –state NEW -m tcp -p tcp –dport 22 -j ACCEPT -A INPUT -m state –state NEW -m tcp -p tcp –dport 80 -j ACCEPT -A INPUT -m state –state NEW -m tcp -p tcp –dport
今天尝试更新了下虚拟机CentOS中的python版本后. 运行“yum”命令,就报错:“sudo: unable to execute /bin/yum: No such file or directory” 查询了下网上的资料发现,原来yum调用是用python写的.遂想起刚刚更新python版本,忘了修改yum配置文件了. 解决办法:修改yum配置文件 [root@localhost ~]#vim /usr/bin/yum 把文件头部的#!/usr/bin/python改成#!/usr/