Job for nginx.service failed 错误解决方案

今天刚在centos7上安装了nginx-1.2.11,/etc/init.d/nginx start启动时,出现nginx

Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.错误。apache

解决方法:由于以前搭建了LAMP,apache服务还在运行,/usr/local/apache2.4/bin/apachectl stop关闭httpd服务(若是这个方法关闭不了,可使用killall httpd来关闭)之后,/etc/init.d/nginx start再次启动nginx服务,问题解决。centos

相关文章
相关标签/搜索