简体   繁体   中英

How to fix 'Job for nginx.service failed because the control process exited with error code.'

I am trying to 'service restart nginx' but it is not working and giving me the errors below.

Job for nginx.service failed because the control process exited with error code

I have tried looking around for answers but cannot find anything.

That is what it says in the configs etc

Error says that parameter "fastcgi_pass" is duplicated.

You should edit the file and fix the error in your configuration file that should be located in /etc/nginx/site-enabled/default (usually a link pointing to /etc/nginx/site-available/default). You can check configuration with command "sudo nginx -t"

After that you should start again the service using "sudo service nginx reload" or a similar command.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM