systemctl start httpd 显示[root@localhost ~]# systemctl start httpd
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
[root@localhost ~]# systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since 日 2021-03-21 13:55:20 CST; 3min 28s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 10600 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 10598 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 10598 (code=exited, status=1/FAILURE)
3月 21 13:55:20 localhost.localdomain systemd[1]: Starting The Apache HTTP Server...
3月 21 13:55:20 localhost.localdomain httpd[10598]: AH00543: httpd: bad user name apache
3月 21 13:55:20 localhost.localdomain systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
3月 21 13:55:20 localhost.localdomain kill[10600]: kill: cannot find process ""
3月 21 13:55:20 localhost.localdomain systemd[1]: httpd.service: control process exited, code=exited status=1
3月 21 13:55:20 localhost.localdomain systemd[1]: Failed to start The Apache HTTP Server.
3月 21 13:55:20 localhost.localdomain systemd[1]: Unit httpd.service entered failed state.
3月 21 13:55:20 localhost.localdomain systemd[1]: httpd.service failed.