centos7安装redis

centos7

复制代码
#安装
yum install epel-release
yum update
yum install redis

#命令
service redis stop
service redis start
service redis status
service redis restart

#开机启动
systemctl enable redis
#禁用开机启动
systemctl disable redis

#配置密码
vi /etc/redis.conf
#查找 requirepass, 默认密码为 foobared, 将 foobared 修改为你的密码即可
#找到 bind 127.0.0.1 将其注释,否则redis只允许本机连接
#找到 protected-mode yes 将其改为:protected-mode no
重启Redis
systemctl restart redis

复制代码

 

posted @   Binz  阅读(55)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 25岁的心里话
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 零经验选手,Compose 一天开发一款小游戏!
· 因为Apifox不支持离线,我果断选择了Apipost!
· 通过 API 将Deepseek响应流式内容输出到前端
点击右上角即可分享
微信分享提示