当前位置: 代码迷 >> 综合 >> [emerg] the “ssl“ parameter requires ngx_http_ssl_module [emerg] unknown directive “ngx_fastdfs_mod
  详细解决方案

[emerg] the “ssl“ parameter requires ngx_http_ssl_module [emerg] unknown directive “ngx_fastdfs_mod

热度:75   发布时间:2024-02-10 00:55:37.0

1.nginx: [emerg] the "ssl" parameter requires ngx_http_ssl_module in /usr/local/nginx/conf/nginx.conf

2.nginx: [emerg] unknown directive "ngx_fastdfs_module" in /usr/local/nginx/conf/nginx.conf

nginx 与fastdfs整合报错

上面两个问题轮流出现,解决第一个,第二个出现,解决第二个,第一个又出现。

最终解决方案:

 cd /opt/nginx-1.12.1./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-file-aio --with-http_realip_module --add-module=/usr/local/fast/fastdfs-nginx-module/src/
make && make install

 ./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-file-aio --with-http_realip_module --add-module=/usr/local/fast/fastdfs-nginx-module/src/

一起编译执行

之后 make && make install 

大功告成!!!

  相关解决方案