CectOS7设置代理更新阿里云yum
2017-05-03 11:59
681 查看
新分配了虚拟机,安装了centos7.2版本。
因是内网机器,不能直接联外网,不过可以设置yum代理,通过另一台能上外网的服务器来更新
#cat /etc/redhat-release CentOS Linux release 7.2.1511 (Core) #vi /etc/yum.conf proxy = http://192.168.1.188:3128/ #mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup #wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo #yum makecache #yum update #cat /etc/redhat-release CentOS Linux release 7.3.1611 (Core)
如果要设置全局代理,则
#vi /etc/profile export http_proxy=http://192.168.1.188:3128/ export ftp_proxy=http://192.168.1.188:3128/
以上所述是小编给大家介绍的CectOS7设置代理更新阿里云yum,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对脚本之家网站的支持!
您可能感兴趣的文章:
相关文章推荐
- CectOS7设置代理更新yum(阿里云)
- Fedora Yum 更新设置。 Livna仓库
- Yum 设置代理的方法
- Centos系统使用代理上网时 yum的代理设置
- 为YUM设置代理的方法
- yum使用代理的设置
- 在FC6上设置yum的国内镜像更新源
- Android Studio设置代理更新下载SDK
- 内网设置代理eclipse里更新svn
- Ubuntu 更新源地址列表及更改方法 及 代理设置
- Centos系统使用代理上网 yum的代理设置
- 为apt-get设置HTTP代理(使用代理更新Ubuntu的方法)
- 在阿里云服务器上配置、更新yum
- yum代理更新及遇到的问题
- yum设置代理
- debian终端下设置代理更新软件
- YUM设置代理
- 关于centos的yum代理设置
- 为YUM设置代理的方法
- CentOS7安全设置 yum-cron系统自动更新,firewalld防火墙简单使用