在Rocky8上编译安装nginx 1.25.4

1.下载包

wget https://nginx.org/download/nginx-1.25.4.tar.gz

2. 安装依赖

dnf install pcre-devel libxml2-devel libxslt-devel gd-devel perl-ExtUtils-Embed

3. 解压然后构建

CFLAGS="-fPIC" ./configure --prefix=/usr/local/nginx --with-select_module --with-poll_module --with-threads --with-file-aio --with-http_ssl_module --with-http_v2_module --with-http_v3_module --with-http_realip_module --with-http_addition_module --with-http_xslt_module --with-http_image_filter_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_auth_request_module --with-http_random_index_module --with-http_secure_link_module --with-http_degradation_module --with-http_slice_module --with-http_stub_status_module --with-http_perl_module --with-http_sub_module --with-pcre --with-pcre-jit --with-debug --with-stream --with-stream_ssl_module --with-mail --with-mail_ssl_module
make && make install

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注