执行命令:systemctl enable mariadb并由此想到,添加服务自启的命令格式: systemctl enable 服务名当然关闭服务自启也是可以得: systemctl disable 服务名