Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

获取storageServer 连接失败connect to server 127.0.0.1:23000 fail, emsg:Connection refused: connect #102

Open
luckytao opened this issue Dec 31, 2022 · 1 comment

Comments

@luckytao
Copy link

luckytao commented Dec 31, 2022

ip_addr = new String(pkgInfo.body, ProtoCommon.FDFS_GROUP_NAME_MAX_LEN, ProtoCommon.FDFS_IPADDR_SIZE - 1).trim()
这段代码获取的IP地址特殊网络是错误的IP地址

FDFS server用最新版本v6.9.2, 指定tracker_server = 0.0.0.0:22122时,这个ip_addr返回的始终是127.0.0.1,tracker_server 必须指定固定ip地址,ip_add才能正确返回storage服务器地址。

Originally posted by @luckytao in #101 (comment)

@luckytao luckytao changed the title > FDFS server要用最新版本,升级到 v6.08就没问题了。 获取storageServer 连接失败connect to server 127.0.0.1:23000 fail, emsg:Connection refused: connect Dec 31, 2022
@happyfish100
Copy link
Owner

tracker_server = 0.0.0.0:22122
不能这样设置,要用具体的IP地址才可以。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants