Reputation: 73
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
Upvotes: 3
Views: 4764
Reputation: 26
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"
},
...
}
Upvotes: 0
Reputation: 323
Make sure you have install radis server
sudo apt install redis-server
Upvotes: -1
Reputation: 9
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
Upvotes: 0
Reputation: 744
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"
Upvotes: 2