Then you need to create a very simple node app so that you can properly connect to Redis Server. In order to do so, you need to execute the following command on Bash: If you want to connect to Redis with NodeJS you need to start Redis Server as a service, otherwise you will get an error like the following:Įrror: Redis connection to 127.0.0.1:6379 failed – connect ECONNREFUSED 127.0.0.1:6379Īt Object.exports._errnoException (util.js:1012:11)Īt exports._exceptionWithHostPort (util.js:1035:20)Īt TCPConnectWrap.afterConnect (net.js:1080:14) Then install the Redis Server using apt-get:Īfter installing it, hit redis-server and Redis Server will start:īy default, the Redis Server accepts connections in port 6379, so, in order to connect from your Windows machine, you can gain access using localhost:6379url. Open the Start Menu and search for “Bash”: If you haven’t setup Bash on Windows 10 you can read about it here.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |