惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

A
About on SuperTechFans
C
Cybersecurity and Infrastructure Security Agency CISA
N
News and Events Feed by Topic
C
Cisco Blogs
Cisco Talos Blog
Cisco Talos Blog
A
Arctic Wolf
Scott Helme
Scott Helme
P
Palo Alto Networks Blog
S
Schneier on Security
D
Darknet – Hacking Tools, Hacker News & Cyber Security
T
Tor Project blog
量子位
G
Google Developers Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
B
Blog RSS Feed
NISL@THU
NISL@THU
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
AWS News Blog
AWS News Blog
爱范儿
爱范儿
Last Week in AI
Last Week in AI
Y
Y Combinator Blog
L
LINUX DO - 最新话题
Security Archives - TechRepublic
Security Archives - TechRepublic
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
S
Secure Thoughts
Cloudbric
Cloudbric
aimingoo的专栏
aimingoo的专栏
L
Lohrmann on Cybersecurity
TaoSecurity Blog
TaoSecurity Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Hacker News: Ask HN
Hacker News: Ask HN
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
The GitHub Blog
The GitHub Blog
有赞技术团队
有赞技术团队
S
Security @ Cisco Blogs
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
Cyber Attacks, Cyber Crime and Cyber Security
G
GRAHAM CLULEY
P
Proofpoint News Feed
V
V2EX
Martin Fowler
Martin Fowler
C
CERT Recently Published Vulnerability Notes
Attack and Defense Labs
Attack and Defense Labs
C
CXSECURITY Database RSS Feed - CXSecurity.com
The Cloudflare Blog
SecWiki News
SecWiki News
罗磊的独立博客
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
小众软件
小众软件
The Last Watchdog
The Last Watchdog

博客园 - 不懂123

kafka添加用户管理认证 nodejs升级管理 elastic定时清除索引数据 sftp集成设置 kafka3.9集群部署 nginx扩展编译模块 rancher kafka部署 JumpServer使用示例 rancher kafka多监听配置 jenkins远程动态打包镜像 docker镜像仓库清理迁移 elastic单机多节点集群搭建 fastdfs编译升降版本 监控系统搭建集成实例 rancher服务启动异常 linux使用ssh免密连接windows主机 jenkins pipeline搭建 docker跨平台构建镜像 mongodb集群用户管理
fastdfs系统异常
不懂123 · 2025-06-18 · via 博客园 - 不懂123

问题场景

       同时用同样的方式安装三套环境,其中一台主机的nginx启动报错

       /usr/local/nginx/sbin/nginx: symbol lookup error: /usr/local/nginx/sbin/nginx: undefined symbol: g_storage_id_count

       

       除了这台nginx启动异常,其他两台机器均是正常启动运行

问题分析1

              

 操作步骤1

             ldd /usr/local/nginx/sbin/nginx

             找出nginx可执行文件所有的依赖文件

           

           rm -fr /lib64/libfdfsclient.so

        

        

 重启nginx

      

       QQ_1761729642855

  nginx成功启动

文件下载异常 

     fdfs_upload_file /etc/fdfs/client.conf 1.txt
           group1/M00/00/01/rBAb1mkb0ImAQSAzAAAAJNSrQyI420.txt

     fdfs_download_file /etc/fdfs/client.conf group1/M00/00/01/rBAb1mkb0ImAQSAzAAAAJNSrQyI420.txt
     fdfs_monitor /etc/fdfs/storage.conf

     通过命令行上传下载无异常,并且通过fdfs_monitor 检查状态也无异常.但是通过http访问的时候就会提示404

     查看tracker和storage的日志也没有明显的错误输出

       QQ_1763446013769

      由于8999端口是nginx启动监听,最后排查nginx日志

     QQ_1763446134224

      由于/data/fastdfs目录是在编译fastdfs-nginx-module时候指定的,无法通过修改配置文件来修改指定目录。所以只能通过创建目录链接的方式来解决问题

     QQ_1763446303307

      ln -s /app/fastdfs /data/

      QQ_1763446365298

 服务相关配置

       tracker 和storage的web端口并不需要修改

       # the port of the web server on this storage server
           http.server_port = 8888

       # HTTP port on this tracker server
          http.server_port = 8080

nginx配置fastdfs-nginx-module的端口

    server {

        listen       8999;
        server_name  localhost;

        location ~/group[0-9]/ {

           limit_rate 10240k;

           ngx_fastdfs_module;

        }

        location / {

            root   html;

            index  index.html index.htm;

        }


        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }

}

nginx.conf

     curl http://172.16.27.214:8999/group1/M00/00/01/rBAb1mkb0ImAQSAzAAAAJNSrQyI420.txt 

    创建好正确的存储目录fastdfs-nginx-module指向后,通过 fastdfs-nginx-module提供的http接口可以正确的访问fastdfs里面的文件