nginx配置完毕关于代理fastdfs的内容后,执行./nginx报错
nginx: [emerg] unknown directive "ngx_fastdfs_module" in /usr/local/nginx/conf/nginx.conf:50
查看nginx编译模块情况
./nginx -V
nginx编译内容如下
nginx version: nginx/1.15.12
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC)
built with OpenSSL 1.0.2k-fips 26 Jan 2017
TLS SNI support enabled
configure arguments:
发现没有fastdfs的相关内容
此时我们要在nginx-1.15.12目录下配置 fastdfs-nginx-module 的路径
./configure --add-module=[fastdfs-nginx-module 路径]/src
接着就是在 nginx-1.15.12目录下执行编译和安装命令
make && make install
关闭nginx,进入nginx/sbin目录下启动nginx
pkill -9 nginx
./nginx
启动成功