linux redis tmp redis 安装
Redis https://redis.io/download
yum install make gcc gcc-c++ openssl-devel zlib-devel -y; wget
tar -xvf
make
make install
make test
find / | grep -v xl_ | grep redis
[root@hadoop3 ~]# /usr/bin/redis-server /etc/redis.conf
[root@hadoop3 ~]# ps -aux | grep redis
root 12368 0.0 0.0 142916 5788 pts/2 Sl+ 17:53 0:00 /usr/bin/redis-server 127.0.0.1:6379
root 12424 0.0 0.0 112680 976 pts/3 S+ 17:53 0:00 grep --color=auto redis
[root@hadoop3 ~]#
[root@hadoop3 ~]# /usr/bin/redis-cli
127.0.0.1:6379> set key "xl_bin"
OK
127.0.0.1:6379> get key
"xl_bin"
127.0.0.1:6379> CONFIG get requirepass
1) "requirepass"
2) ""
127.0.0.1:6379> CONFIG set requirepass "mypwd"
OK
127.0.0.1:6379> CONFIG get requirepass
(error) NOAUTH Authentication required.
127.0.0.1:6379> AUTH mypwd
OK
127.0.0.1:6379> CONFIG get requirepass
1) "requirepass"
2) "mypwd"
127.0.0.1:6379> AUTH requirepass
(error) ERR invalid password
127.0.0.1:6379> AUTH mypwd
OK
127.0.0.1:6379>
[root@hadoop3 ~]# ps -aux | grep redis
root 12368 0.0 0.0 142916 5788 pts/2 Sl+ 17:53 0:00 /usr/bin/redis-server 127.0.0.1:6379
root 12500 0.0 0.0 22088 5184 pts/4 S+ 17:54 0:00 /usr/bin/redis-cli
root 13225 0.0 0.0 112684 972 pts/3 S+ 18:01 0:00 grep --color=auto redis
[root@hadoop3 ~]#
CentOS下Redis的安装 - 才鱼 - 博客园 https://www.cnblogs.com/renzhicai/p/7773080.html
最新文章
- 解决motools和jquery之间的冲突
- 使用系统自带的GCD的timer倒计时模板语句遇到的小坑。。
- Linux快速入门03-系统管理
- FIFO深度
- redis的相关知识
- Swift游戏实战-跑酷熊猫 08 产生源源不断的移动平台
- Centos移除图形界面
- A debugger is already attached
- 【转】eclipse中egit插件使用
- 启动tomcat时报classpath not found
- web —— jsp笔记
- CPLD和FPGA的区别(转)
- win7(32 bit) 环境下点击打印预览报错解决办法
- 【技术分享】BurpSuite 代理设置的小技巧
- Flask web开发之路一
- 团队作业——Alpha冲刺 3/12
- 为控件动态添加Style
- Git 代码管理命令
- pycharm设置连接
- Csharp:user WebControl Read Adobe PDF Files In Your Web Browser
热门文章
- 笔试算法题(05):转换BST为双向链表 &; 查找栈中的最小元素
- [Python3网络爬虫开发实战] 2.2-网页基础
- laravel学习笔记2--表单
- Java 读取linux上的文件
- Python接口测试中通过登录接口获取实时token
- (九)python3 列表生成式
- 版本控制git之一 仓库管理 安装 基础
- json pickle shelve hashlib collections time
- BNUOJ 7697 Information Disturbing
- [NOIP2008] 提高组 洛谷P1125 笨小猴