openEuler使用代理上網

全局代理配置,yum和wget都可以成功上網

vi /etc/profile

http_proxy=http://test:[email protected]:808/
https_proxy=http://test:[email protected]:808/
export http_proxy
export https_proxy

source /etc/
profile

 

yum代理配置,只有yum可以成功上網

vi /etc/yum.conf

proxy=http://172.18.55.100:808
proxy_username=test
proxy_password=123456

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章