# clash **Repository Path**: loveagri/clash ## Basic Information - **Project Name**: clash - **Description**: 112111111111 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-06-19 - **Last Updated**: 2025-04-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 使用 ```sh # begin.sh # 一键启动所有 sh begin.sh # 一键关闭所有 sh close.sh ``` ## 启动脚本 ```sh ./download-config.sh ./run.sh & .start.sh ./download-config.sh && ./run.sh & .start.sh ``` ## 开发端口 ```sh -p 7890:7890 -p 9090:9090 ``` ## linux ```sh # run clash ./clash -d $(pwd) -f $(pwd)/config.yaml -ext-ui $(pwd)/ui & # or ./clash -d . -f ./config.yaml -ext-ui ./ui & ``` ## proxy ```sh # `source start.sh` 设置全局环境变量,`sh start.sh` 设置局部变量 export https_proxy='http://127.0.0.1:7890';export https_proxy='http://127.0.0.1:7890';export all_proxy='http://127.0.0.1:7890';echo on unset http_proxy;unset https_proxy;unset all_proxy;echo off ``` ## docker ```sh docker run -d --name clash -p 7890:7890 -p 9090:9090 -v ./config.yaml:/root/.config/clash/config.yaml -v ./ui:/opt/clash/ui dreamacro/class ``` ## test ```sh curl -i https://www.youtube.com ``` ## no proxy ```sh export no_proxy="ghfast.top,vault.centos.org" ``` ## services ```sh vim /etc/systemd/system/clash.service systemctl daemon-reload systemctl start clash systemctl enable clash systemctl status clash ``` ## config [download config](https://v2rayshare.com/) ## UI [http://ip:9090/ui/#/proxies](http://ip:9090/ui/#/proxies) ## clash 相关 [clash 知识库-有用](https://clash.wiki/introduction/getting-started.html) [内核源码](https://downloads.clash.wiki/ClashPremium/)