The installation of redis services under centos is described in detail in the section

  • 2020-05-13 04:24:07
  • OfStack

Install the redis service under centos

The installation steps of redis service are as follows:


 wget http://download.redis.io/releases/redis-3.2.3.tar.gz
 tar xzf redis-3.2.3.tar.gz
 cd redis-3.2.3
 make
 make install

Basic configuration for redis after installation is complete

Find the configuration file template in the redis extract root directory and copy it to the following location.


 cp redis.conf /etc/redis/6379.conf

Modify with the vim command


 daemonize yes

 pidfile /var/redis/run/redis_6379.pid

 logfile /var/redis/log/redis_6379.log

 dir /var/redis/6379

Finally run redis:


 redis-server /etc/redis/6379.conf

Thank you for reading, I hope to help you, thank you for your support of this site!


Related articles: