今天刚在centos7上安装了nginx-1.2.11,/etc/init.d/nginx start启动时,出现
Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.错误。
解决方法:因为之前搭建了LAMP,apache服务还在运行,/usr/local/apache2.4/bin/apachectl stop关闭httpd服务(如果这个方法关闭不了,可以使用killall httpd来关闭)以后,/etc/init.d/nginx start再次启动nginx服务,问题解决。
来源:oschina
链接:https://my.oschina.net/u/3744518/blog/1832317