我正在寻找如何在不使用关闭命令的情况下关闭Ubuntu。我曾经用/etc/acpi/events/powerbtn关闭过电脑上的电源按钮,我不得不用电源开关实际关闭计算机(AdvantecEPC-T2285)。但是,我不知道如何实际关闭Ubuntu。
发布于 2019-03-13 09:56:50
从终端/ ssh提示符中运行sudo shutdown -h now以关闭服务器。此外,poweroff也可能有效。
发布于 2019-03-13 10:07:09
与任何用户一样,只要该用户是唯一登录的用户,也可以按以下方式关闭电源。systemctl poweroff
发布于 2019-03-13 10:01:55
您可以使用sudo shutdown -h now或shutdown -r now
为了给您提供更多的细节,请阅读Ubuntu 停工文件
-r Requests that the system be rebooted after it has been brought down.
-h Requests that the system be either halted or powered off after it has been brought
down, with the choice as to which left up to the system.https://askubuntu.com/questions/1125269
复制相似问题