GithubHelp home page GithubHelp logo

Comments (6)

happyfish100 avatar happyfish100 commented on June 9, 2024

you should use the last version: fastdfs-nginx-module V1.20, FastDFS V5.12 and libfastcommon V1.0.38.

from fastdfs-nginx-module.

neocxf avatar neocxf commented on June 9, 2024

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:

image

It seems that there are still something wrong about the including header.

from fastdfs-nginx-module.

happyfish100 avatar happyfish100 commented on June 9, 2024

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.

neocxf avatar neocxf commented on June 9, 2024

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:
image

I have already confirmed that the request file exists. and I am starting my nginx process using root user. The request file permission is:
image

Any idea?

from fastdfs-nginx-module.

happyfish100 avatar happyfish100 commented on June 9, 2024

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.

neocxf avatar neocxf commented on June 9, 2024

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.
image

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.