- 论坛徽章:
- 0
|
在配置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的端口没有被监听,但是最后测试上传文件是成功的。
还请大神伸出援手帮帮忙看下,小弟多谢各位了!
|
|