Wiki

Clone wiki

scl-manips-v2 / docu / redis-over-network

Redis Over the Network

By default redis only listens to localhost. If you'd like to have it listen to stuff over the network, you have to configure it so it also operates over your (ethernet/wifi) ip:

1. Stop the server (assuming it is running already):

$ sudo /etc/init.d/redis-server stop
$ sudo /etc/init.d/redis-server start
  • Alternatively, go to the redis-cli and type 'shutdown'

2. Copy the config file to a local dir.

$ sudo cp /etc/redis/redis.conf .

3. Add your hard network IP to the bind command in the config file (search for it) Replace : bind 127.0.0.1 With (say): bind 127.0.0.1 192.168.0.101

4. Re-start the redis server with the new config file..

$ sudo ./redis-server /path/to/redis.conf

5. Connect to the redis server over the network, which should now accept stuff on your ip.

Updated