chkconfig --level 345 mysqld on
使用上面的命令配置mysql开发自启动,我们用 systemctl list-unit-files查看系统服务:
systemctl list-unit-files
我们可以看到mysqld服务已经被允许自启动
关闭自启动:
chkconfig --level 345 mysqld off
技术分享博客
chkconfig --level 345 mysqld on
使用上面的命令配置mysql开发自启动,我们用 systemctl list-unit-files查看系统服务:
systemctl list-unit-files
我们可以看到mysqld服务已经被允许自启动
关闭自启动:
chkconfig --level 345 mysqld off