redis-cli is a built-in command line interface (CLI) of open source Redis. You can use redis-cli to connect to a Tair instance from an Elastic Compute Service (ECS) instance or on-premises device to manage data.
Workflow
Procedure | Description |
---|---|
1. Specify the account used to connect to your Tair instance and the account password. | Use one of the following methods:
|
2. Configure a whitelist. | The recommended network type varies with devices. Choose a network type that suits
your device and add the IP address of the device to a whitelist of the Tair instance.
|
3. Obtain the connection information. |
For more information, see View endpoints and port numbers. |
4. Use redis-cli to connect to the Tair instance. | Run the following commands based on your needs in the decompressed redis-cli directory.
|
Procedure
Appendix: Install redis-cli
redis-cli is automatically installed when you install Redis on your ECS instance or on-premises device.
Common connection errors
Error message | Cause and solution |
---|---|
(error) ERR illegal address |
A whitelist is not configured as required. For more information, see the "Workflow" section of this topic. |
(error) ERR client ip is not in whitelist |
|
|
The password is invalid. Make sure that you use the correct password in a valid format.
The password format varies with the account type.
Note If you forget your password, reset it. For more information, see Change or reset the password.
|