centos7 Unit https.service failed to load: No such file or directory.

来源:互联网 发布:电子样本制作软件 编辑:程序博客网 时间:2024/05/03 10:44


CentOS7.1,安装http后,设置httpd为自动启动

#systemctl enable httpd.service

# systemctl start https.service
Failed to start https.service: Unit https.service failed to load: No such file or directory.


错误的原因是没有重新加载/usr/lib/systemd/system目录下的service导致的。


# systemctl daemon-reload   (执行这个操作就能解决问题)
# systemctl restart httpd.service

重启操作成功




0 0
原创粉丝点击