CentOS
开启 xxx 服务:
/bin/systemctl start xxx.service #启动服务
/bin/systemctl status xxx.service #查看服务状态
/bin/systemctl stop xxx.service #关闭服务
/bin/systemctl restart xxx.service #重新启动配置
其他Linux系统
开启 xxx 服务:
service xxx start //启动服务
service xxx status //启动服务
service xxx stop //关闭服务
service xxx restart //重启服务