服务器ubuntu 20.04关闭自动休眠模式

1.查看是否开启休眠模式

systemctl status sleep.target

发现系统提示:

 2.执行关闭休眠功能命令

sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

系统返回:

 3.观察系统休眠状态,如下:

systemctl status sleep.target

可以看到自动休眠模式已被关闭:

 

posted @ 2024-07-10 13:16  骑着蚂蚁快跑  阅读(668)  评论(0)    收藏  举报