免费注册 查看新帖 |

Chinaunix

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

[FastDFS] 求助,使用FastDFS出现问题。。。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2015-07-01 13:12 |只看该作者 |倒序浏览
来回折腾好几天了。最开始使用的FastDFS版本是5.0.2,问题是两台storage服务器的文件不能同步,后来在论坛搜索,发现是版本bug。所以换成了5.0.3版本。重新编译了nginx。配置文件用的是之前的。现在问题是nginx一起动工作进程就退出,导致网页打不开。。。下面是我的storage的配置文件和nginx的error日志,求大鱼帮忙看看是啥问题。。。。


storage配置文件:
————————————————————————————————————————————————————————————————————————————————————

disabled=false
group_name=group1
bind_addr=10.163.1.34
client_bind=true
port=23000
connect_timeout=30
network_timeout=60
heart_beat_interval=30
stat_report_interval=60
base_path=/data/fastdfs
max_connections=1024
buff_size = 256KB
accept_threads=8
work_threads=8
disk_rw_separated = true
disk_reader_threads = 2
disk_writer_threads = 2
sync_wait_msec=50
sync_interval=0
sync_start_time=00:00
sync_end_time=23:59
write_mark_file_freq=500
store_path_count=1
store_path0=/data/fastdfs
subdir_count_per_path=256
tracker_server=10.163.1.35:22122
tracker_server=10.163.1.36:22122
log_level=info
run_by_group=
run_by_user=
allow_hosts=*
file_distribute_path_mode=0
file_distribute_rotate_count=100
fsync_after_written_bytes=0
sync_log_buff_interval=10
sync_binlog_buff_interval=10
sync_stat_file_interval=300
thread_stack_size=512KB
upload_priority=10
if_alias_prefix=
check_file_duplicate=0
file_signature_method=hash
key_namespace=FastDFS
keep_alive=0
use_access_log = false
rotate_access_log = false
access_log_rotate_time=00:00
rotate_error_log = false
error_log_rotate_time=00:00
rotate_access_log_size = 0
rotate_error_log_size = 0
file_sync_skip_invalid_record=false
use_connection_pool = false
connection_pool_max_idle_time = 3600
http.domain_name=
http.server_port=8888
#include http.conf



mod_fastdfs.conf:
————————————————————————————————————————————————————————————————————————————————————

connect_timeout=2
network_timeout=30
base_path=/logs
load_fdfs_parameters_from_tracker=true
storage_sync_file_max_delay = 86400
use_storage_id = false
storage_ids_filename = storage_ids.conf
tracker_server=10.163.1.35:22122
tracker_server=10.163.1.36:22122
storage_server_port=23000
group_name=group1
url_have_group_name = true
store_path_count=1
store_path0=/data/fastdfs
log_level=info
log_filename=
response_mode=proxy
if_alias_prefix=
flv_support = true
flv_extension = flv
group_count = 0
#include http.conf



error日志:
————————————————————————————————————————————————————————————————————————————————————

2015/07/01 12:52:13 [notice] 4481#0: signal 3 (SIGQUIT) received, shutting down
2015/07/01 12:52:13 [notice] 4481#0: exit
2015/07/01 12:52:16 [notice] 12303#0: using the "epoll" event method
2015/07/01 12:52:16 [notice] 12303#0: nginx/1.6.3
2015/07/01 12:52:16 [notice] 12303#0: built by gcc 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC)
2015/07/01 12:52:16 [notice] 12303#0: OS: Linux 2.6.32-431.23.3.el6.x86_64
2015/07/01 12:52:16 [notice] 12303#0: getrlimit(RLIMIT_NOFILE): 65535:65535
2015/07/01 12:52:16 [notice] 12304#0: start worker processes
2015/07/01 12:52:16 [notice] 12304#0: start worker process 12305
2015/07/01 12:52:16 [notice] 12304#0: start worker process 12306
2015/07/01 12:52:16 [notice] 12304#0: start worker process 12307
ngx_http_fastdfs_process_init pid=12305
2015/07/01 12:52:16 [notice] 12304#0: start worker process 12309
ngx_http_fastdfs_process_init pid=12306
[2015-07-01 12:52:16] ERROR - file: ../storage/trunk_mgr/trunk_shared.c, line: 177, "No such file or directory" can't be accessed, error info: /logs
2015/07/01 12:52:16 [notice] 12304#0: start worker process 12310
[2015-07-01 12:52:16] ERROR - file: ../storage/trunk_mgr/trunk_shared.c, line: 177, "No such file or directory" can't be accessed, error info: /logs
2015/07/01 12:52:16 [notice] 12304#0: start worker process 12311
ngx_http_fastdfs_process_init pid=12307
ngx_http_fastdfs_process_init pid=12309
2015/07/01 12:52:16 [notice] 12304#0: start worker process 12312
[2015-07-01 12:52:16] ERROR - file: ../storage/trunk_mgr/trunk_shared.c, line: 177, "No such file or directory" can't be accessed, error info: /logs
[2015-07-01 12:52:16] ERROR - file: ../storage/trunk_mgr/trunk_shared.c, line: 177, "No such file or directory" can't be accessed, error info: /logs
2015/07/01 12:52:16 [notice] 12304#0: start worker process 12313
ngx_http_fastdfs_process_init pid=12310
ngx_http_fastdfs_process_init pid=12311
2015/07/01 12:52:16 [notice] 12304#0: signal 17 (SIGCHLD) received
2015/07/01 12:52:16 [notice] 12304#0: worker process 12306 exited with code 2
2015/07/01 12:52:16 [alert] 12304#0: worker process 12306 exited with fatal code 2 and cannot be respawned
2015/07/01 12:52:16 [notice] 12304#0: signal 17 (SIGCHLD) received
2015/07/01 12:52:16 [notice] 12304#0: worker process 12305 exited with code 2
2015/07/01 12:52:16 [alert] 12304#0: worker process 12305 exited with fatal code 2 and cannot be respawned
[2015-07-01 12:52:16] ERROR - file: ../storage/trunk_mgr/trunk_shared.c, line: 177, "No such file or directory" can't be accessed, error info: /logs
[2015-07-01 12:52:16] ERROR - file: ../storage/trunk_mgr/trunk_shared.c, line: 177, "No such file or directory" can't be accessed, error info: /logs
2015/07/01 12:52:16 [notice] 12304#0: signal 17 (SIGCHLD) received
2015/07/01 12:52:16 [notice] 12304#0: worker process 12309 exited with code 2
2015/07/01 12:52:16 [alert] 12304#0: worker process 12309 exited with fatal code 2 and cannot be respawned
ngx_http_fastdfs_process_init pid=12313
2015/07/01 12:52:16 [notice] 12304#0: signal 17 (SIGCHLD) received
2015/07/01 12:52:16 [notice] 12304#0: worker process 12307 exited with code 2
2015/07/01 12:52:16 [alert] 12304#0: worker process 12307 exited with fatal code 2 and cannot be respawned
[2015-07-01 12:52:16] ERROR - file: ../storage/trunk_mgr/trunk_shared.c, line: 177, "No such file or directory" can't be accessed, error info: /logs
ngx_http_fastdfs_process_init pid=12312
2015/07/01 12:52:16 [notice] 12304#0: signal 17 (SIGCHLD) received
2015/07/01 12:52:16 [notice] 12304#0: worker process 12310 exited with code 2
2015/07/01 12:52:16 [alert] 12304#0: worker process 12310 exited with fatal code 2 and cannot be respawned
2015/07/01 12:52:16 [notice] 12304#0: signal 17 (SIGCHLD) received
2015/07/01 12:52:16 [notice] 12304#0: worker process 12311 exited with code 2
2015/07/01 12:52:16 [alert] 12304#0: worker process 12311 exited with fatal code 2 and cannot be respawned
[2015-07-01 12:52:16] ERROR - file: ../storage/trunk_mgr/trunk_shared.c, line: 177, "No such file or directory" can't be accessed, error info: /logs
2015/07/01 12:52:16 [notice] 12304#0: signal 17 (SIGCHLD) received
2015/07/01 12:52:16 [notice] 12304#0: worker process 12313 exited with code 2
2015/07/01 12:52:16 [alert] 12304#0: worker process 12313 exited with fatal code 2 and cannot be respawned
2015/07/01 12:52:16 [notice] 12304#0: signal 29 (SIGIO) received
2015/07/01 12:52:16 [notice] 12304#0: signal 17 (SIGCHLD) received
2015/07/01 12:52:16 [notice] 12304#0: worker process 12312 exited with code 2
2015/07/01 12:52:16 [alert] 12304#0: worker process 12312 exited with fatal code 2 and cannot be respawned
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP