How to configure celery-redis in django project on microsoft azure?

僤鯓⒐⒋嵵緔 提交于 2019-12-02 06:09:12

You can find your redis services keys in Azure portal, click Settings=>Access keys, you can select either primary or secondary key as your password in the redis connection string.

And addtionally, you can try to enable the non-ssl endpoint of your redis service, as mentioned at https://azure.microsoft.com/en-us/documentation/articles/cache-python-get-started/#enable-the-non-ssl-endpoint.

It seems that you are using celery, you can use celery cli command to test your redis serivice. E.G.

celery inspect ping -b redis://:{password}@{redis_service_name}.redis.cache.wi ndows.net:6379/0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!