ubuntu安装clash

2022-11-13 23:59:32 / 273 / 编程代码

下载:
wget https://github.com/Dreamacro/clash/releases/download/v1.11.4/clash-linux-amd64-v1.11.4.gz
解压:
gunzip clash-linux-amd64-v1.11.4.gz
sudo mv clash-linux-amd64-v1.11.4.gz /usr/local/bin/clash
sudo chmod +x /usr/local/bin/clash

启动:clash

启动之后,将config.yaml文件甩到/root/.config/clash目录中

启动: /usr/local/bin/clash &

将以下文字复制到 /root/bashrc 目录中
#代理设置
export http_proxy="http://127.0.0.1:7890"
export https_proxy=$http_proxy
export no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com"

复制完,敲命令:
source .bashrc

完成之后测试

wget wget www.google.com

gravatar头像