Answer the question
In order to leave comments, you need to log in
How to manage two NGINX masters via command applet?
in general, the nginx web server has a thing that controls the system, where it gets information from where to send a signal, and so on.
The task is, there are two nginx of different versions, you need to send a signal nginx -s reload to one of them and not touch the second one
/etc/nginx-first/
/etc/nginx-second/
and, accordingly, their prefixes are indicated above
Answer the question
In order to leave comments, you need to log in
nginx -s
recognizes the PID file of the desired process from the pid directive in the config. If it is not set, the nginx.pid in the directory specified during build will be used. Accordingly, you must specify the correct config file:
https://www.nginx.com/resources/wiki/start/topics/...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question