0
点赞
收藏
分享

微信扫一扫

redis 在linux下安装步骤


$ wget http://download.redis.io/releases/redis-4.0.9.tar.gz
$ tar xzf redis-4.0.9.tar.gz
$ cd redis-4.0.9
$ make

$ src/redis-server

src/redis-cli

启动的时候出现 WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or

需打开redis.conf 找到daemonize,把后面的no 改成yes,意思是让redis在后台启动

然后输入命令 ps -ef|grep redis,结果如下:

root     24761     1  0 14:19 ?        00:00:00 src/redis-server 127.0.0.1:6379

root     24767 20999  0 14:19 pts/0    00:00:00 grep --color=auto redis

说明已经启动

find / -name redis.conf  查看redis所在的安装目录

举报

相关推荐

0 条评论