vi /etc/profile #在末尾添加以下内容
http_proxy=http://username:password@proxy_ip:port/
ftp_proxy=http://username:password@proxy_ip:port/
export http_proxy
export ftp_proxy
source /etc/profile #关闭文件,命令行输入
Centos6/7通过设置全局变量代理上网
Centos6/7通过设置全局变量代理上网
暂无评论