本文目录
开篇明志
本文翻译自Redis官网QuickStart , 并对学习过程做一下记录。
Connect to Redis Server
当你完成了RDM(Redis Desktop Manager)客户端的安装之后,首先应该创建一个连接到你的Redis服务器。在RDM主界面单击Connect to Redis Server
以建立连接。
Connect to local or public redis-server
在第一个选项卡Connection
里面,提供有关创建的基本的信息。
- Name - 新连接的名称(example: my_local_redis)
- Host - redis-server host IP地址 (example: localhost)
- Port - redis-server port 端口号 (example: 6379)
- Auth - redis-server authentication password 认证密码(http://redis.io/commands/AUTH)
Connect to public redis-server with SSL
如果你希望通过使用SSL协议来连接到resid-server 服务器上的话,可以在第二个选项卡上按照PEM要求的格式填写公钥密码即可。在下面会对一些特定的云服务进行说明。
Windows Azure Redis Cache
- Create connection with all requested information
- Make sure that “Use SSL Protocol” checkbox is enabled
- Your Azure Redis connection is ready to use
Redis Labs
通过SSL/TLS加密连接到Redis Labs实例的话,可以进行以下操作步骤:
- Make sure that SSL is enabled for your Redis instance in Redis Labs dashboard.
- Download and unzip garantia_credentials.zip from Redis Labs dashboard
- Select garantia_user.crt in “Public key” field
- Select garantia_user_private.key in “Private key” field
- Select garantia_ca.pem in “Authority” field
Connect to private redis-server via SSH tunnel
Basic SSH tunneling
SSH选项卡应该允许您使用SSH隧道连接。这个功能非常有用,尤其是在当你的redis-server
不能通过公网进行访问的时候。使用之前,首先需要勾选 Use SSH Tunnel
选项。这里提供了两种不同的安全级别的连接选项: 你可以使用明文密码,也可以使用openssh
私有密钥。
for Windows users:
Your private key is must be in .pem format.
Advanced SSH tunneling
高级SSH隧道
如果你打算使用高级SSH隧道,你需要手动安主干SSH 隧道,以便 通过localhost连接:
ssh SSH_HOST -L 7000:localhost:6379
Connect to UNIX socket
Redis Desktop Manager doesn’t support UNIX sockets directly, but you can use redirecting of local socket to the unix domain socket, for instance with socat:
RDM 并不支持UNIX sockets,但是你可以重定向本地socket到unix socket,例如 socat:
socat -v tcp-l:6379,reuseaddr,fork unix:/tmp/redis.sock
Advanced connection settings
高级连接设置
Use the next tab Advanced settings in order to setup Namespace separator or other settings.
Next steps
Now you can test connection or create connection right away.
Congratulations, now you connected to your Redis Server. You should see something similar to what we showed on our screen.
Click on the connection and expand keys. By clicking the right button, you can see console menu and manage your connection from there.