免费注册 查看新帖 |

Chinaunix

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

[FastDFS] 【求助】配置FastDFS服务器端口没有被监听,查看log报了2个错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-04-22 19:37 |只看该作者 |倒序浏览
在配置FastDFS后,查看进程发现只有跟踪和存储端口被监听了,但是服务器端口没有被监听
[root@TJHY-5T-189 FastDFS]# netstat -tunpl|grep fdfs
tcp        0      0 113.31.82.189:22122         0.0.0.0:*                   LISTEN      1028/fdfs_trackerd  
tcp        0      0 113.31.82.189:23000         0.0.0.0:*                   LISTEN      30573/fdfs_storaged

查看log,发现报这样的错误
[2014-04-22 17:17:45] INFO - FastDFS v4.06, base_path=/data/fastdfs, run_by_group=, run_by_user=, connect_timeout=30s, network_timeout=60s, port=22122, bind_addr=113.31.82.189, max_connections=256, work_threads=4, store_lookup=2, store_group=, store_server=0, store_path=0, reserved_storage_space=1024 MB, 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
[2014-04-22 17:17:45] INFO - local_host_ip_count: 3,  127.0.0.1  113.31.82.189  192.168.1.189
[2014-04-22 17:17:45] ERROR - file: ../common/shared_func.c, line: 1275, call setrlimit fail, resource=4, value=268435456, errno: 22, error info: Invalid argument
[2014-04-22 17:17:45] WARNING - file: ../common/shared_func.c, line: 462, set max core dump file size to 256 MB fail, errno: 22, error info: Invalid argument


配置文件是这样:
[root@uxin_test soft]# grep -v '^#' /etc/fdfs/tracker.conf |grep -v '^$'
disabled=false
bind_addr=113.31.82.189
port=22122      
connect_timeout=30
network_timeout=60
base_path=/data/fastdfs   
max_connections=256
work_threads=4
store_lookup=2
store_group=group2
store_server=0
store_path=0
download_server=0
reserved_storage_space = 10%
log_level=info
run_by_group=
run_by_user=
allow_hosts=*
sync_log_buff_interval = 10
check_active_interval = 120
thread_stack_size = 64KB
storage_ip_changed_auto_adjust = true
storage_sync_file_max_delay = 86400
storage_sync_file_max_time = 300
use_trunk_file = false
slot_min_size = 256
slot_max_size = 16MB
trunk_file_size = 64MB
trunk_create_file_advance = false
trunk_create_file_time_base = 02:00
trunk_create_file_interval = 86400
trunk_create_file_space_threshold = 20G
trunk_init_check_occupying = false
trunk_init_reload_from_binlog = false
use_storage_id = false
storage_ids_filename = storage_ids.conf
id_type_in_filename = ip
store_slave_file_use_link = false
rotate_error_log = false
error_log_rotate_time=00:00
rotate_error_log_size = 0
use_connection_pool = false
connection_pool_max_idle_time = 3600
http.server_port=6061     
http.check_alive_interval=30
http.check_alive_type=tcp
http.check_alive_uri=/status.html

6061的端口没有被监听,但是最后测试上传文件是成功的。
还请大神伸出援手帮帮忙看下,小弟多谢各位了!

论坛徽章:
0
2 [报告]
发表于 2014-04-23 11:58 |只看该作者
我也遇到了这个问题 求解。。。。。

论坛徽章:
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
3 [报告]
发表于 2014-05-15 09:51 |只看该作者
http.server_port=6061  
内置web server已经废弃掉了,这个配置项是废弃的。所以不会侦听这个端口。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP