要设置Linux不休眠,可以使用以下方法:
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
这会禁用所有休眠和挂起功能。
请注意,此设置可能需要root或管理员权限才能更改。
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
相关推荐:linux怎么设置不休眠