CentOS作為服務器操作系統,默認會自動休眠的設定有點匪夷所思。
手動關閉自動休眠的方法如下:
[root@CentOS ~]# vi /etc/X11/xorg.conf
Section "ServerFlags" Option "BlankTime" "0" #關閉黑屏 Option "StandbyTime" "0" #關閉待機 Option "SuspendTime" "0" #關閉睡眠 Option "OffTime" "0" EndSection Section "Monitor" Option "DPMS" "false" EndSection
[root@CentOS ~]# reboot
