The operating system is centos7.2. Compile and install nginx1.9.14. The default settings are used. No directory is changed. After the installation is completed, you need to find the directory of nginx.lock, but you can’t find it after searching around. I don’t know which one is installed by default. Table of contents.
There are no following directories:
/var/lock/nginx.lock
nginx.lock is a lock file used by nginx to ensure that only one service is running. It will be automatically created when nginx starts.
find / -name nginx.lock