Wednesday, 30 April 2025

Compile Module NGINX Centos

 make distclean

./configure \
        --prefix=/usr/local/nginx \
        --sbin-path=/usr/local/nginx/sbin/nginx \
        --conf-path=/usr/local/nginx/conf/nginx.conf \
        --error-log-path=/usr/local/nginx/logs/error.log \
        --http-log-path=/usr/local/nginx/logs/access.log \
        --pid-path=/usr/local/nginx/logs/nginx.pid \
        --lock-path=/usr/local/nginx/logs/nginx.lock \
        --http-client-body-temp-path=/usr/local/nginx/cache/client_temp \
        --http-proxy-temp-path=/usr/local/nginx/cache/proxy_temp \
        --http-fastcgi-temp-path=/usr/local/nginx/cache/fastcgi_temp \
        --http-uwsgi-temp-path=/usr/local/nginx/cache/uwsgi_temp \
        --http-scgi-temp-path=/usr/local/nginx/cache/scgi_temp \
        --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-debug \
        --with-threads \
        --with-stream \
        --with-pcre=../pcre-8.12 \
        --with-zlib=../zlib-1.3.1 \
        --with-openssl=../openssl-1.1.1k \
        --with-openssl-opt=no-nextprotoneg \
        --add-module=../nginx-rtmp-module \
            --add-module=../nginx-rtmp-module \
            --add-dynamic-module=/opt/nginx-srt-module 
# --with-cc-opt="-O3" 
        $*
make -j $(nproc)
make install $(nproc)

No comments:

Post a Comment