1

I am getting the below error while working with Nginx with MacOS.

nginx: [emerg] invalid socket number "/usr/local/nginx/sbin" in NGINX environment variable, ignoring

1 Answer 1

1

You should unset the NGINX environment variable before starting nginx. This probably means running unset NGINX in the shell / in your startup script before running nginx.

The NGINX environment variable is used internally by nginx and should not be set. For details see https://trac.nginx.org/nginx/ticket/900

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.