0

My nginx server can't start anymore after I killed its process through pkill nginx. Now everytime I try sudo nginx, i get this error

nginx: [emerg] open() "/usr/local/Cellar/nginx/1.12.2_1/logs/error.log" failed (2: No such file or directory)

When I navigate to /usr/local/Cellar/nginx/1.12.2_1/logs, the directory does not exist. Should I create it manually?? Am in macOs sierra.

E_K
  • 111
  • 5

1 Answers1

1

I solved it by creating the logs/error.log file manually.

E_K
  • 111
  • 5