فتح مغلق

How to configure Redis Port #278


User avatar
0
sean.alford خلقت

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 إجابة (إجابات)
  • User Avatar
    0
    gterdem خلقت
    فريق الدعم 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 خلقت
    فريق الدعم Fullstack Developer

    Hi

    Connection string should be ip:port.

    Like this:

  • User Avatar
    0
    sean.alford خلقت

    @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 v8.2.0-preview Updated on مارس 25, 2024, 15:11