CentOS 6 与 CentOS 7 启停服务 发表于 2019-11-15 | 分类于 Linux | 阅读次数: CentOS 612345678# 设置服务自启动chkconfig --add mysqld # 添加服务chkconfig mysqld on # 开机自启服务chkconfig mysqld off # 关闭开机自启chkconfig --list | grep mysqld # 查看# 查看状态、启动、停止、重启service mysqld status/start/stop/restart CentOS 712345systemctl enable mysqld.service # 开机自启服务systemctl disable mysqld.service # 关闭开机自启# 查看状态、启动、停止、重启systemctl status/start/stop/restart mysqld.service