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导致的。