Linux study notes installation of redis3.2

 

Here I put Redis under /home/imix/tools/, so execute the following commands in this directory:

 

官网下载地址:https://redis.io/download
[root@localhost tools]#tar -xzf redis-3.2.10.tar.gz
[root@localhost tools]# cd redis-3.2.10
[root@localhost redis-3.2.10]# make
此处由于虚拟机未安装gcc,报错,错误信息参考http://lintaozhou.iteye.com/blog/2393164
安装完成后启动redis
[root@localhost redis-3.2.10]#cd src
[root@localhost redis-3.2.10]#./redis-server ../redis.conf

 The interface appears, the startup is successful!

Modify the configuration file, let redis run in the background, and change the daemonize attribute to yes (indicating that it needs to run in the background)

[root@localhost redis-3.2.10]#vi  redis.conf
 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326837352&siteId=291194637