Skip to content

用docker启动提示了这个错误请问是为什么? #402

@mooneee

Description

@mooneee

是一个小白,他提示了
for _proxy in pm.db.getAll():
File "../DB/DbClient.py", line 102, in getAll
return self.client.getAll()
File "/usr/src/app/DB/RedisClient.py", line 107, in getAll
item_dict = self.__conn.hgetall(self.name)
File "/usr/local/lib/python3.6/site-packages/redis/client.py", line 2717, in hgetall
return self.execute_command('HGETALL', name)
File "/usr/local/lib/python3.6/site-packages/redis/client.py", line 836, in execute_command
conn = self.connection or pool.get_connection(command_name, **options)
File "/usr/local/lib/python3.6/site-packages/redis/connection.py", line 1224, in get_connection
connection.connect()
File "/usr/local/lib/python3.6/site-packages/redis/connection.py", line 544, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to 127.0.0.1:6379. Connection refused.
一直在报错。请问怎么解决 谢谢

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions