【发布时间】:2019-08-20 10:19:57
【问题描述】:
当我尝试重新启动 apache 服务器时,我得到了以下响应。
重定向到 /bin/systemctl start apache2.service
启动 apache2.service 失败:未找到单元。
【问题讨论】:
-
不是httpd.service吗?
systemctl restart httpd -
USER apache HOME /usr/share/httpd 这是 php 信息服务器是 apache。 @大安
-
是的 apache 是用户,但进程是 httpd。试试
systemctl restart httpd或apachectl restart -
sudo systemctl restart httpd 有效,谢谢@Daan