卸载
本文说明默认卸载与彻底卸载的行为差异,以及卸载后的残留检查方法。
默认卸载
sh
mtun-xd uninstall默认保留:
/etc/mihomo/config.yaml- GEO 数据
/etc/mihomo-toolpass
面板、配置工具、CGI、80 端口挂载与自检服务会被移除。
彻底卸载
sh
mtun-xd uninstall --purge--purge 会连同配置、工具密码与 GEO 数据一并删除,且不可恢复。
卸载后检查
套件卸载后 mtun-xd 命令已不存在,不能再执行 mtun-xd doctor,改用 shell 检查:
sh
ls -l /www/cgi-bin/mihomo-apply /www/cgi-bin/mihomo-sub
ls -ld /etc/mihomo /etc/mihomo-toolpass
ls -l /etc/init.d /etc/rc.d | grep -E 'mtun|mihomo'
find /tmp -maxdepth 1 -name 'mtun-xd*' -o -name 'mihomo-sub*'如需保留自检结论,应在卸载前执行一次 mtun-xd doctor 并记录结果。
残留范围
卸载会清理以下内容:
$UI下的面板与配置工具/www/cgi-bin/mihomo-apply/www/cgi-bin/mihomo-sub/etc/mtun-xd.*/tmp/mtun-xd.*/tmp/mihomo-sub.*/etc/init.d与/etc/rc.d的相关项- uhttpd、nginx、HAProxy 的相关挂载
- crontab 中的
mihomo-gen-pull
doctor 的残留检查只报告,不删除。