如果系统默认启动图形界面:

vi /etc/gdm/custom.conf #找到[daemon],修改为下面的

[daemon]
AutomaticLoginEnable=true
AutomaticLogin=root

:wq 保存退出即可

 

如果系统默认启动命令行界面:(不建议这么做)

CentOS7 不带图形界面 自动登录配置

 

参考资料:

centos7下使用root免密码输入自动登陆

CentOS7自动以root身份登陆gnome桌面

posted on 2019-01-21 23:52  jsjrj01  阅读(2195)  评论(0编辑  收藏  举报