一、Redis 客户端API
Windows系统中的Eclipse等客户端连接虚拟机的Redis需要注意的事项: 禁用Linux的防火墙,redis.conf中注释掉bind 127.0.0.1,然后 protect-mode(80行)设置为 no
#bind 127.0.0.1
# By default protected mode is enabled. You should disable it only if
# you are sure you want clients from other hosts to connect to Redis
# even if no authentication is configured, nor a specific set of interfaces
# are explicitly listed using the "bind" directive.
protected-mode no
1. 创建项目导入Redis jar包 (jedis.jar)