CentOS7安装WDCP3.1后Apache及Nginx启动失败解决办法

in 技术分享 with 0 comment

CentOS7在安装WDCP3.1后会出现Apache及Nginx无法启动,提示为

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.

Starting nginxd (via systemctl):  Job for nginxd.service failed 
because the control process exited with error code. 
See "systemctl status nginxd.service" and "journalctl -xe" for details.

主要原因是因为系统中缺少WWW用户导致的,只需在系统中建立www用户和用户组即可解决问题

useradd -g www www
Responses