From cb14a4b6dca9c162c8f1f1d075ab66f6f81807ea Mon Sep 17 00:00:00 2001 From: spiritLHLS <103393591+spiritLHLS@users.noreply.github.com> Date: Fri, 14 Apr 2023 15:33:33 +0800 Subject: [PATCH] Update README.md --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 608e5ae..b8d1e69 100644 --- a/README.md +++ b/README.md @@ -186,6 +186,17 @@ cat vmlog 查看信息 +#### 删除所有虚拟机 + +``` +for vmid in $(qm list | awk '{if(NR>1) print $1}'); do qm stop $vmid; qm destroy $vmid; rm -rf /var/lib/vz/images/$vmid*; done +iptables -t nat -F +iptables -t filter -F +service networking restart +systemctl restart networking.service +rm -rf vmlog +``` + ### 注意事项 PVE修改虚拟机配置前都得停机先,再修改配置,修改完再启动,免得出现配置重载错误