centos7修改httpd.service后运行systemctl restart httpd.service提示

Failed to issue method call: Unit httpd.service failed to load: No such file or directory.

执行

systemctl daemon-reload

在次运行即可

systemctl restart httpd.service

 这是由于没有重新加载/usr/lib/systemd/system目录下的service导致的。

相关文章:

  • 2022-12-23
  • 2021-05-28
  • 2021-12-23
  • 2021-08-13
  • 2022-12-23
猜你喜欢
  • 2021-08-08
  • 2022-12-23
  • 2022-12-23
  • 2021-10-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案