[root@centoszang 桌面]# redis-cli Could not connect to Redis at 127.0.0.1:6379: Connection refused Could not connect to Redis at 127.0.0.1:6379: Connection refused not connected> exit [root@centoszang 桌面]# redis-server /etc/redis.conf [root@centoszang 桌面]# redis-cli 127.0.0.1:6379>