CentOS7取消服务器自动休眠


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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM