-
Notifications
You must be signed in to change notification settings - Fork 693
Home
ね律こ edited this page Nov 3, 2025
·
7 revisions
-
内核选择:默认安装
mihomo,可选安装clash。 -
用户支持:兼容
root与普通用户安装。 - 多架构支持:自动识别系统架构,下载对应版本的内核与工具。
-
多系统兼容:自动检测初始化系统,按需生成
systemd、SysVinit、OpenRC配置,亦支持在AutoDL等容器环境内安装。 - 容器化支持:可选择以容器方式运行代理内核。
git clone --branch feat-init --depth 1 https://gh-proxy.com/https://github.com/nelvko/clash-for-linux-install.git \
&& cd clash-for-linux-install \
&& bash install.sh- 可通过项目根目录下的
.env文件或脚本参数自定义安装选项。 -
root/sudo用户:以系统服务方式运行代理内核。 - 普通用户:使用
nohup启动,后台常驻运行。
示例:
# 默认安装 mihomo
bash install.sh
# 安装 clash
bash install.sh clash
# 容器化安装 mihomo
bash install.sh docker
# 容器化安装 clash
bash install.sh docker clash
# 普通用户提权安装
sudo bash install.sh