无标题文档
wdCP系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用教程) wdCDN系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用手册)
wdOS系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用教程) wdDNS系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用手册)
注册 发贴 提问 回复-必看必看 wddns免费智能 DNS 开通 本地或虚拟机使 用wdcp 一键包在mysql编 译时"卡住"
【300G高防】双线 无视攻击 wdcp官方技术支持/服务 阿里云8折优惠券 无敌云 腾讯云优惠中,现注册更有260代金额券赠送
返回列表 发帖
提问三步曲: 提问先看教程/FAQ索引(wdcp,wdcp_v3,一键包)及搜索,会让你更快解决问题
1 提供详细,如系统版本,wdcp版本,软件版本等及错误的详细信息,贴上论坛或截图发论坛
2 做过哪些操作或改动设置等

温馨提示:信息不详,很可能会没人理你!论坛有教程说明的,也可能没人理!因为,你懂的

[BUG反馈] centos7 安装wdcp3.1 启动httpd报错

现在其他问他都没用。就是启动报错,报错如下。
  1. 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.
复制代码


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

  6. 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....
  7. 10月 27 16:03:27 localhost.localdomain httpd[10993]: Starting httpd: AH00543: httpd: bad user name www
  8. 10月 27 16:03:27 localhost.localdomain httpd[10993]: [失败]
  9. 10月 27 16:03:27 localhost.localdomain systemd[1]: httpd.service: control process exited, code=exited status=1
  10. 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..
  11. 10月 27 16:03:27 localhost.localdomain systemd[1]: Unit httpd.service entered failed state.
  12. 10月 27 16:03:27 localhost.localdomain systemd[1]: httpd.service failed.
复制代码


  1. --
  2. -- Unit httpd.service has failed.
  3. --
  4. -- The result is failed.
  5. 10月 27 16:03:05 localhost.localdomain systemd[1]: Unit httpd.service entered failed state.
  6. 10月 27 16:03:05 localhost.localdomain systemd[1]: httpd.service failed.
  7. 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
  8. 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....
  9. -- Subject: Unit httpd.service has begun start-up
  10. -- Defined-By: systemd
  11. -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
  12. --
  13. -- Unit httpd.service has begun starting up.
  14. 10月 27 16:03:27 localhost.localdomain httpd[10993]: Starting httpd: AH00543: httpd: bad user name www
  15. 10月 27 16:03:27 localhost.localdomain httpd[10993]: [失败]
  16. 10月 27 16:03:27 localhost.localdomain systemd[1]: httpd.service: control process exited, code=exited status=1
  17. 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..
  18. -- Subject: Unit httpd.service has failed
  19. -- Defined-By: systemd
  20. -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
  21. --
  22. -- Unit httpd.service has failed.
  23. --
  24. -- The result is failed.
  25. 10月 27 16:03:27 localhost.localdomain systemd[1]: Unit httpd.service entered failed state.
  26. 10月 27 16:03:27 localhost.localdomain systemd[1]: httpd.service failed.
  27. 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
  28. 10月 27 16:10:01 localhost.localdomain systemd[1]: Started Session 27 of user root.
  29. -- Subject: Unit session-27.scope has finished start-up
  30. -- Defined-By: systemd
  31. -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
  32. --
  33. -- Unit session-27.scope has finished starting up.
  34. --
  35. -- The start-up result is done.
  36. 10月 27 16:10:01 localhost.localdomain systemd[1]: Starting Session 27 of user root.
  37. -- Subject: Unit session-27.scope has begun start-up
  38. -- Defined-By: systemd
  39. -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
  40. --
  41. -- Unit session-27.scope has begun starting up.
  42. 10月 27 16:10:01 localhost.localdomain CROND[11640]: (root) CMD (/usr/lib64/sa/sa1 1 1)
  43. lines 1698-1739/1739 (END)
复制代码




最后,求解决。

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

执行下面两个语句就可以了。
还是要靠自己啊~
  1.    groupadd www
复制代码
  1.    useradd -g www www
复制代码

TOP

回复 2# kai0754
Thank you .Helpful for me !(my centos7 can not  install Chinese input method,so.....)

TOP

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

TOP

感谢,就是缺少www用户导致的,创建www用户就行了。
  1.    useradd -g www www
复制代码

TOP

返回列表