cd ~ 
yum install -y  gcc wget make openssl-devel pcre-devel   openldap-devel
wget  http://nginx.org/download/nginx-1.10.3.tar.gz
wget https://www.openssl.org/source/openssl-1.0.2k.tar.gz
tar zxvf openssl-1.0.2k.tar.gz
wget https://github.com/kvspb/nginx-auth-ldap/archive/master.zip
unzip  master.zip
tar zxvf nginx-1.10.3.tar.gz
cd nginx-1.10.3
./configure --prefix=/opt/nginxldap --with-http_stub_status_module --with-http_ssl_module --add-module=../nginx-auth-ldap-master
make
make install
ll 
文档更新时间: 2019-07-13 11:58   作者:月影鹏鹏