V
V
Vi2016-04-09 05:28:06
Nginx
Vi, 2016-04-09 05:28:06

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

1 answer(s)
P
Pavel Selivanov, 2016-04-09
@redsabien

nginx -srecognizes 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 question

Ask a Question

731 491 924 answers to any question