본문 바로가기

server/linux

[Ubuntu] Ubuntu 20.04 절전모드 해제

728x90

서버가 자꾸 떨어진다고해서 확인중에 알게된 사실.

우분투 20.04(GUI)부터 절전모드에 진입하면 네트워크 통신을 정지한다.

그래서 따로 해제 설정을 해야한다. 

root@build$ sudo systemctl mask sleep.target suspend.target hibernate.target hybird-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/hybird-sleep.target → /dev/null.
728x90