openssl

https://www.openssl.org/source/

  1. yum install -y openldap-devel
  2. yum install -y jemalloc jemalloc-devel zlib zlib-devel pcre pcre-devel libmcrypt libmcrypt-devel mcrypt mhash
  3. git clone https://github.com/yzprofile/ngx_http_dyups_module.git s
  4. git clone https://github.com/cubicdaiya/ngx_dynamic_upstream.git
  5. wget http://wiki.nginx.org/images/1/11/Nginx_upstream_hash-0.3.1.tar.gz
  6. wget https://www.openssl.org/source/openssl-1.1.1g.tar.gz
  7. wget https://tengine.taobao.org/download/tengine-2.3.2.tar.gz
  8. git clone https://github.com/kvspb/nginx-auth-ldap.git

编译参数

  1. ./configure --prefix=/opt/apps/tengine --with-threads --with-http_ssl_module --with-http_sub_module --without-http_mirror_module --with-http_stub_status_module --with-mail --with-http_gzip_static_module --with-http_realip_module --with-http_addition_module --with-http_v2_module --with-openssl-opt=enable-tls1_3 --with-http_ssl_module --with-openssl=/data/soft/src/openssl-1.1.1g --with-cc-opt=-O3 --with-cpu-opt=Xeon --with-pcre --add-module=/data/soft/src/ngx_dynamic_upstream --with-http_realip_module --add-module=/data/soft/src/ngx_brotli --add-module=/data/soft/src/nginx-auth-ldap --add-module=/data/soft/src/ngx_http_dyups_module --add-module=./modules/ngx_multi_upstream_module --add-module=./modules/ngx_http_upstream_check_module --add-module=./modules/ngx_http_concat_module --add-module=./modules/mod_dubbo --add-module=./modules/mod_config --add-module=./modules/ngx_http_sysguard_module
  2. make -j 10
  3. make install
  4. cp /data/soft/src/tengine-2.3.2/packages/debian/init.d /etc/init.d/nginx

编译ldap