一 改成命令行模式
# systemctl get-default
查看当前默认开机运行状态
# systemctl set-default multi-user.target
# 图形界面
# systemctl set-default graphical.target
二 smb开机启动设置
service smb status
systemctl enable smb.service
# systemctl get-default
查看当前默认开机运行状态
# systemctl set-default multi-user.target
# 图形界面
# systemctl set-default graphical.target
service smb status
systemctl enable smb.service