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导致的。
本文介绍在CentOS7系统中修改httpd.service配置文件后遇到的重启失败问题及其解决方法。当使用systemctl restart httpd.service命令时报错时,可以通过执行systemctl daemon-reload命令来重新加载service配置,从而解决问题。

618

被折叠的 条评论
为什么被折叠?



