MySQL 开机自启动 chkconfig add mysqld 如果是CentOS 7 chkconfig --add mysqld 或者 echo "/usr/local/mysql/bin/mysqld_safe --defaults-file=/etc/my.cnf &" >>/etc/rc.local 需要给 /etc/rc.local 文件赋予执行的权限 chmod +x /etc/rc.d/rc.local 相关文章: 2021-11-20 2021-12-15 2022-02-13 2021-11-20 2021-12-10 2022-12-23 2021-12-19 2021-11-20