Redis Init

Creator
Creator
Seonglae ChoSeonglae Cho
Created
Created
2021 Jul 2 6:21
Editor
Edited
Edited
2021 Jul 13 1:49
Refs
Refs

make

wget http://download.redis.io/redis-stable.tar.gz tar xvzf redis-stable.tar.gz cd redis-stable make sudo make install
 

config

sudo mkdir /etc/redis sudo mkdir /var/redis sudo cp utils/redis_init_script /etc/init.d/redis_6379 sudo cp redis.conf /etc/redis/6379.conf sudo mkdir /var/redis/6379 sudo nano /etc/redis/6379.conf
 
  • Set daemonize to yes (by default it is set to no)
  • Set the dir to /var/redis/6379 (very important step!)
  • bind 0.0.0.0
 
 

daomon

sudo update-rc.d redis_6379 defaults sudo /etc/init.d/redis_6379 start
 

centos

sudo chkconfig redis_6379 defaults sudo /etc/init.d/redis_6379 start
 
 

check

redis-cli save ls /var/redis/6379 # dumb.rdb redis-cli ping
 
 
 
Redis Quick Start - Redis
This is a quick start document that targets people without prior experience with Redis. Reading this document will help you: Download and compile Redis to start hacking. Use redis-cli to access the server. Use Redis from your application. Understand how Redis persistence works. Install Redis more properly.
Redis Quick Start - Redis
Open Redis port for remote connections
Thanks for contributing an answer to Stack Overflow! Please be sure to answer the question. Provide details and share your research! Asking for help, clarification, or responding to other answers. Making statements based on opinion; back them up with references or personal experience. To learn more, see our tips on writing great answers.
Open Redis port for remote connections
 
 

Recommendations