Ubuntu下安装redis

2017-05-20  本文已影响30人  wildtree001
简单步骤
daemonize no改为daemonize yes:服务后台(守护进程)运行
注释bind 127.0.0.1
requirepass your_password
protected-mode yes改为protected-mode no
相关命令:
复制:Ctrl + Ins;粘贴:Ctrl + 滚轮下按
vim:i:进入INSERT模式;Esc:回到普通模式;ZZ保存并退出
./src/redis-cli
auth xxx
shutdown
./src/redis-server redis.conf
参考文档(更多内容如:开放redis端口/将redis添加到系统服务并配置开机启动等)

Linux下redis安装与使用
redis安装部署维护备份

当生产环境rds数据库数据量大时如果执行了像keys *xxx*这样的命令,可以会导致rds锁住而引发连锁反应,可以用redis.conf禁用或者替换相关命令:
rename-command KEYS     "" #rename-command KEYS     "xxx" 
rename-command FLUSHALL ""
rename-command FLUSHDB  ""
rename-command CONFIG   ""
上一篇 下一篇

猜你喜欢

热点阅读