nginx : access.log and error.log file empty

后端 未结 3 729
别跟我提以往
别跟我提以往 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:13

    For all of those whose, like me, came here to figure out why the logs file are empty, and did not realise that you might actually be inside a docker container like one of the comments on another answer suggests, just open a new shell and tail the logs with

    docker logs {your-container-id-here} -f

提交回复
热议问题