redis center os安装配置
发布日期:2021-11-12 15:29:20 浏览次数:2 分类:技术文章

本文共 727 字,大约阅读时间需要 2 分钟。

安装redis数据库

yum install redis

redis服务命令

# 启动redisservice redis start# 停止redisservice redis stop# 查看redis运行状态service redis status# 查看redis进程ps -ef | grep redis# 重启redisservice redis restart

设置redis为开机自动启动

chkconfig redis on

进入redis服务

redis-cli#查看所有key值keys *#清空整个 Redis 服务器的数据flushall #清空当前库中的所有 keyflushdb

查看配置文件

vi /etc/redis.conf

解除只能本机访问限制

(

找到redis.conf   	注释以下绑定的主机地址	# bind 127.0.0.1 	## 关闭守护进程	daemonize no	## 关闭保护模式	protected-mode no	保存redis.conf  ## 查看redis进程状态ps -ef | grep redis运行cmd telnet ip 端口尝试连接

MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.

导致原因: 可能磁盘空间不足

转载地址:https://blog.csdn.net/if_you_can_please_do/article/details/88530466 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:idea配置springboot远程调试
下一篇:spring @Value取值

发表评论

最新留言

哈哈,博客排版真的漂亮呢~
[***.90.31.176]2024年04月15日 20时50分45秒