OpenVZ/LXC VPS 系统一键重装工具
点击下方任意代码区域即可直接复制命令:
标准版重装:
wget -qO OsMutation.sh https://raw.githubusercontent.com/LloydAsp/OsMutation/main/OsMutation.sh && chmod u+x OsMutation.sh && ./OsMutation.sh
或使用 curl:
wget -qO OsMutation.sh https://raw.githubusercontent.com/LloydAsp/OsMutation/main/OsMutation.sh && chmod u+x OsMutation.sh && ./OsMutation.sh
小硬盘专用版 (实验性,磁盘 < 1GiB):
wget -qO OsMutation.sh https://raw.githubusercontent.com/LloydAsp/OsMutation/main/OsMutationTight.sh && chmod u+x OsMutation.sh && ./OsMutation.sh
OpenVZ 和 LXC 属于容器虚拟化技术,与宿主机共享内核,操作系统所需的应用程序和运行库则打包在容器内部。
OsMutation 的原理是通过直接替换容器内的系统文件来实现“重装”。简单直接,唯一需要注意的是执行顺序,因为文件之间存在依赖关系。