fix: use /tmp/nginx.pid to avoid permission denied errors (#877)

Set pid directive to /tmp/nginx.pid in nginx.conf and nginx.local.conf
to prevent permission denied errors when running nginx as a non-root user.

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
CHANGXUBO 2026-02-18 10:01:51 +08:00 committed by GitHub
parent 0533933d17
commit 007776c1b1
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
events {
worker_connections 1024;
}
pid /tmp/nginx.pid;
http {
# Basic settings
sendfile on;

View File

@ -1,7 +1,7 @@
events {
worker_connections 1024;
}
pid /tmp/nginx.pid;
http {
# Basic settings
sendfile on;