现象:python的redis使用一直出现“104, 'Connection reset by peer”
代码:
r = redis.Redis(host='47.1**.1**.**', port=6379, password='1234')
try:
r.set('name', 'lin')
print('成功:' + str(r.get('name')))
except Exception as e:
return HttpResponse('error: ' + str(e))
python的redis使用一直出现“104, 'Connection reset by peer”
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-