Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

💻 Clash for Linux 部署 & 配置

—— 2026.03.25


本仓库记录了Clash for Linux的部署与配置教程,仅需导入订阅链接,即可让服务器访问外网资源


Step 1:一键安装

在终端中执行以下命令即可完成安装:

git clone --branch master --depth 1 https://gh-proxy.org/https://github.com/nelvko/clash-for-linux-install.git \
  && cd clash-for-linux-install \
  && bash install.sh

Step 2:常用命令一览

Commands:
    clashctl on                    开启代理
    clashctl off                   关闭代理
    clashctl status                内核状况 (查看Clash mihomo 的进程ID、启动命令、配置文件路径)
    clashctl proxy                 系统代理 (输出当前终端已经配置好的代理环境变量)
    clashctl ui                    Web 面板
    clashctl secret                Web 密钥
    clashctl sub                   订阅管理
    clashctl upgrade               升级内核
    clashctl tun                   Tun 模式
    clashctl mixin                 Mixin 配置
Abbreviation:
    clashon                        开启代理
    clashoff                       关闭代理

View Help Info:
    clashctl -h
    clashctl -help

Step 3:关闭开机自动运行 (可选)

注释掉.bashrc中的 watch_proxy

pic1


特别声明

本项目仅用于技术学习与研究,主要涉及 Shell 编程及系统配置方法,不得用于任何违反法律法规的用途。使用者应自行确保其行为符合所在地区的相关规定,并自行承担由此产生的全部责任。项目维护者不对因使用或误用本项目所造成的任何后果承担责任。

This project is intended for technical learning and research purposes only, focusing on Shell programming and system configuration. It must not be used for any activities that violate applicable laws or regulations. Users are responsible for ensuring compliance with local laws and assume all risks arising from its use. The maintainers shall not be held liable for any consequences resulting from the use or misuse of this project.


About

Clash for Linux 部署与配置指南

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors