【发布时间】:2021-03-19 11:50:19
【问题描述】:
我正在尝试通过运行来启动 apache2 服务-
sudo service apache2 start
但结果是——
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.
我试过了-
sudo systemctl status apache2.service
它正在显示-
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2020-12-08 11:17:18 IST; 7min ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 30529 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
Dec 08 11:17:18 dk systemd[1]: Starting The Apache HTTP Server...
Dec 08 11:17:18 dk apachectl[30535]: chown: invalid user: 'dk'
Dec 08 11:17:18 dk systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Dec 08 11:17:18 dk systemd[1]: apache2.service: Failed with result 'exit-code'.
Dec 08 11:17:18 dk systemd[1]: Failed to start The Apache HTTP Server.
我假设问题出在无效用户:dk。我该如何解决这个问题? 我最近还删除了一个已经安装了 LAMP 堆栈的用户帐户。这就是它显示无效用户的原因吗?
【问题讨论】:
-
Stack Overflow 用于编程问题。您可以尝试在 Unix & Linux、Server Fault 或 Super User 上提问。
-
@JohnKugelman 感谢您的建议。我会尝试在这些网站上提问。