Quantcast
Channel: プログラミング
Viewing all articles
Browse latest Browse all 8171

Clash 配置 - plutolove’s diary

$
0
0
  • 安装clash
sudo pacman -S clash
  • 配置文件,external-ui需要单独安装
port:7890socks-port:7891redir-port:7892mixed-port:7893allow-lan:falsemode: Rule
log-level: info
ipv6:falseexternal-controller: 0.0.0.0:9090

external-ui: dashboard
clash

  • 开机自启
sudo vim /etc/systemd/system/clash.service
[Unit]
Description=Clash daemon, A rule-based proxy in Go.
After=network.target

[Service]
Type=simple
Restart=always
ExecStart=/usr/bin/clash -d /etc/clash

[Install]
WantedBy=multi-user.target
sudo systemctl enable clash
sudo systemctl start clash

Viewing all articles
Browse latest Browse all 8171

Trending Articles