启动服务
service 命令
service start/stop/status/restart servicename
systemctl 命令
systemctl start/stop/status/restart servicename
开机启动
chkconfig 命令
添加到 chkconfig 列表chkconfig --add servicename
开启/关闭chkconfig servicename on/off
查询当前所有自动启动的服务chkconfig --list
查询指定的服务chkconfig --list servicename
systemctl 命令
systemctl enable/disable servicename