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