Home  >  Q&A  >  body text

What directory is nginx.lock when nginx is compiled and installed?

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
滿天的星座滿天的星座2713 days ago460

reply all(2)I'll reply

  • 阿神

    阿神2017-05-16 17:19:58

    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.

    reply
    0
  • PHP中文网

    PHP中文网2017-05-16 17:19:58

    find / -name nginx.lock

    reply
    0
  • Cancelreply