Linux下命令行使用代理
开启代理
[root@jingmin-kube-archlinux ~]# cat /home/wangjm/use_proxy.profile
#!/bin/bash
export http_proxy=http://127.0.0.1:8889
export https_proxy=http://127.0.0.1:8889
export all_proxy=socks5://127.0.0.1:1089
[root@jingmin-kube-archlinux ~]# source /home/wangjm/use_proxy.profile
关闭代理
[root@jingmin-kube-archlinux rabbitmq-official]# cat /home/wangjm/unset_proxy.sh
#!/bin/bash
unset http_proxy
unset https_proxy
unset all_proxy
[root@jingmin-kube-archlinux rabbitmq-official]# /home/wangjm/unset_proxy.sh
发表回复