Reputation: 454
I am working on node.js . I stuck in Memory Leak problem and the solution i got (after surfing) is to use Redis for a single-host Node.js production app. But i am wondering how to set host,port,db and pwd for REDIS ?
Upvotes: 0
Views: 1488
Reputation: 33646
You can provide the port like this:
$ redis-server --port 6380
This will get the server up on a Unix domain socket.
As for the "password" part of your question, you can turn the authentication layer that Redis provides by editing the redis.conf
file. Then clients must send the AUTH
command to authenticate. Refer to the documentation for more info.
Upvotes: 1