# 1. 安装 clash
sudo pacman -S clash
# 2. 拷贝节点配置,Country.mmdb 也可以让它自动下载,不过很慢
sudo mkdir -p /etc/clash
sudo cp /your/path/config.yaml /etc/clash/
sudo cp /your/path/Country.mmdb /etc/clash/
# 3. 配置开机启动(可选)
sudo vim /etc/systemd/system/clash.service
############################### 文件内容 #####################################
[Unit]
Description=Clash Proxy
[Service]
WorkingDirectory=/root
ExecStart=/usr/bin/clash -f .config/clash/config.yaml >/dev/null 2>&1
Type=simple
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
############################################################################
# 4. 启动
sudo systemctl start clash
sudo systemctl enable clash
sudo systemctl status clash
# 5. 浏览器
http://clash.razord.top 选择节点,打开控制台,并输入以下配置
export http_proxy=127.0.0.1:7890
export https_proxy=127.0.0.1:7890
export socks_proxy=127.0.0.1:7891
# 6. 测试
curl
https://www.google.com