WDlinux官方论坛's Archiver

kai0754 发表于 2016-10-27 16:20

centos7 安装wdcp3.1 启动httpd报错

现在其他问他都没用。就是启动报错,报错如下。[code]Starting httpd (via systemctl):  Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.[/code]

然后我就按照提示分别输入[size=12px]systemctl status httpd.service和[/size][size=12px]journalctl -xe。分别如下。[code]● httpd.service - SYSV: Apache is a World Wide Web server.  It is used to serve HTML files and CGI.
   Loaded: loaded (/etc/rc.d/init.d/httpd)
   Active: failed (Result: exit-code) since 四 2016-10-27 16:03:27 CST; 11min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 10993 ExecStart=/etc/rc.d/init.d/httpd start (code=exited, status=1/FAILURE)

10月 27 16:03:27 localhost.localdomain systemd[1]: Starting SYSV: Apache is a World Wide Web server.  It is used to serve HTML files and CGI....
10月 27 16:03:27 localhost.localdomain httpd[10993]: Starting httpd: AH00543: httpd: bad user name www
10月 27 16:03:27 localhost.localdomain httpd[10993]: [失败]
10月 27 16:03:27 localhost.localdomain systemd[1]: httpd.service: control process exited, code=exited status=1
10月 27 16:03:27 localhost.localdomain systemd[1]: Failed to start SYSV: Apache is a World Wide Web server.  It is used to serve HTML files and CGI..
10月 27 16:03:27 localhost.localdomain systemd[1]: Unit httpd.service entered failed state.
10月 27 16:03:27 localhost.localdomain systemd[1]: httpd.service failed.
[/code][/size]
[size=12px]和[/size]
[size=12px][code]--
-- Unit httpd.service has failed.
--
-- The result is failed.
10月 27 16:03:05 localhost.localdomain systemd[1]: Unit httpd.service entered failed state.
10月 27 16:03:05 localhost.localdomain systemd[1]: httpd.service failed.
10月 27 16:03:27 localhost.localdomain polkitd[785]: Registered Authentication Agent for unix-process:10988:1189480 (system bus name :1.203 [/usr/bin/pkttyagent --notif
10月 27 16:03:27 localhost.localdomain systemd[1]: Starting SYSV: Apache is a World Wide Web server.  It is used to serve HTML files and CGI....
-- Subject: Unit httpd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has begun starting up.
10月 27 16:03:27 localhost.localdomain httpd[10993]: Starting httpd: AH00543: httpd: bad user name www
10月 27 16:03:27 localhost.localdomain httpd[10993]: [失败]
10月 27 16:03:27 localhost.localdomain systemd[1]: httpd.service: control process exited, code=exited status=1
10月 27 16:03:27 localhost.localdomain systemd[1]: Failed to start SYSV: Apache is a World Wide Web server.  It is used to serve HTML files and CGI..
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has failed.
--
-- The result is failed.
10月 27 16:03:27 localhost.localdomain systemd[1]: Unit httpd.service entered failed state.
10月 27 16:03:27 localhost.localdomain systemd[1]: httpd.service failed.
10月 27 16:03:27 localhost.localdomain polkitd[785]: Unregistered Authentication Agent for unix-process:10988:1189480 (system bus name :1.203, object path /org/freedesk
10月 27 16:10:01 localhost.localdomain systemd[1]: Started Session 27 of user root.
-- Subject: Unit session-27.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-27.scope has finished starting up.
--
-- The start-up result is done.
10月 27 16:10:01 localhost.localdomain systemd[1]: Starting Session 27 of user root.
-- Subject: Unit session-27.scope has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-27.scope has begun starting up.
10月 27 16:10:01 localhost.localdomain CROND[11640]: (root) CMD (/usr/lib64/sa/sa1 1 1)
lines 1698-1739/1739 (END)
[/code]
[/size]


[size=12px]最后,求解决。[/size]

kai0754 发表于 2016-10-28 15:33

解决了。上面得问题是因为没有www这个用户。

执行下面两个语句就可以了。
还是要靠自己啊~[code]   groupadd www[/code][code]   useradd -g www www[/code]

maochenhui 发表于 2017-2-15 01:06

[b]回复 [url=http://wdlinux.cn/bbs/redirect.php?goto=findpost&pid=92644&ptid=54789]2#[/url] [i]kai0754[/i] [/b]
Thank you .Helpful for me !(my centos7 can not  install Chinese input method,so.....)

cnpro 发表于 2018-2-28 12:46

特别赞,我死活找不到原因,感谢感谢,就是这句:
useradd -g www www

tusi 发表于 2018-6-14 19:38

感谢,就是缺少www用户导致的,创建www用户就行了。[code]   useradd -g www www[/code]

wind5027 发表于 2018-9-22 16:18

useradd -g www www

找了好久原因,谢谢楼主!

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.