The system will suspend now! – 业余语言练习

The system will suspend now!

Broadcast message from gdm@115 on tty1 (Wed 2025-04-09 09:47:18 CST):
The system will suspend now!
Connection to 39.100.102.12 closed by remote host.
Connection to 39.100.102.12 closed.
root135@root135:~/Documents$ ssh -oPort=6115 root115@39.100.102.12
root115@39.100.102.12's password: 
Web console: https://115:9090/ or https://10.168.1.115:9090/

Last login: Wed Apr 9 09:33:11 2025 from 10.168.1.115
root115@115:~$ su - root
Password: 
su: Authentication failure
root115@115:~$ su - root
Password: 
Last login: Wed Apr 9 09:34:25 CST 2025 on pts/0
Last failed login: Wed Apr 9 09:49:29 CST 2025 on pts/0
There was 1 failed login attempt since the last successful login.
root@115:~# systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
Created symlink '/etc/systemd/system/sleep.target' → '/dev/null'.
Created symlink '/etc/systemd/system/suspend.target' → '/dev/null'.
Created symlink '/etc/systemd/system/hibernate.target' → '/dev/null'.
Created symlink '/etc/systemd/system/hybrid-sleep.target' → '/dev/null'.
root@115:~#
Broadcast message from gdm@115 on tty1 (Wed 2025-04-09 10:03:46 CST):

The system will suspend now!

^C
su - root
mkdir /etc/systemd/sleep.conf.d
vim /etc/systemd/sleep.conf.d/nosuspend.conf
[Sleep]
AllowSuspend=no
AllowHibernation=no
AllowSuspendThenHibernate=no
AllowHybridSleep=no

Published
Categorized as linux

Leave a comment

Your email address will not be published. Required fields are marked *