I've just started with nginx
in a MacOS Sierra v10.12.1
.
After installed with Homebrew, the browser refuses me to connect with the message: This site can’t be reached. localhost refused to connect.
I've just then try to debug my nginx with nginx -t
and it says that nginx.pid
is missing:
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
nginx: [emerg] open() "/usr/local/var/run/nginx.pid" failed (2: No such file or directory)
nginx: configuration file /usr/local/etc/nginx/nginx.conf test failed
in addition, if I try to reload
, it throws the following error:
nginx: [error] open() "/usr/local/var/run/nginx.pid" failed (2: No such file or directory)
Any idea of what's going on?
Thanks in advice.