nginx重新编译加载新模块
查询ngnix之前编译安装参数 /usr/local/nginx/sbin/nginx -V 进入nginx源码目录重新编译 ./configure \ --prefix=/usr/local/nginx \ --sbin-path=/usr/local/nginx/nginx \ --conf-path=/usr/local/nginx/conf/nginx.conf \ --error-log-path=/usr/local/nginx/logs/error.log \ --pid-path=/usr/local/nginx/logs/nginx.pid \ --with-http_ssl_module \ --with-openssl=/app/software/openssl-OpenSSL_1_0_2k \ --add-module=/app/software/echo-nginx-module-0.61 \ --add-module=/app/software/fastdfs-nginx-module-master/src \ --add-module=/app/software/ngx_cache_purge-2.3 openssl和echo为我新加的模块可以从开源网站下载 wget https://github.com/openssl/openssl/archive