mkdir -pv /var/tmp/nginx2/client
mkdir -pv /var/tmp/nginx3/client
groupadd -r nginx3
useradd -r -g nginx3 nginx3
groupadd -r nginx2
useradd -r -g nginx2 nginx2
./configure \
--prefix=/usr/local/nginx2 \
--sbin-path=/usr/sbin/nginx2 \
--conf-path=/etc/nginx2/nginx.conf \
--error-log-path=/var/log/nginx2/error.log \
--http-log-path=/var/log/nginx2/access.log \
--pid-path=/var/run/nginx2.pid \
--lock-path=/var/run/nginx2.lock \
--http-client-body-temp-path=/var/tmp/nginx2/client \
--http-proxy-temp-path=/var/tmp/nginx2/proxy \
--http-fastcgi-temp-path=/var/tmp/nginx2/fcgi \
--http-uwsgi-temp-path=/var/tmp/nginx2/uwsgi \
--http-scgi-temp-path=/var/tmp/nginx2/scgi \
--user=nginx2 \
--group=nginx2 \
--with-pcre \
--with-http_v2_module \
--with-http_ssl_module \
--with-http_realip_module \
--with-http_addition_module \
--with-http_sub_module \
--with-http_dav_module \
--with-http_flv_module \
--with-http_mp4_module \
--with-http_gunzip_module \
--with-http_gzip_static_module \
--with-http_random_index_module \
--with-http_secure_link_module \
--with-http_stub_status_module \
--with-http_auth_request_module \
--with-mail \
--with-mail_ssl_module \
--with-file-aio \
--with-ipv6 \
--with-http_v2_module \
--with-threads \
--with-stream \
--with-stream_ssl_module
1
./configure \
--prefix=/usr/local/nginx3 \
--sbin-path=/usr/sbin/nginx3 \
--conf-path=/etc/nginx3/nginx.conf \
--error-log-path=/var/log/nginx3/error.log \
--http-log-path=/var/log/nginx3/access.log \
--pid-path=/var/run/nginx3.pid \
--lock-path=/var/run/nginx3.lock \
--http-client-body-temp-path=/var/tmp/nginx3/client \
--http-proxy-temp-path=/var/tmp/nginx3/proxy \
--http-fastcgi-temp-path=/var/tmp/nginx3/fcgi \
--http-uwsgi-temp-path=/var/tmp/nginx3/uwsgi \
--http-scgi-temp-path=/var/tmp/nginx3/scgi \
--user=nginx3 \
--group=nginx3 \
--with-pcre \
--with-http_v2_module \
--with-http_ssl_module \
--with-http_realip_module \
--with-http_addition_module \
--with-http_sub_module \
--with-http_dav_module \
--with-http_flv_module \
--with-http_mp4_module \
--with-http_gunzip_module \
--with-http_gzip_static_module \
--with-http_random_index_module \
--with-http_secure_link_module \
--with-http_stub_status_module \
--with-http_auth_request_module \
--with-mail \
--with-mail_ssl_module \
--with-file-aio \
--with-ipv6 \
--with-http_v2_module \
--with-threads \
--with-stream \
--with-stream_ssl_module