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

如何修改默认6479的端口号? #775

Closed
duskxiaohefen opened this issue Mar 5, 2024 · 2 comments
Closed

如何修改默认6479的端口号? #775

duskxiaohefen opened this issue Mar 5, 2024 · 2 comments
Labels
type: question Further information is requested

Comments

@duskxiaohefen
Copy link

duskxiaohefen commented Mar 5, 2024

问题描述(Issue Description)

在一台主机上启用多个redis-shake时,第一个启动成功,后面的提示6479端口被占用。

环境信息(Environment)

  • RedisShake 版本(RedisShake Version):redis-shake-v4.0.4
  • Redis 源端版本(Redis Source Version):redis-5.0.4
  • Redis 目的端版本(Redis Destination Version):redis-5.0.4
  • Redis 部署方式(standalone/cluster/sentinel):standalone
  • 是否在云服务商实例上部署(Deployed on Cloud Provider):否

日志信息(Logs)

如果有错误日志或其他相关日志,请在这里提供。

2024-03-05 17:07:11 INF not set pprof port
2024-03-05 17:07:11 INF no function script
2024-03-05 17:07:11 INF create SyncStandaloneReader: 10.10.1.2:32181
2024-03-05 17:07:11 INF create RedisStandaloneWriter: 10.10.1.248:6379
2024-03-05 17:07:11 INF status information: http://localhost:6479
2024-03-05 17:07:11 INF status information: watch -n 0.3 'curl -s http://localhost:6479 | python -m json.tool'
2024-03-05 17:07:11 INF start syncing...
2024-03-05 17:07:11 ERR listen tcp :6479: bind: address already in use
RedisShake/internal/status/handler.go:46 -> setStatusPort.func1()
runtime/asm_amd64.s:1598 -> goexit()

@duskxiaohefen duskxiaohefen added the type: question Further information is requested label Mar 5, 2024
@suxb201
Copy link
Member

suxb201 commented Mar 5, 2024

status_port 配置改成 0

@duskxiaohefen
Copy link
Author

status_port 配置改成 0

谢谢,从代码里看到了,改成非6479就行了。

@suxb201 suxb201 mentioned this issue Mar 5, 2024
@suxb201 suxb201 closed this as completed Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants