The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl.
意思就是 服务命令只支持基本的LSB操作(启动、停止、重新启动、尝试重启、重新加载、强制重新加载、状态)。对于其他操作,请尝试使用systemctl。
我是使用了如下命令:
service start nginx
将其更换为:
systemctl start nginx
来源:CSDN
作者:|刘钊|
链接:https://blog.csdn.net/weixin_40200876/article/details/103500801