linux上设置代理set proxy

启动hysteria

首先在linux相应的目录下启动hysteria

nohup ./hysteria-linux-amd64

测试proxy情况

curl --proxy socks5h://127.0.0.1:1080 https://google.com

设置proxy

export http_proxy="socks5h://127.0.0.1:1080"
export https_proxy="socks5h://127.0.0.1:1080"
export all_proxy="socks5h://127.0.0.1:1080"

取消proxy

unset http_proxy
unset https_proxy
unset all_proxy
阅读量: | 柯西君_BingWong | 2024-04-23