查看路径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


最新文章

  1. Git基础操作
  2. dotnet use regex two samples
  3. (easy)LeetCode 237.Delete Node in a Linked List
  4. php 批量替换html标签的实例代码
  5. cocos2d-x CCSpriteBatchNode
  6. svs 在创建的时候 上传文件夹 bin obj 这些不要提交
  7. Python之路第十二天,高级(6)-paramiko
  8. kinect1在ros-indigo环境配置
  9. Celery 源码解析六:Events 的实现
  10. Android Bootloader LittleKernel的两篇文章
  11. ES6躬行记(19)——生成器
  12. 一梦江湖费六年——QQ群聊天分析
  13. npm install 报错ERR! 404 Not Found: event-stream@3.3.6
  14. db2建立类似oracle的dblink
  15. WEB开发常用软件集合
  16. WordPress主题开发:截取标题或内容
  17. Cesium原理篇:3D Tiles(1)渲染调度【转】
  18. 使用POI导出Excel(二)-利用模板
  19. ubuntu环境下添加中文输入法
  20. Android Studio NDK环境配置

热门文章

  1. LOJ 2978 「THUSCH 2017」杜老师——bitset+线性基+结论
  2. window server 2008 r2 安装ftp
  3. python中chr()函数和ord()函数的用法
  4. cython安装、使用
  5. Understanding identities in IIS
  6. 使用nsenter进入docker容器后端报错 mesg: ttyname failed: No such file or directory
  7. (一)arm交叉编译工具链准备
  8. 软件-Axure:Axure RP
  9. Flask学习之旅--分页功能:分别使用 flask--pagination 和分页插件 layPage
  10. 控件识别工具Inspect.exe下载