From c666c88b1d806703e7082f73d2388d628c8690dd Mon Sep 17 00:00:00 2001 From: spiritlhl <103393591+spiritLHLS@users.noreply.github.com> Date: Mon, 19 May 2025 23:19:45 +0800 Subject: [PATCH] fix --- docs/guide/incus/incus_windows.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/guide/incus/incus_windows.md b/docs/guide/incus/incus_windows.md index a9c98ba9ca..fd4797b00c 100644 --- a/docs/guide/incus/incus_windows.md +++ b/docs/guide/incus/incus_windows.md @@ -66,11 +66,16 @@ incus start win11vm SERVER_IP=$(hostname -I | awk '{print $1}') nohup websockify --web /usr/share/spice-html5 6080 \ --unix-target=/run/incus/win11vm/qemu.spice \ + --pidfile /run/websockify-win11vm.pid \ > /var/log/websockify-win11vm.log 2>&1 & echo "请在浏览器中访问:" echo " https://${SERVER_IP}:6080/spice_auto.html?port=6080" ``` +```shell +kill "$(cat /run/websockify-win11vm.pid)" +``` + ```shell # 安装完成后,先在控制台关闭/退出 Windows, # 然后移除 ISO 设备,保证下次从硬盘启动