最近使用ubuntu发现服务器老是掉线,我还以为家里网线松了,后面查了下系统日志发现有休眠的日志,想想最近就升级了版本,估计是新版本要求自动休眠。
首先查询下是否有休眠
systemctl status sleep.target
停止休眠:
systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
完结~
最近使用ubuntu发现服务器老是掉线,我还以为家里网线松了,后面查了下系统日志发现有休眠的日志,想想最近就升级了版本,估计是新版本要求自动休眠。
首先查询下是否有休眠
systemctl status sleep.target
停止休眠:
systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
完结~