首先看一下服务列表里有没有这个服务:
systemctl list-unit-files --type=service
如果有的话:
systemctl daemon-reload
即可
没有的话请确认系统是不是 Centos7,安装 systemctl 之后再试一次
首先看一下服务列表里有没有这个服务:
systemctl list-unit-files --type=service
如果有的话:
systemctl daemon-reload
即可
没有的话请确认系统是不是 Centos7,安装 systemctl 之后再试一次