CentOS 8 Install Tengine Nginx

(Last Updated On: November 8, 2020)
git clone https://github.com/alibaba/tengine
cd tengine

Dependencies

# CentOS 8
dnf config-manager --set-enabled PowerTools

wget https://forensics.cert.org/cert-forensics-tools-release-el8.rpm
rpm -Uvh cert-forensics-tools-release*rpm
dnf --enablerepo=forensics install luajit-devel
dnf -y install \
readline-devel \
pcre-devel \
bzip2-devel \
luajit-devel \
gd \
gd-devel \
geoip-devel \
openssl-devel

Build

./configure \
--prefix=/usr/local/nginx \
--conf-path=/etc/nginx/nginx.conf \
--user=nginx \
--group=nginx \
--http-log-path=/var/log/nginx/access.log \
--error-log-path=/var/log/nginx/error.log \
--pid-path=/var/run/nginx.pid \
--sbin-path=/usr/sbin/nginx \
--with-http_stub_status_module \
--with-http_v2_module \
--with-http_gzip_static_module \
--with-stream_sni \
--with-http_ssl_module \
--with-http_lua_module \
--with-http_realip_module \
--with-http_image_filter_module=dynamic \
--with-http_geoip_module=dynamic \
--with-http_mp4_module \
--with-http_auth_request_module \
--with-stream=dynamic \
--with-stream_ssl_module
make -j$(nproc)
make install