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

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


Check your error log with sudo cat /var/log/nginx/error.log|lessYou can also with WinScp by entering the path /var/log/nginx/

In my case had the syntax error.In my server configuration file I had: server_name {api.mydomain.com};

The correct is: server_name api.mydomain.com;