Redis Configuration Tips


This article describes some tips for Redis.

👽 Access Redis from other server

Edit redis.conf (/etc/redis.conf):

# By default Redis listens for connections from all the network interfaces
# available on the server. It is possible to listen to just one or multiple
# interfaces using the "bind" configuration directive, followed by one or
# more IP addresses.
#
# Examples:
#
# bind 192.168.1.100 10.0.0.1
# bind 127.0.0.1
bind 127.0.0.1 10.0.0.1 # Allow connect from 127.0.0.1 10.0.0.1
protected-mode no # Disable protected mode

After the above configuration, please restart Redis process.

# CentOS
systemctl restart redis.service

🐰 References

🖥 Recommended VPS Service

VULTR provides high performance cloud compute environment for you. Vultr has 15 data-centers strategically placed around the globe, you can use a VPS with 512 MB memory for just $ 2.5 / month ($ 0.004 / hour). In addition, Vultr is up to 4 times faster than the competition, so please check it => Check Benchmark Results!!