nginx : access.log and error.log file empty

后端 未结 3 739
别跟我提以往
别跟我提以往 2021-02-12 03:45

I have just installed nginx on Ubuntu 14.04 using the command

sudo apt-get install nginx

Now, when I open my browser and type in the address

3条回答
  •  佛祖请我去吃肉
    2021-02-12 04:08

    I had the same issue after reinstalling nginx to newer version. Seems like log files ownership changed and new nginx couldn't save anything there.

    Removing log files and reloading nginx worked for me:

    $ sudo rm -f /var/log/nginx/*
    $ sudo nginx -s reload
    

提交回复
热议问题