国产精品天干天干,亚洲毛片在线,日韩gay小鲜肉啪啪18禁,女同Gay自慰喷水

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

Clash for linux安裝與使用過程

2023-07-08 21:24 作者:日常小迷糊ミ  | 我要投稿

以deepin為例,

  • 在手機端的/data/data/com.github.kr328.clash.foss/files/processing/目錄下找到config.yaml傳到linux系統(tǒng)中(clash for windows也有相關XXXXXXXX.yaml的文件)

手機參考路徑
  • windows端(選擇配置右鍵打開位置,選擇文件大俠最大的那個)

放至liunx中記得改名為config.yaml
  • 自行找方法將yaml傳入liunx的某目錄下;為后期做準備(在此我放在了Downloads文件夾下)

  • 下載Clash,可自行前往github下載合適的版本


  • 這里以(clash-linux-amd64-v1.17.0.gz)為例

    wget https://github.com/Dreamacro/clash/releases/download/v1.17.0/clash-linux-amd64-v1.17.0.gz

  • 準備Country.mmdb (https://github.com/Dreamacro/maxmind-geoip/releases/tag/20230612)

    wget https://github.com/Dreamacro/maxmind-geoip/releases/download/20230612/Country.mmdb

  • 解壓clash-linux-amd64-v1.17.0.gz

    gzip -d clash-linux-amd64*.gz

  • 在home的用戶目錄下創(chuàng)建clash文件(目錄可以自定)

    mkdir /home/mihu/clash

  • 修改名稱,并放到剛才創(chuàng)建的文件夾下

    mv clash-linux-amd64-v1.17.0 /home/mihu/clash/clash

  • 將其他兩個文件也移入該文件夾

    mv config.yaml Country.mmdb /home/mihu/clash/

  • 進入目錄,并給clash文件賦權(quán)777;

    cd /home/mihu/clash

    chmod 777 clash

  • 配置一個服務(/etc/systemd/system/clash.service)

sudo vim /etc/systemd/system/clash.service

將如下復制到文件中

[Unit]

Description=Clash

[Service]

Type=simple

Restart=always

ExecStart=/home/mihu/clash/clash -d /home/mihu/clash

[Install]

WantedBy=multi-user.target

編寫完保存并退出
  • 啟動clash

    sudo systemctl daemon-reload
    sudo systemctl enable clash

    sudo systemctl start clash

    systemctl status clash

  • 在系統(tǒng)設置中設置手動帶理(如圖)

  • HTTP帶理:127.0.0.1

  • 端口:7890

  • HTTPS帶理:127.0.0.1

  • 端口:7890

  • 保存

  • 需要配置帶理節(jié)點的,可以直接進網(wǎng)址http://clash.razord.top?進行設置


Clash for linux安裝與使用過程的評論 (共 條)

分享到微博請遵守國家法律
邵阳市| 慈溪市| 灵宝市| 衡山县| 八宿县| 奇台县| 江油市| 新源县| 开平市| 安塞县| 蛟河市| 遂溪县| 洪泽县| 潼南县| 民丰县| 绥阳县| 房产| 米泉市| 汉川市| 开远市| 嘉禾县| 赤水市| 军事| 凯里市| 揭西县| 龙门县| 聂荣县| 远安县| 阳高县| 乌拉特中旗| 米泉市| 宿迁市| 曲周县| 拉孜县| 寻乌县| 永州市| 北辰区| 台湾省| 襄樊市| 北碚区| 榆社县|