gongdear

gongdear的技术博客

欢迎大家参观我的博客
  menu
101 文章
89355 浏览
2 当前访客
ღゝ◡╹)ノ❤️

Centos7命令行设置代理

全局代理

vim /etc/profile

http_proxy=http://username:password@yourproxy:8080或http_proxy=http://yourproxy:8080
ftp_proxy=http://username:password@yourproxy:8080或ftp_proxy=http://yourproxy:8080
export http_proxy
export ftp_proxy

yum proxy

vim /etc/yum.conf

proxy=http://username:password@yourproxy:8080/

wget proxy

http_proxy=http://username:password@yourproxy:8080
https_proxy=http://username:password@yourproxy:8080
ftp_proxy=http://username:password@yourproxy:8080

宝剑锋从磨砺出,梅花香自苦寒来.