Home  >  Q&A  >  body text

redis错误:Error 10061 connecting to 127.0.0.1:6379

redis.exceptions.ConnectionError: Error 10061 connecting to 127.0.0.1:6379. .

不太懂,怎么弄?

PHPzPHPz2755 days ago3517

reply all(4)I'll reply

  • 高洛峰

    高洛峰2017-04-24 09:15:00

    Check if the redis process is started

    reply
    0
  • 高洛峰

    高洛峰2017-04-24 09:15:00

    The questioner needs to start the redis service of the host:

    System: Linux | Unix
    Use the commonly used ./configure, then make install to install, and then
    $ redis-server
    $ redis-cli
    to start the redis service

    System: Windows
    windows compiles, installs and starts the redis service through VS. The steps are:
    <1> Download the source code from the official website

     redis-win-2.8.17.1.zip(其他版本未测试,理应可行)

    <2> After decompressing, open the project in VS

     redis-win-2.8.17.1\msvs\RedisServer.sln

    <3> After compilation, get

    under msvsDebug
    • redis-server.exe

    • redis-benchmark.exe

    • redis-check-aof.exe

    • redis-check-dump.exe

    • redis-ci.exe
      <4> Start the host redis service
      Double-click the generated redis-server.exe, redis-ci.exe

    Reference URL:
    linux installation
    http://redis.io/download
    window installation
    https://github.com/MSOpenTech/redis

    reply
    0
  • PHPz

    PHPz2017-04-24 09:15:00

    Is the hosts file specified127.0.0.1 localhost?

    reply
    0
  • 阿神

    阿神2017-04-24 09:15:00

    The redis service is not started

    reply
    0
  • Cancelreply