Open Closed

How to configure Redis Port #278


User avatar
0
sean.alford created

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

  • ABP Framework version: v3.0.0
  • UI type: MVC
  • Tiered (MVC) or Identity Server Seperated (Angular): MVC Tiered
  • Exception message and stack trace: N/A
  • Steps to reproduce the issue: N/A

We have three instances of Redis running using different ports. redis-dev(port:6377) redis-test(port:6378), and redis-prod(port:6379). How do you change the Redis port configuration in appsettings?

NOTE: We tried this but it doesn't seem to work.

"Redis": {
    "Configuration": "127.0.0.1:####"    

3 Answer(s)
  • User Avatar
    0
    gterdem created
    Senior .NET Developer

    Do you run redis server on containers? Are all your redis instances on your dev machine that you are trying to connect via 127.0.0.1? If they are on different machine, afaik you need to have static ip for Redis server and configure like public_ip:port.

  • User Avatar
    1
    liangshiwei created
    Support Team Fullstack Developer

    Hi

    Connection string should be ip:port.

    Like this:

  • User Avatar
    0
    sean.alford created

    @gterdem,

    We have three different containers running on one system with each redis container listening on a different port.

    Thanks for your assistance.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 10, 2024, 06:38