免费注册 查看新帖 |

Chinaunix

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

[FastDFS] CentOS6.4-x86_64环境下的libevent要求的版本是什么? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-05-13 23:10 |只看该作者 |倒序浏览
本帖最后由 tgnan 于 2013-05-14 10:11 编辑

服务器环境
CentOS6.4-x86_64环境
libevent是用yum更新的。
使用ls -al /usr/lib | grep libevent
查看libcvent无返回。为何无返回结果呢?

但通过install.log查看,
安装 libevent-1.4.13-4.el6.x86_64
FastDFS版本为4.06
部署在一台服务器上。

用自带的test做upload有返回,
但地址不可达(本机防火墙已关)。。。
以下是monitor的结果。


netstat -nl|grep -E '8080|22122|8888|23000'
tcp        0      0 0.0.0.0:23000               0.0.0.0:*                   LISTEN      
tcp        0      0 0.0.0.0:22122               0.0.0.0:*                   LISTEN  
发现默认的8080和8888端口么有开。。。。不知为何?

望指点。

# /usr/local/bin/fdfs_monitor /etc/fdfs/storage.conf
[2013-05-13 23:07:28] DEBUG - base_path=/opt/fastdfs/fastdfs_storage, connect_timeout=30, network_timeout=60, tracker_server_count=1, anti_steal_token=0, anti_steal_secret_key length=0, use_connection_pool=0, g_connection_pool_max_idle_time=3600s, use_storage_id=0, storage server id count: 0

server_count=1, server_index=0

tracker server is 192.168.83.74:22122

group count: 1

Group 1:
group name = group1
disk total space = 98578 MB
disk free space = 90954 MB
trunk free space = 0 MB
storage server count = 1
active server count = 1
storage server port = 23000
storage HTTP port = 8888
store path count = 1
subdir count per path = 256
current write server index = 0
current trunk file id = 0

        Storage 1:
                id = 192.168.83.74
                ip_addr = 192.168.83.74  ACTIVE
                http domain =
                version = 4.06
                join time = 2013-05-13 22:59:34
                up time = 2013-05-13 22:59:34
                total storage = 98578 MB
                free storage = 90954 MB
                upload priority = 10
                store_path_count = 1
                subdir_count_per_path = 256
                storage_port = 23000
                storage_http_port = 8888
                current_write_path = 0
                source storage id=
                if_trunk_server= 0
                total_upload_count = 2
                success_upload_count = 2
                total_append_count = 0
                success_append_count = 0
                total_modify_count = 0
                success_modify_count = 0
                total_truncate_count = 0
                success_truncate_count = 0
                total_set_meta_count = 2
                success_set_meta_count = 2
                total_delete_count = 0
                success_delete_count = 0
                total_download_count = 0
                success_download_count = 0
                total_get_meta_count = 0
                success_get_meta_count = 0
                total_create_link_count = 0
                success_create_link_count = 0
                total_delete_link_count = 0
                success_delete_link_count = 0
                total_upload_bytes = 53258
                success_upload_bytes = 53258
                total_append_bytes = 0
                success_append_bytes = 0
                total_modify_bytes = 0
                success_modify_bytes = 0
                stotal_download_bytes = 0
                success_download_bytes = 0
                total_sync_in_bytes = 0
                success_sync_in_bytes = 0
                total_sync_out_bytes = 0
                success_sync_out_bytes = 0
                total_file_open_count = 2
                success_file_open_count = 2
                total_file_read_count = 0
                success_file_read_count = 0
                total_file_write_count = 2
                success_file_write_count = 2
                last_heart_beat_time = 2013-05-13 23:07:02
                last_source_update = 2013-05-13 23:02:11
                last_sync_update = 1970-01-01 08:00:00
                last_synced_timestamp = 1970-01-01 08:00:00


另外,我看到tracker和storage的配置文件件,都取消了http.conf,是4.06版本已经不需要libevent的支持吗?

还是什么其他的,?

同样的配置,FastDFSv3.11是工作正常的。





论坛徽章:
4
2015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:56:11IT运维版块每日发帖之星
日期:2016-08-11 06:20:00IT运维版块每日发帖之星
日期:2016-08-15 06:20:00
2 [报告]
发表于 2013-05-14 10:28 |只看该作者
看tracker和storage日志文件先!

论坛徽章:
0
3 [报告]
发表于 2013-05-14 10:30 |只看该作者
你必须人为的去下载libevent2的源码,然后编译

关键的关键是如果是CentOS 64位的版本,你必须建立一个软链接
  1. ln -s /usr/local/lib/libevent* /lib64/
复制代码

论坛徽章:
0
4 [报告]
发表于 2013-05-14 11:12 |只看该作者
回复 3# cjmqas


执行过了。。。。。



   

论坛徽章:
0
5 [报告]
发表于 2013-05-14 11:14 |只看该作者
回复 2# happy_fish100



[root@localhost ~]# cat /opt/fastdfs/fastdfs_tracker/logs/trackerd.log
[2013-05-13 22:55:36] INFO - FastDFS v4.06, base_path=/opt/fastdfs/fastdfs_tracker, run_by_group=, run_by_user=, connect_timeout=30s, network_timeout=60s, port=22122, bind_addr=, max_connections=256, work_threads=4, store_lookup=2, store_group=, store_server=0, store_path=0, reserved_storage_space=10.00%, download_server=0, allow_ip_count=-1, sync_log_buff_interval=10s, check_active_interval=120s, thread_stack_size=64 KB, storage_ip_changed_auto_adjust=1, storage_sync_file_max_delay=86400s, storage_sync_file_max_time=300s, use_trunk_file=0, slot_min_size=256, slot_max_size=16 MB, trunk_file_size=64 MB, trunk_create_file_advance=0, trunk_create_file_time_base=02:00, trunk_create_file_interval=86400, trunk_create_file_space_threshold=20 GB, trunk_init_check_occupying=0, trunk_init_reload_from_binlog=0, use_storage_id=0, id_type_in_filename=ip, storage_id_count=0, rotate_error_log=0, error_log_rotate_time=00:00, rotate_error_log_size=0, store_slave_file_use_link=0, use_connection_pool=0, g_connection_pool_max_idle_time=3600s
[2013-05-13 22:55:36] INFO - local_host_ip_count: 2,  127.0.0.1  192.168.83.74
[2013-05-13 23:00:01] INFO - file: tracker_relationship.c, line: 374, selecting leader...
[2013-05-13 23:00:01] INFO - file: tracker_relationship.c, line: 392, I am the new tracker leader 192.168.83.74:22122
[root@localhost ~]# cat /opt/fastdfs/fastdfs_storage/logs/storaged.log
[2013-05-13 22:59:34] INFO - FastDFS v4.06, base_path=/opt/fastdfs/fastdfs_storage, store_path_count=1, subdir_count_per_path=256, group_name=group1, run_by_group=, run_by_user=, connect_timeout=30s, network_timeout=60s, port=23000, bind_addr=, client_bind=1, max_connections=256, work_threads=4, disk_rw_separated=1, disk_reader_threads=1, disk_writer_threads=1, buff_size=256KB, heart_beat_interval=30s, stat_report_interval=60s, tracker_server_count=1, sync_wait_msec=50ms, sync_interval=0ms, sync_start_time=00:00, sync_end_time=23:59, write_mark_file_freq=500, allow_ip_count=-1, file_distribute_path_mode=0, file_distribute_rotate_count=100, fsync_after_written_bytes=0, sync_log_buff_interval=10s, sync_binlog_buff_interval=10s, sync_stat_file_interval=300s, thread_stack_size=512 KB, upload_priority=10, if_alias_prefix=, check_file_duplicate=0, file_signature_method=hash, FDHT group count=0, FDHT server count=0, FDHT key_namespace=, FDHT keep_alive=0, HTTP server port=8888, domain name=, use_access_log=0, rotate_access_log=0, access_log_rotate_time=00:00, rotate_error_log=0, error_log_rotate_time=00:00, rotate_access_log_size=0, rotate_error_log_size=0, file_sync_skip_invalid_record=0, use_connection_pool=0, g_connection_pool_max_idle_time=3600s
[2013-05-13 22:59:59] INFO - file: storage_param_getter.c, line: 187, use_storage_id=0, id_type_in_filename=ip, storage_ip_changed_auto_adjust=1, store_path=0, reserved_storage_space=10.00%, use_trunk_file=0, slot_min_size=256, slot_max_size=16 MB, trunk_file_size=64 MB, trunk_create_file_advance=0, trunk_create_file_time_base=02:00, trunk_create_file_interval=86400, trunk_create_file_space_threshold=20 GB, trunk_init_check_occupying=0, trunk_init_reload_from_binlog=0, store_slave_file_use_link=0
[2013-05-13 23:00:01] INFO - file: storage_func.c, line: 174, tracker_client_ip: 192.168.83.74, my_server_id_str: 192.168.83.74, g_server_id_in_filename: 1246996672
[2013-05-13 23:00:01] INFO - local_host_ip_count: 2,  127.0.0.1  192.168.83.74
[2013-05-13 23:00:01] INFO - file: tracker_client_thread.c, line: 308, successfully connect to tracker server 192.168.83.74:22122, as a tracker client, my ip is 192.168.83.74
[2013-05-13 23:00:31] INFO - file: tracker_client_thread.c, line: 1124, tracker server 192.168.83.74:22122, set tracker leader: 192.168.83.74:22122


   

论坛徽章:
0
6 [报告]
发表于 2013-05-14 11:19 |只看该作者
本帖最后由 tgnan 于 2013-05-14 13:48 编辑
cjmqas 发表于 2013-05-14 10:30
你必须人为的去下载libevent2的源码,然后编译

关键的关键是如果是CentOS 64位的版本,你必须建立一个软 ...




我刚才在群里听说,,v4.06已经放弃libevent了,是这样的么?

那也就是说不需要安装libevent组件,还是只是放弃了libevent组件的http服务功能呢,
libevent还是需要安装的。

论坛徽章:
0
7 [报告]
发表于 2013-06-05 11:42 |只看该作者
libevent不论哪个版本都需要装的

论坛徽章:
0
8 [报告]
发表于 2013-06-05 13:54 |只看该作者
spring_trees 发表于 2013-06-05 11:42
libevent不论哪个版本都需要装的


那借问一下。
如果使用v4.06版本的fdfs。关闭了默认的http服务。
安装了nginx做为默认的http服务。
二者之间如何关联呢?

论坛徽章:
0
9 [报告]
发表于 2013-06-07 09:56 |只看该作者
有nginx模块嘛,在nginx.conf加这个就可以嘛,location /M00 {
           root /data/fastdfs/data;
           ngx_fastdfs_module;
       }
回复 8# tgnan



   

论坛徽章:
0
10 [报告]
发表于 2013-06-07 22:00 |只看该作者
spring_trees 发表于 2013-06-07 09:56
有nginx模块嘛,在nginx.conf加这个就可以嘛,location /M00 {
           root /data/fastdfs/data;
    ...



您的几句话,令我恍然大悟,。。。
改天试试看。。
拜谢过。!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP