国产操作系统银河麒麟V10

编程入门 行业动态 更新时间:2024-10-07 00:25:12

国产操作系统银河<a href=https://www.elefans.com/category/jswz/34/1766145.html style=麒麟V10"/>

国产操作系统银河麒麟V10

本次编译使用在鲲鹏920arm架构服务器上编译nginx1.20版本的nginx服务,使用的主要模块有nginx-push-stream-module、nginx-upload-progress-module、ngx_cache_purge、ngx_devel_kit、ngx_http_substitutions_filter_module、ngx-fancyindex

下载nginx和对应模块源码包
#下载1.20.1nginx源码包
wget .20.1.tar.gz

在nginx维基上,放到 /var/www/nginx-1.20.0/build/ 目录中

编译安装nginx模块

使用如下的编译参数

/configure --with-cc=/usr/bin/gcc \
--with-cc-opt='-g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2' \--with-ld-opt='-Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now' \--conf-path=/usr/local/nginx/conf/nginx.conf  \--http-log-path=/var/log/nginx/access.log  \--error-log-path=/var/log/nginx/error.log  \--lock-path=/var/lock/nginx.lock  \--pid-path=/run/nginx.pid \--http-client-body-temp-path=/var/lib/nginx/body \--http-fastcgi-temp-path=/var/lib/nginx/fastcgi \--http-proxy-temp-path=/var/lib/nginx/proxy \--http-scgi-temp-path=/var/lib/nginx/scgi \--http-uwsgi-temp-path=/var/lib/nginx/uwsgi \--with-debug --with-pcre-jit \--with-http_ssl_module \--with-http_stub_status_module \--with-http_realip_module \--with-http_auth_request_module \--with-http_addition_module \--with-http_dav_module \--with-http_flv_module \--with-http_geoip_module \--with-http_gunzip_module \--with-http_gzip_static_module \--with-http_image_filter_module \--with-http_mp4_module \--with-http_perl_module \--with-http_random_index_module \--with-http_secure_link_module \--with-http_v2_module \--with-http_sub_module \--with-mail \--with-mail_ssl_module \--with-stream \--with-stream_ssl_module \--with-threads \--add-module=/var/www/nginx-1.20.0/build/nginx-push-stream-module \--add-module=/var/www/nginx-1.20.0/build/nginx-upload-progress-module \--add-module=/var/www/nginx-1.20.0/build/ngx_cache_purge \--add-module=/var/www/nginx-1.20.0/build/ngx_devel_kit \--add-module=/var/www/nginx-1.20.0/build/ngx_http_substitutions_filter_module \--add-module=/var/www/nginx-1.20.0/build/ngx-fancyindex --with-http_xslt_module 

执行完之后
make;make install

更多推荐

国产操作系统银河麒麟V10

本文发布于:2024-02-27 18:39:33,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1766090.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:麒麟   银河   操作系统

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!