美国云服务器Nginx编译加载使用动态模块(Dynamic Shared Object)(DSO)Nginx版本必须>=1.9.11
查看支持的动态模块[root@localhost nginx-1.12.2]# ./configure --help | grep dynamic--with-http_xslt_module=dynamic enable dynamic ngx_http_xslt_module--with-http_image_filter_module=dynamicenable dynamic ngx_http_image_filter_module--with-http_geoip_module=dynamic enable dynamic ngx_http_geoip_module--with-http_perl_module=dynamic enable dynamic ngx_http_perl_module--with-mail=dynamic enable dynamic POP3/IMAP4/SMTP proxy module--with-stream=dynamic enable dynamic TCP/UDP proxy module--with-stream_geoip_module=dynamic enable dynamic ngx_stream_geoip_module--add-dynamic-module=PATH enable dynamic external module--with-compat dynamic modules compatibility
编译时候的参数--with-stream \--with-stream=dynamic \--with-stream_ssl_module \--with-stream_realip_module \--with-stream_ssl_preread_module
使用stream动态模块user www www;worker_processes auto;worker_cpu_affinity auto;
load_module "modules/ngx_stream_module.so";
error_log /home/wwwlogs/error_nginx.log warn;#debug | info | notice | warn | error | crit ]pid /usr/local/nginx/logs/nginx.pid;worker_rlimit_nofile 51200;
events {use epoll;worker_connections 51200;multi_accept on;}
stream {server {listen 20020;proxy_pass 192.168.122.214:3389;}server {listen 20021;proxy_pass 192.168.122.200:3389;}}
购买使用一诺网络美国服务器,可以极大降低初创企业、中小企业以及个人开发者等用户群体的整体IT使用成本,无需亲自搭建基础设施、简化了运维和管理的日常工作量,使用户能够更专注于自身的业务发展和创新。美国服务器低至49元/月,购买链接:https://www.enuoidc.com/vpszq.html?typeid=3