fastdfs安装遇到的问题

在安装 fastdfs 启动 nginx 遇到如下两个问题

1
2
3
4
5
[2019-10-18 09:44:00] ERROR - file: shared_func.c, line: 968, /etc/fdfs/mod_fastdfs.conf is not a regular file
[2019-10-18 09:44:00] ERROR - file: /tmp/fastdfs-nginx-module/src/common.c, line: 155, load conf file "/etc/fdfs/mod_fastdfs.conf" fail, ret code: 22
2019/10/18 09:44:00 [alert] 29644#0: worker process 29991 exited with fatal code 2 and cannot be respawned
2019/10/18 09:51:35 [notice] 30120#0: signal process started

解决方法:

1
chmod 755 /etc/fdfs/

在执行上面的命令后 还会遇到另一个问题

1
2
3
4
[2019-10-18 09:57:03] ERROR - file: shared_func.c, line: 979, open file /etc/fdfs/http.conf fail, errno: 13, error info: Permission denied
[2019-10-18 09:57:03] ERROR - file: /tmp/fastdfs-nginx-module/src/common.c, line: 155, load conf file "/etc/fdfs/mod_fastdfs.conf" fail, ret code: 13
2019/10/18 09:57:03 [alert] 29644#0: worker process 30215 exited with fatal code 2 and cannot be respawned

解决方法

打开 nginx 的配置文件

1
#user  nobody;

改为

1
user  root;
作者

Bruce Liu

发布于

2019-10-18

更新于

2022-11-12

许可协议

You need to set install_url to use ShareThis. Please set it in _config.yml.
You forgot to set the business or currency_code for Paypal. Please set it in _config.yml.

评论

You forgot to set the shortname for Disqus. Please set it in _config.yml.