阿里云Redis 配置
2024-09-21 08:54:09
查看路径whereis redis
1.修改配置文件
vim /etc/redis.conf
这三个配置是必须的
修改内容,把 daemonize no 修改为:daemonize yes
requirepass 123456 // 这个用来修改密码
bind 0.0.0.0 // 这个用来绑定ip 原来是127.0.0.1
1.这是因为配置文件中,以守护进程方式启动,默认是关闭的,这是设置为允许以守护进程方式启动服务
2.启redis-server /etc/redis.conf看redis服务是否启动 另一种启动方式 ./redis-server /etc/redis.conf
ps aux | grep redis
[root@localhost ~]# ps aux | grep redis
root 3339 0.1 0.5 139524 5208 ? Ssl 18:41 0:00 redis-server 127.0.0.1:6379
root 3343 0.0 0.0 103324 848 pts/0 S+ 18:41 0:00 grep redis
3.这时候再用命令
redis-cli
最新文章
- Git基础操作
- dotnet use regex two samples
- (easy)LeetCode 237.Delete Node in a Linked List
- php 批量替换html标签的实例代码
- cocos2d-x CCSpriteBatchNode
- svs 在创建的时候 上传文件夹 bin obj 这些不要提交
- Python之路第十二天,高级(6)-paramiko
- kinect1在ros-indigo环境配置
- Celery 源码解析六:Events 的实现
- Android Bootloader LittleKernel的两篇文章
- ES6躬行记(19)——生成器
- 一梦江湖费六年——QQ群聊天分析
- npm install 报错ERR! 404 Not Found: event-stream@3.3.6
- db2建立类似oracle的dblink
- WEB开发常用软件集合
- WordPress主题开发:截取标题或内容
- Cesium原理篇:3D Tiles(1)渲染调度【转】
- 使用POI导出Excel(二)-利用模板
- ubuntu环境下添加中文输入法
- Android Studio NDK环境配置
热门文章
- LOJ 2978 「THUSCH 2017」杜老师——bitset+线性基+结论
- window server 2008 r2 安装ftp
- python中chr()函数和ord()函数的用法
- cython安装、使用
- Understanding identities in IIS
- 使用nsenter进入docker容器后端报错 mesg: ttyname failed: No such file or directory
- (一)arm交叉编译工具链准备
- 软件-Axure:Axure RP
- Flask学习之旅--分页功能:分别使用 flask--pagination 和分页插件 layPage
- 控件识别工具Inspect.exe下载