Shihui Guo

lsof - list open files of a process

This command is really helpful yesterday because when I am running nginx, the access and error log is not written into the files I have specified. Using this command, I found that actually nginx are openning other two log files.

sudo lsof -c nginx

Reference:
http://forum.nginx.org/read.php?2,58447,58571#msg-58571

点击查看评论