各版本下载地址:http://download.redis.io/releases,本教程使用版本为redis-5.0.4。
cd /usr/local
tar -zxvf redis-5.0.4.tar.gz
cd ./redis-5.0.4
make
1) 出现"Hint:It's a good idea to run 'make test'"即为编译成功
2) 安装失败,可使用 make make distclean 命令进行安装回滚
make install
cp redis.conf redis.conf`date +%Y%m%d%H%M%S`
修改配置文件 redis.conf 中的参数 daemonize yes ,将redis设置为已守护进程启动
redis-server ./redis.conf
redis-cli -p 6379
SHUTDOWN
版权属于:。。。源
本文链接:https://cloud.tencent.com/developer/article/2169606
转载时须注明出处及本声明。我的博客即将同步至腾讯云开发者社区,邀请大家一同入驻:https://cloud.tencent.com/developer/support-plan?invite_code=2py75w7904qok