[Solved] Error: connect ECONNREFUSED 127.0.0.1:6379 at TCPConnectWrap.afterConnect [as oncomplete]

Error: connect ECONNREFUSED 127.0.0.1:6379 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1161:16)

When the redis database is started, an error is reported as follows:

Solution:

The following commands need to be executed (Ubuntu):

sudo apt-get install redis-server

Read More: