问题原文
原帖链接 · aldokkani · CC BY-SA 4.0
I get the following error:
Permission denied var/run/nginx.pid
Inside my nginx docker container the problem is the user running is unprivileged user with a random userid (forced by my company security) how to bypass this problem?
已采纳解答
原帖链接 · Tero Kilkanen · CC BY-SA 4.0
You can change the PID file location in nginx configuration by adding / editing the pid variable in configuration.
You should put the file in location where the random user id can write, like the user's home directory.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
