- 论坛徽章:
- 0
|
回复 2# lifeblood
连接 tracker 时,在 client.conf 配置文件里配置的是公网IP ,所以 client 可以连接上 tracker ,但 tracker 返回的是其内网 IP
试过在 storage.conf 配置公网 IP 的话,storage 无法启动,会报如下 ERROR:
[2014-05-15 10:00:46] ERROR - file: ../common/sockopt.c, line: 742, bind port 0 failed, errno: 99, error info: Cannot assign requested address.
[2014-05-15 10:00:46] ERROR - file: ../common/sockopt.c, line: 742, bind port 0 failed, errno: 99, error info: Cannot assign requested address.
[2014-05-15 10:00:46] 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=0 GB, trunk_init_check_occupying=0, trunk_init_reload_from_binlog=0, store_slave_file_use_link=0
[2014-05-15 10:00:46] INFO - file: storage_func.c, line: 174, tracker_client_ip: 10.130.66.68, my_server_id_str: 10.130.66.68, g_server_id_in_filename: 1145209354
[2014-05-15 10:00:46] ERROR - file: ../common/sockopt.c, line: 742, bind port 0 failed, errno: 99, error info: Cannot assign requested address.
[2014-05-15 10:00:46] ERROR - file: ../common/sockopt.c, line: 742, bind port 23000 failed, errno: 99, error info: Cannot assign requested address.
[2014-05-15 10:00:46] CRIT - exit abnormally!
|
|