#安装nginx
yum -y install gcc automake autoconf libtool make
# 安装g++:
yum -y install gcc gcc-c++
yum -y install zlib zlib-devel openssl openssl-devel pcre pcre-devel
cd /usr/local/src
wget http://nginx.org/download/nginx-1.19.9.tar.gz
tar zxvf nginx-1.19.9.tar.gz
cd nginx-1.19.9
#加上--with-stream才能转发ldap
./configure --with-stream
make && make install
#配置参考
stream {
server {
proxy_timeout 30s;
proxy_connect_timeout 30s;
listen 3389;
proxy_pass 172.18.8.91:389;
proxy_busy_buffers_size 64k;
}
}
【nginx】centos源码安装
于 2023-10-19 16:55:01 首次发布