今天剛在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