Home > OS >  Nginx compile fastDFS module starts didn't work - there are cloud server for debugging
Nginx compile fastDFS module starts didn't work - there are cloud server for debugging

Time:10-10

In CentOS7 by http://nginx.org/download/nginx-1.16.0.tar.gz download decompression, through configuration

the./configure \
- user=WWW \
- group=WWW \
-- prefix=/usr/local/nginx \
- with - http_ssl_module \
- with - http_stub_status_module \
- with - http_realip_module \
- with - threads \
- add - the module=/usr/local/SRC/fastdfs - nginx - the module/SRC/


make and make install
Start the nginx only one after master process, there is no work process, using the curl test impassability
And then modify the /usr/local/nginx/conf/nginx. Conf
to add the following code
the location ~/group/[0-9] {
Ngx_fastdfs_module;
}

Restart the nginx there is no work
the processConclusion: when compile fastdfs module, regardless of the nginx configuration file is set up the module, no starts work


Test again, configure fastdfs module, the following
the./configure \
- user=WWW \
- group=WWW \
-- prefix=/usr/local/nginx \
- with - http_ssl_module \
- with - http_stub_status_module \
- with - http_realip_module \
- with - threads

Then the make , stop nginx , the make the executable file /usr/local/SRC/nginx - 1.16.0/objs/nginx
Cover /usr/local/nginx/sbin the files under the nginx
Restart (now /usr/local/nginx/conf/nginx. Conf in fastDFS module configuration are annotations)
Two appeared after the normal start work process, using the curl test also passed the
Conclusion: no compile fastdfs module, also not set the module configuration file, the test is through the

So the question comes, how can I compile contains fastdfs module nginx , the compiler is I have a problem or configuration file is wrong?

CodePudding user response:

Put the cloud server come out, if you can help debug well tell me what the problem is, if the address
The cloud data
Use SSH connections: 49.234.149.119:7436
Is CentOS7 using root login and password is: chanchaw
FastDFS related:
1. Download the source code in/usr/local/SRC/fastdfs
2. Libfastcommon in/usr/local/SRC
3. Fastdfs - nginx nginx module - module in/usr/local/SRC
4. After the compilation and installation of fastdfs in the/etc/FDFS, natural relevant configuration file
Tracker. Conf. Storage. Conf. Client. Conf is here
5. Which configuration file is only the server is the IP address of the native 192.168.2.241
Other parameters such as base_path continue to use the website yuqing directory
Yuqing which I created in the system user, then the directory/home/yuqing
6. You can use the ls/usr/bin/FDFS * check to use executable file

Nginx related:
1. Download source code in/usr/local/SRC/nginx - 1.16.1
2. Installed in/usr/local/nginx, and made the chkconfig management
Can use systemctl start nginx start, then the same
Can use systemctl stop nginx stop
Executable file under/usr/local/nginx/sbin
Configuration files in/usr/local/nginx/conf nginx. Under the conf
3. Add fastdfs module compilation operation is:./configure -- add - the module=/usr/local/SRC/fastdfs - nginx - the module/SRC/

  • Related