3

i am trying to install Laravel Echo Server on Laravel 5.5 with the help of thie Article https://medium.com/@dennissmink/laravel-echo-server-how-to-24d5778ece8b

All things is going right but when i

laravel-echo-server start

Error comes with

[ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
at Object._errnoException (util.js:992:11)
at _exceptionWithHostPort (util.js:1014:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1186:14)

i install laravel 5.6 but still i face the same error

Thanks in advance who can guide me how can i handle this error

12
  • Looks like you didn't install redis Commented Jul 31, 2018 at 6:19
  • but in Article he did't Commented Jul 31, 2018 at 6:22
  • Sure he did, it notes that in the Requirements. also the error is clearly saying ioredis cant connect to redis port on localhost. Commented Jul 31, 2018 at 6:24
  • same error after npm install redis Commented Jul 31, 2018 at 6:25
  • that's going to install a node javascript client, you need the server redis.io/topics/quickstart Commented Jul 31, 2018 at 6:26

4 Answers 4

2

Seems like Redis is not installed or the Redis server is not running.

  • Download and install the server from https://redis.io/

  • And then run the service with "redis-server".

After that you can smoothly run "laravel-echo-server start"

Sign up to request clarification or add additional context in comments.

Comments

0

make sure that redis listen on 127.0.0.1:6379. look at /etc/redis/redis.conf, the line where is indicated "bind ....". make sure it's "bind 127.0.0.1" otherwise go to your laravel-echo-server.json and change databaseConfig: {redis: {port: "6379", host: "..."}}. "..." indicating what is marked in redis.conf

Comments

0

For those using laravel sail (I had the same problem but redis is already installed in the container), you can do what De Luis said in laravel-echo-server.json :

"databaseConfig": {
        "redis": {
            "port": "6379",
            "host": "redis"
        },
        ...
}

Comments

-1

Make sure you have install radis server

sudo apt install redis-server

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.