Comments (6)
you should use the last version: fastdfs-nginx-module V1.20, FastDFS V5.12 and libfastcommon V1.0.38.
from fastdfs-nginx-module.
I have already tried to rebuild from the source that I just pull from github. The whole make process seems OK. and there is not any error when making the nginx source.
But, when I start the process, and make a request to the server, it's not working. The nginx error.log give this:
It seems that there are still something wrong about the including header.
from fastdfs-nginx-module.
http.conf is in FastDFS source, the file path is conf/http.conf.
you should copy it to /etc/fdfs/http.conf.
from fastdfs-nginx-module.
Thanks for your replying. @happyfish100 .
The nginx process can now successfully serve my file request. And besides the http.conf
, I also need to copy the mime.types
too.
Now, when I try to curl the file's url, the nginx gave me open() failded: (13: Permission denied)
just as below:
I have already confirmed that the request file exists. and I am starting my nginx process using root
user. The request file permission is:
Any idea?
from fastdfs-nginx-module.
you should change the file permissions to the user and group who really run nginx, such as nginx:nginx. or you can set permission 755 to /root/fdfs/file and it's sub-dirs.
from fastdfs-nginx-module.
Thanks, I finally get everything done. It turns out that by default the nginx will spawn a child worker process by nobody
. In this case, if I tried to access the file, I got file permission issues.
So the correct way I think is to make sure that the worker process and the requesting file share the same user and group. If they are not same, you should change your nginx.conf
file, alter the user. After that, restart the nginx, then everything is done.
from fastdfs-nginx-module.
Related Issues (20)
- arm64编译报错 HOT 2
- nginx加载fastdfs-nginx-module模块make时出现一大堆错误 HOT 2
- 无法反向代理到资源所在的storage,获取不到storage服务器的ip
- 访问400 Bad request
- 上传图片成功,下载图片报400,访问的nginx日志里一直报 the format of filename "group1/M00/0.png" is invalid的错 HOT 2
- /fastdfs-nginx-module/src//common.c: In function 'fdfs_mod_init' HOT 3
- nginx编译时添加dastdfs-nginx-module后启动只有master进程没有worker进程,而且无法访问web服务 HOT 7
- Comile error with fastdfs-nginx-module-1.20
- 关于请求本地服务器不存在的图片时自动请求源服务器的实现 HOT 2
- 有没有交流群啊,想加一个交流群
- The install nginx error! HOT 3
- alpine3.13编译报错 HOT 1
- 配置好nginx后,重新加载nginx,正常打印fastdfs nginx的pid,但日志有报错 HOT 1
- nginx 编译通过后运行提示以下报错 HOT 3
- (能必现的问题)配置了 fastdfs-nginx-module,第一次请求能获取文件,第二次获取文件会卡 HOT 2
- open() "00/00/XXXX.jpeg/data/null" failed no such file or directory HOT 1
- 关于make失败的问题 HOT 1
- ubuntu编译失败,很恼火 HOT 3
- 关于make 失败问题 HOT 2
- 欧拉 2203 鲲鹏920CPU 安装nginx-module make 报错 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastdfs-nginx-module.