Reference ( https://blog.csdn.net/qq_34301871/article/details/80060235 )
1, after the unknown directive "ngx_fastdfs_module" ngix integration fastdfs start error
Performing yum groupinstall'Development Tools'
After re-entering after execution make fastdfs-nginx-module directory, makeInstall restart, find the right nginx logs
yum groupinstall error ( 'Development Tools' appears https://blog.csdn.net/wongnoubo/article/details/80445155 )
2, compiling nginx error ( https://blog.csdn.net/xinlus/article/details/82185137 )
Edit: fastdfs-nginx-module-1.20 / src / config file
vim fastdfs-nginx-module-1.20/src/config ngx_addon_name=ngx_http_fastdfs_module if test -n "${ngx_module_link}"; then ngx_module_type=HTTP ngx_module_name=$ngx_addon_name ngx_module_incs="/usr/include/fastdfs /usr/include/fastcommon/" ngx_module_libs="-lfastcommon -lfdfsclient" ngx_module_srcs="$ngx_addon_dir/ngx_http_fastdfs_module.c" ngx_module_deps= CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -DFDFS_OUTPUT_CHUNK_SIZE='2561024' -DFDFS_MOD_CONF_FILENAME='"/etc/fdfs/mod_fastdfs.conf"'" . auto/module else HTTP_MODULES="$HTTP_MODULES ngx_http_fastdfs_module" NGX_ADDON_SRCS="$ NGX_ADDON_SRCS $ ngx_addon_dir / ngx_http_fastdfs_module.c " CORE_INCS="$CORE_INCS /usr/include/fastdfs /usr/include/fastcommon/" CORE_LIBS="$CORE_LIBS -lfastcommon -lfdfsclient" CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -DFDFS_OUTPUT_CHUNK_SIZE='2561024' -DFDFS_MOD_CONF_FILENAME='"/etc/fdfs/mod_fastdfs.conf"'"
#其中两段修改 ngx_module_incs="/usr/include/fastdfs /usr/include/fastcommon/" CORE_INCS="$CORE_INCS /usr/include/fastdfs /usr/include/fastcommon/"
Re to the next nginx directory
.configure ... ..
make compilation
After the installation is complete view nginx compiled version of / usr / local / nginx / sbin / nginx -V
The following describes the module has successfully added