linux 网络问题解决方案

最后发布时间:2025-02-07 12:57:21 浏览量:

Static Badge
docker login registry.cn-hangzhou.aliyuncs.com
docker run --net=host --rm -it registry.cn-hangzhou.aliyuncs.com/wangyang1749/ubuntu-network  proxy2
# 127.0.0.1:9091 123456

http://127.0.0.1:9091/ui/

# 开启系统代理
function proxy_on() {
	export http_proxy=http://127.0.0.1:7890
	export https_proxy=http://127.0.0.1:7890
	export no_proxy=127.0.0.1,localhost
	export HTTP_PROXY=http://127.0.0.1:7890
	export HTTPS_PROXY=http://127.0.0.1:7890
 	export NO_PROXY=127.0.0.1,localhost
	echo -e "\033[32m[√] 已开启代理\033[0m"
}

# 关闭系统代理
function proxy_off(){
	unset http_proxy
	unset https_proxy
	unset no_proxy
  	unset HTTP_PROXY
	unset HTTPS_PROXY
	unset NO_PROXY
	echo -e "\033[31m[×] 已关闭代理\033[0m"
}
external-controller: '0.0.0.0:9090'
secret: 123456

# 您可以将静态网页资源,将会服务于 `RESTful API/ui`
# 参数应填写配置目录的相对路径或绝对路径。
external-ui: /workspace/clash-for-linux/dashboard/public

docker 代理配置

sudo mkdir -p /etc/systemd/system/docker.service.d

创建文件sudo vim /etc/systemd/system/docker.service.d/http-proxy.conf写入:

[Service]
Environment="HTTP_PROXY=http://127.0.0.1:7890"
Environment="HTTPS_PROXY=http://127.0.0.1:7890"
Environment="NO_PROXY=localhost,127.0.0.1,docker-registry.example.com,.corp"

sudo apt-get --print-uris install google-chrome-stable
/var/cache/apt/archives
sudo apt autoremove
curl --socks5 127.0.0.1:1080 https://www.google.com
https://github.com/Dreamacro/clash/releases

https://zhuanlan.zhihu.com/p/46973701


export http_proxy="http://localhost:port"
export https_proxy="http://localhost:port"
export http_proxy="socks5://127.0.0.1:1080"
export https_proxy="socks5://127.0.0.1:1080"

export ALL_PROXY=socks5://127.0.0.1:1080

wget -U "Mozilla/6.0" -O ~/.config/mihomo/config.yaml "https://v1.v2ai.top/link/SH2D9ntOZX3RExcd?clash=2"

https://w1.v2ai.top/doc/#/linux/clash

export http_proxy="http://127.0.0.1:7890"
export https_proxy="http://127.0.0.1:7890"
unset http_proxy
unset https_proxy

https://sms-activate.org/cn

https://eylink.cn/buy/4

https://api.everyai.cc/

快捷入口
Linux 思维导图 浏览PDF 下载PDF
分享到:
标签