开发者社区> 问答> 正文

怎么解决CentOS 7自动待机的问题?:配置报错 

故障现象:长时间没有操作后,centos7无法ping同,ssh无法连接
运行环境:vsphere 虚拟机,centos 7 服务器GUI
只有通过vsphere client连上centos虚拟机,登陆之后用终端ping一下,网卡才能正常工作。同在vsphere里的centos5 版本就没有这问题
尝试过的方法:
1、停止tuned服务 无效
2、增加xorg.conf文件  无效

Section "ServerFlags"         Option "BlankTime" "0"         Option "StandbyTime" "0"         Option "SuspendTime" "0"         Option "OffTime" "0" EndSection

Section "Monitor"         indentify "monitor0"         Option "DPMS" "false" EndSection
3、重新安装CentOS ,只选了GUI方案,增加了开发包,没有选KDE等,问题依旧

展开
收起
kun坤 2020-06-04 10:23:06 1175 0
1 条回答
写回答
取消 提交回答
  • 应该是电源管理的问题

    ######

    引用来自“_Yud”的评论

    应该是电源管理的问题

    读了一遍REHL 7的电源管理文档,没写到这个问题啊,只说可以挂机,休眠之类的######你可以试下这样做,当你ping不能的时间,不需要登录,只需要进入虚拟机,当出现字符界面时,再从外面ping,看能不能通.能通说明还是电源及性能设置问题.######

    You can try running the machine with the kernel option "pcie_aspm=off" and see if that helps and also try to disable C-States or Power Saving all together in the BIOS. More Details here:
    ######http://lists.centos.org/pipermail/centos/2014-January/140154.html######同样问题,求如何解决?######回复 @新 : o.o######我后来发现似乎是虚拟机网卡选择的问题,换了一个网卡就ok了

    2020-06-04 11:19:26
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
CentOS Nginx PHP JAVA 多语言镜像使用手 立即下载
CentOS Nginx PHP JAVA多语言镜像使用手册 立即下载
AliSQL 内核定制方案 立即下载