Answer the question
In order to leave comments, you need to log in
Why can't I change the owner of a file in Centos?
I have an nginx error "Can't open PID file /run/nginx.pid (yet?) after start"
To fix it, you need to change the owner of the file /run/nginx.pid from root to nginx I execute
the command chown -R nginx:nginx /run /nginx.pid
Owner changed, but reverts back to root file owner after nginx reload.
What to do?
Answer the question
In order to leave comments, you need to log in
Came across this mess. One thing is written in the config, another is written in the system unit. Somehow it needs to be more consistent. See what you have on your system /run or /var/run . There you need to fix the file.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question