免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4749 | 回复: 1
打印 上一主题 下一主题

[FastDFS] centos 6.5 安装fastDFS配置Nginx集成 Nginx有错误日志 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2017-07-28 23:26 |只看该作者 |倒序浏览
安装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


论坛徽章:
0
2 [报告]
发表于 2017-10-28 10:53 |只看该作者
你是报错后才把http.conf和mime.types拷贝到/etc/fdfs/目录下吗?要是这样的话,你可以重装一下nginx,装nginx之前先拷贝过去
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP