vi ~/.bashrc
编辑此文件在此文件,在该文件下加入
export http_proxy="http://ip:端口"
如果需要访问https类网站需要额外加入
export https_proxy="http://ip:端口"
:wq
保存退出后再更新一下配置文件source ~/.bashrc
vi ~/.bashrc
编辑此文件在此文件,在该文件下加入export http_proxy="http://ip:端口"
如果需要访问https类网站需要额外加入
export https_proxy="http://ip:端口"
:wq
保存退出后再更新一下配置文件source ~/.bashrc