欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

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

[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

复制代码 还要改下 www用户的uid (用户id)和www组的gid(组id)吧 见/node-admin/12671



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


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

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

复制代码


useradd -g www www

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

来自 https://www.wdlinux.cn/bbs/thread-54789-1-1.html

普通分类: