This is to enable yum installation to a server behind proxy network.
1. Configure yum.conf
vi /etc/yum.conf
add these lines:
proxy = http://proxyname:port/
proxy_username = name
proxy_password = password
2. Export http_proxy variable
export http_proxy = "http://proxy:port/"
3. Export http_proxy variable in bash login script
vi /root/.bash_profile
export http_proxy="http://proxy:port/"
0 comments:
Post a Comment