欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

CectOS7設(shè)置代理更新阿里云yum

 更新時(shí)間:2017年05月03日 11:59:12   作者:MZ牛牛  
這篇文章主要介紹了CectOS7設(shè)置代理更新阿里云yum的相關(guān)資料,需要的朋友可以參考下

新分配了虛擬機(jī),安裝了centos7.2版本。

因是內(nèi)網(wǎng)機(jī)器,不能直接聯(lián)外網(wǎng),不過(guò)可以設(shè)置yum代理,通過(guò)另一臺(tái)能上外網(wǎng)的服務(wù)器來(lái)更新

#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)

如果要設(shè)置全局代理,則

#vi /etc/profile
export http_proxy=http://192.168.1.188:3128/
export ftp_proxy=http://192.168.1.188:3128/

以上所述是小編給大家介紹的CectOS7設(shè)置代理更新阿里云yum,希望對(duì)大家有所幫助,如果大家有任何疑問(wèn)請(qǐng)給我留言,小編會(huì)及時(shí)回復(fù)大家的。在此也非常感謝大家對(duì)腳本之家網(wǎng)站的支持!

相關(guān)文章

最新評(píng)論