最近初涉Linux,由于上网需设置代理,于是在文件.bash_profile(root目录下)文件中添加http的代理服务器地址及端口
http_proxy=210.xxx.xxx.xxx:8080
export http_proxy
保存之后执行[root@localhost ~]#source .bash_profile,[root@localhost ~]# echo $http_proxy查看也没有问题,但是运行yum报错“TypeError:iterable argument required”,马上搜索一番,原来是设置格式不对,应该是http_proxy=http://210.xxx.xxx.xxx:8080
重新yum,一切顺利。