- JetBrains/index.html # JetBrains激活(纯前端实现)
- clash/Read.yaml # 个人使用的配置
- clash/clash.js # clash覆写配置
- clash/config.yaml # clash覆写配置
- clash/rules/ChinaCustom.yaml # 自定义规则
- clash/rules/DNSLeak.mrs
- clash/rules/DNSLeak.yaml
- clash/rules/GlobalCustom.yaml
- mac/install.sh # mac安装脚本
- yakit/rules去重.py # yakit去重
# 进入系统启动项管理
cd /Library/LaunchAgents
# 创建启动项
touch com.mihomo.plist<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>mihomo</string>
<key>ProgramArguments</key>
<array>
<!-- 替换为你的 mihomo 可执行文件路径 -->
<string>/path/mihomo</string>
<!-- 可选:指定配置路径 -->
<string>-d</string>
<string>/path/mihomo/</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
<key>StandardOutPath</key>
<!-- 日志存路径,自己设置 -->
<string>/tmp/mihomo/clash-meta.log</string>
</dict>
</plist># 更改为root用户
sudo chown root:wheel com.mihomo.plist
# 更改权限
sudo chmod 755 com.mihomo.plist
# 进入mihomo目录,将mihomo运行程序所属用户修改为root
sudo chown root:admin mihomo
# 设置 SUID 位,允许以 root 权限运行
sudo chmod u+s mihomolaunchctl start mihomo
(config.yaml)会在启动后自动生成
修改config.yaml,自己配置,或者用我的路径在clash/config.yaml
修改完之后执行launchctl stop mihomo会自动重启内核,重新加载配置文件