常用工具設置互聯網代理

設置上網代理地址的格式爲

[protocol]://[username]:[password]@[ip]:[port]


linux 全局代理

編輯/etc/profile

http_proxy=代理地址

export http_proxy


linux yum

編輯/etc/yum.conf

添加變量 proxy=代理地址


git

git config --global http.proxy http://yourname:yourpass@proxyserver:proxyport

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