首页 > Linux操作系统 > Linux操作系统 > Redis安装教程(超详细)
tar -zxvf redis-5.0.5.tar.gz
yum install gcc-c++ make make make install //确认安装的东西
cd /usr/local/bin/
[root@Lzdwtl bin]# mkdir myredis-config [root@Lzdwtl bin]# cp /home/caoyinyuan/redis-5.0.5/redis.conf myredis-config/
[root@Lzdwtl myredis-config]# vim redis.conf
[root@Lzdwtl bin]# redis-server myredis-config/redis.conf
[root@Lzdwtl bin]# redis-cli -p 6379
# 如果redis设置有密码,则需要现认证才能发送信息,"123456"是redis的密码 127.0.0.1:6379> auth "123456"
[root@Lzdwtl /]# ps -ef|grep redis
127.0.0.1:6379> shutdown not connected> exit
[root@Lzdwtl bin]# redis-server myredis-config/redis.conf [root@Lzdwtl bin]# redis-cli 127.0.0.1:6379> ping (error) NOAUTH Authentication required. 127.0.0.1:6379> auth 123456 OK
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/70003733/viewspace-2890728/ ,如需转载,请注明出处,否则将追究法律责任。