CentOS 6.5下Redis安装测试(2)

否则可能出现连接错误。和windows下cmd运行tomcat类似。
[root@localhost redis]# redis-cli
Could not connect to Redis at 127.0.0.1:6379: Connection refused
not connected> redis-cli
Could not connect to Redis at 127.0.0.1:6379: Connection refused
not connected>
[root@localhost redis]# redis-cli
127.0.0.1:6379> set name = wangxin
(error) ERR syntax error
127.0.0.1:6379> set name wangxin
OK
127.0.0.1:6379> set age 26
OK
127.0.0.1:6379> get name age
(error) ERR wrong number of arguments for 'get' command
127.0.0.1:6379> get name
"wangxin"
127.0.0.1:6379> get age
"26"
127.0.0.1:6379>

Ubuntu 14.04下Redis安装及简单测试

Redis集群明细文档

Ubuntu 12.10下安装Redis(图文详解)+ Jedis连接Redis

Redis系列-安装部署维护篇

CentOS 6.3安装Redis

Redis安装部署学习笔记

Redis配置文件redis.conf 详解

Redis 的详细介绍请点这里
Redis 的下载地址请点这里

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/7ee8d33b270eecc17c5d798ab7c81664.html