redis错误:Error 10061 connecting to 127.0.0.1:6379
PHPz
PHPz 2017-04-24 09:13:00
0
4
3541
redis.exceptions.ConnectionError: Error 10061 connecting to 127.0.0.1:6379. .

不太懂,怎么弄?

PHPz
PHPz

学习是最好的投资!

reply all(4)
小葫芦

Check if the redis process is started

小葫芦

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

PHPzhong

Is the hosts file specified127.0.0.1 localhost?

阿神

The redis service is not started

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template