Chinaunix

标题: centos 6.5 安装fastDFS配置Nginx集成 Nginx有错误日志 [打印本页]

作者: d920611    时间: 2017-07-28 23:26
标题: centos 6.5 安装fastDFS配置Nginx集成 Nginx有错误日志
安装fastDFS配置和Nginx集成,启动就是报错了,谷歌了半天没有解决,求指教,相关信息如下
启动信息如下:
[root@haikang07 ~]# netstat -anpt
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name   
tcp        0      0 0.0.0.0:22122               0.0.0.0:*                   LISTEN      24521/fdfs_trackerd
tcp        0      0 0.0.0.0:80                  0.0.0.0:*                   LISTEN      24571/nginx         
tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN      1856/sshd           
tcp        0      0 0.0.0.0:23000               0.0.0.0:*                   LISTEN      24530/fdfs_storaged
tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN      1935/master         
tcp        0     52 192.168.114.185:22          192.168.255.1:51284         ESTABLISHED 24582/sshd         
tcp      490      0 192.168.114.185:80          192.168.255.1:51271         ESTABLISHED -                  
tcp        0      0 192.168.114.185:35686       192.168.114.185:22122       ESTABLISHED 24530/fdfs_storaged
tcp        0      0 192.168.114.185:22122       192.168.114.185:35686       ESTABLISHED 24521/fdfs_trackerd
tcp        0      0 :::22                       :::*                        LISTEN      1856/sshd           
tcp        0      0 ::1:25                      :::*                        LISTEN      1935/master
Nginx报错日志内容如下:
[2017-07-28 23:02:51] ERROR - file: ../common/shared_func.c, line: 960, open file /etc/fdfs/mod_fastdfs.conf fail, errno: 13, error info: Permission denied
[2017-07-28 23:02:51] ERROR - file: /data/software/fastdfs/fastdfs-nginx-module/src/common.c, line: 155, load conf file "/etc/fdfs/mod_fastdfs.conf" fail, ret code: 13
2017/07/28 23:02:51 [alert] 24571#0: worker process 24572 exited with fatal code 2 and cannot be respawned


查找了好久都说是/etc/fdfs 下需要拷贝两个文件  这个操作我做了很多遍 启动还是报错
如下:
[root@haikang07 logs]# cd /etc/fdfs/
[root@haikang07 fdfs]# ll
total 88
-rw-r--r-- 1 root root 23981 Jul 28 22:36 anti-steal.jpg
-rw-r--r-- 1 root root  1463 Jul 28 22:41 client.conf
-rw-r--r-- 1 root root   858 Jul 28 22:36 http.conf
-rw-r--r-- 1 root root 31172 Jul 28 22:36 mime.types
-rwxr-xr-x 1 root root  3688 Jul 28 22:49 mod_fastdfs.conf
-rw-r--r-- 1 root root  7537 Jul 28 22:40 storage.conf
-rw-r--r-- 1 root root   105 Jul 28 22:36 storage_ids.conf
-rw-r--r-- 1 root root  6991 Jul 28 22:37 tracker.conf
[root@haikang07 fdfs]# pwd
/etc/fdfs
[root@haikang07 fdfs]#


相关安装包如下:
[root@haikang07 fastdfs]# ll
total 1440
drwxr-xr-x 10 8980 users   4096 Jul 28 22:34 FastDFS
drwxrwxr-x  3  500   500   4096 May  4  2014 fastdfs-nginx-module
-rw-r-----  1 root root   17510 May  5  2014 fastdfs-nginx-module_v1.16.tar.gz
-rwxr-xr-x  1 root root  406905 Jul  3 14:55 FastDFS_v5.03.tar.gz
drwxr-x---  3 root root    4096 Jul 28 22:32 libfastcommon-1.0.7
-rwxr-xr-x  1 root root   97125 Jul 27 14:48 libfastcommon-1.0.7.zip
drwxr-xr-x  9 1001  1001   4096 Jul 28 22:44 nginx-1.10.0
-rwxr-xr-x  1 root root  908954 Apr 26  2016 nginx-1.10.0.tar.gz



作者: 上山人123    时间: 2017-10-28 10:53
你是报错后才把http.conf和mime.types拷贝到/etc/fdfs/目录下吗?要是这样的话,你可以重装一下nginx,装nginx之前先拷贝过去




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2