#涉及的配置文件
[root@Linux-Mini ~]# ll -d /etc/systemd/system/getty.target.wants/getty@tty1.service
lrwxrwxrwx. 1 root root 38 Nov 3 2020 /etc/systemd/system/getty.target.wants/getty@tty1.service -> /usr/lib/systemd/system/getty@.service
#添加参数
ExecStart=-/sbin/agetty -a root --noclear %I $TERM #-a root参数
系统开机指定用户自动登录(systemd系统)
于 2023-05-16 11:58:36 首次发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)