FastDFS整合Nginx的模块:fastdfs-nginx-module报错:fdfs_define.h:15:27: 致命错误:common_define.h:没有那个文件或目录

错误提示:
/usr/include/fastdfs/fdfs_define.h:15:27: 致命错误:common_define.h:没有那个文件或目录

【解决办法】

  1、编辑fastdfs-nginx-module的配置文件

vim /home/zsd/fast/fastdfs-nginx-module-1.20/src/config

  2、将原文修改为上图的两处红框圈出的地方

ngx_module_incs="/usr/local/include /usr/include/fastcommon/"
CORE_INCS="$CORE_INCS /usr/local/include /usr/include/fastcommon/"

  3、重新编译安装

./configure --prefix=/usr/local/nginx --add-module=/root/fastdfs-nginx-module-master/src    #解压后fastdfs-nginx-module所在的位置
make
make install

  4、查看fastdfs-nginx-module的安装情况

参考:https://blog.csdn.net/weixin_36162966/article/details/91961371

原文地址:https://www.cnblogs.com/116970u/p/11259065.html

时间: 2024-08-29 19:09:21

FastDFS整合Nginx的模块:fastdfs-nginx-module报错:fdfs_define.h:15:27: 致命错误:common_define.h:没有那个文件或目录的相关文章

关于socket模块获取ip失败报错

问题:socket模块获取ip失败报错 In [64]: import socket In [71]: socket.gethostname() Out[71]: 'web01' In [72]: host_name = socket.gethostname() In [73]: socket.gethostbyname(host_name) --------------------------------------------------------------------------- g

hadoop整合到web工程发布到tomcat报错

我是用的maven,至少要移出如下的jar包: <!-- hadoop相关包 --> <dependency> <groupId>org.apache.hadoop</groupId> <artifactId>hadoop-core</artifactId> <version>1.0.4</version> <exclusions> <exclusion> <artifactId&

[Nginx配置系列] 基于Nginx Geo与 Nginx Map模块进行Nginx白名单配置

一.简介 在通常情况下,使用 nginx 基于 ip 限制访问请求频率等限制内容,我们会需要对特定ip进行限制排除操作,因此本文引入了基于nginx geo 与 nginx map 进行此类情景相关配置: 在没有人为操作删除的情况下(without-http_geo_module),nginx默认模块中已经加载了ngx-http-geo-module相关内容: ngx-http-geo-module可以用来创建变量,变量值依赖于客户端 ip 地址; ngx-http-map-module可以基于

nginx反向代理后端IIS持续报错504

故障:使用nginx反向代理后端的IIS服务器出现报错504 gateway time-out 在网上查找修改buffer等内容无法解决 在nginx的配置文件中 event{ accept_mutex off; } 问题解决

idea springboot 多模块项目,将某个模块的内容迁移到其他模块,然后删除该模块,项目启动报错

操作经过:1. 某个模块和另外一个模块循环依赖,然后将两个模块整合成一个模块2. 删除原来的模块3. 启动报错,扫描到com.item.a.bean, com.item.b.bean 解决方案:因为使用过maven install 过 , 虽然模块移除了, 但是jar包还存在找到之前移除的模块的jar包, 然后移除掉, 重启, 修改错误的引用, 就OK了 原文地址:https://www.cnblogs.com/Uzai/p/11200195.html

ECShop添加新模块,管理权限报错

提示报错信息: Warning: join(): Invalid arguments passed in D:\phpStudy\WWW\TimmyMall\admin\privilege.php on line 607 Warning: Invalid argument supplied for foreach() in D:\phpStudy\WWW\TimmyMall\admin\privilege.php on line 609 解决方法: 权限数据库,新加模块的parent_id找不到

Nginx + php-fpm 执行 PHP 脚本超时 报错 502 Bad Gateway 的解决办法

上周写好的发送邮件的计划任务只发送了一部分,检查计划任务日志,发现 502 Bad Gateway 的错误(已经在脚本中设置了 set_time_limit(0)). 后来在网上查找资料,可以通过以下设置来解决脚本超时导致 502 Bad Gateway 的问题(Nginx + php-fpm,CentOs 系统): ① Nginx 设置 修改 nginx.conf: fastcgi_connect_timeout 300; fastcgi_send_timeout 300; fastcgi_r

Oauth2.0 整合springCloud的Zuul 解决关键BUG 报错信息:Principal must not be null

不清楚Oauth2.0 的 可以查看我前几篇博文 Zuul 为springCloud 微服务框架 单独可以使用 非常简单 可以上网查证 此文只说明如何解决Oauth2.0 和Zuul 包 的冲突 需求:新建一个Oauth2.0 项目 需要在此基础上进行网关分发 选用的框架为Zuul 遇到的问题 是 一旦导入zuul 的所需包 <dependency> <groupId>org.springframework.cloud</groupId> ------ >>

SparkStreaming整合Flume的pull方式之启动报错解决方案

Flume配置文件: simple-agent.sources = netcat-source simple-agent.sinks = spark-sink simple-agent.channels = memory-channel #Describe/configure the source simple-agent.sources.netcat-source.type = netcat simple-agent.sources.netcat-source.bind = centos si