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