Debian Build Nginx From Source for aapanel
Install Dependencies Download Nginx And Extension Source Code Extension Dependencies Generate Nginx Build Configuration With OpenSSL/LibreSSL Build & Install Nginx Configure Nginx
Install Dependencies Download Nginx And Extension Source Code Extension Dependencies Generate Nginx Build Configuration With OpenSSL/LibreSSL Build & Install Nginx Configure Nginx
Install Dependencies
Download PHP 8 And Extension Source Code
Build & Install
Enable System RAM Hugepages
Configure PHP 8
安装luajit2 拉取lua-nginx-module, lua-resty-core, lua-resty-lrucache 声明 LuaJIT 位置 Nginx编译参数 修改Nginx配置文件http{}以启用
下载bbr文件并创建Makefile 编译并移动到系统内核模块目录 加载模块并启用 系统启动自加载模块 修改文件/etc/modules并加入模块
使用模块准备 openssl-3.0.1cd /www/modwget https://www.openssl.org/source/openssl-3.0.5.tar.gztar xf openssl-3.0.5.tar.gz pcre-8.45cd /www/modwget https://iweb.dl.sourceforge.net/project/pcre/pcre/8.45/pcre-8.45.tar.gztar xf pcre-8.45.tar.gz zlib-cfcd /www/modgit clone https://github.com/cloudflare/zlib.git zlib-cf ; cd zlib-cfmake -f Makefile.in distclean ngx_brotlicd /www/modgit clone –recurse-submodules https://github.com/google/ngx_brotli.git ngx_http_rediswget https://people.freebsd.org/~osa/ngx_http_redis-0.3.9.tar.gztar xf ngx_http_redis-0.3.9.tar.gz lua-nginx-module redis2-nginx-modulecd /www/modgit clone https://github.com/openresty/redis2-nginx-module.git srcache-nginx-modulecd /www/modgit clone https://github.com/openresty/srcache-nginx-module.git set-misc-nginx-module cd /www/mod git clone https://github.com/openresty/set-misc-nginx-module.git headers-more-nginx-module echo-nginx-module ngx_devel_kitcd /www/modgit clone https://github.com/vision5/ngx_devel_kit.git Nginx Source Code … Read more