linux终端代理设置

在本地终端上网或许需要设置代理,根据你的IP和端口设置

export http_proxy="http://192.168.1.2:10808"
export https_proxy="http://192.168.1.2:10808"
export all_proxy="socks5://192.168.1.2:10808"

与windows极为不同:

##windows写法
set http_proxy=http://192.168.1.2:10808
set https_proxy=http://192.168.1.2:10808
set all_proxy=socks5://192.168.1.2:10808

set HTTP_PROXY=http://192.168.1.2:10808
set HTTPS_PROXY=http://192.168.1.2:10808
set ALL_PROXY=socks5://192.168.1.2:10808
posted @ 2025-08-19 17:33  xs314  阅读(2)  评论(0)    收藏  举报