When you use a client to connect to a Tair (Redis OSS-compatible) instance, you must enter the endpoint (Hostname
), port number (Port
), and ID of the instance. You can obtain the preceding information on the Instance Information page of the Tair console.
Procedure
Before you view the connection information, you must add the IP address of the client to a whitelist of the Tair instance. For more information, see Configure whitelists.
Log on to the ApsaraDB for Redis console and go to the Instances page. In the top navigation bar, select the region in which the instance that you want to manage resides. Then, find the instance and click the instance ID.
On the Instance Information page, view the instance ID in the Basic Information section.
In the Connection Information section, view different types of endpoints and port numbers.
NoteIf you want to connect to the Redis instance over the Internet, apply for a public endpoint for the instance. For more information, see Apply for a public endpoint for an ApsaraDB for Redis instance.
You cannot apply for a public endpoint for a cloud-native cluster instance that runs in direct connection mode. For more information, see View endpoints.
Then, you can connect to the Redis instance. For more information, see Use redis-cli to connect to an ApsaraDB for Redis instance.
Applicable scope
Tair (Redis OSS-compatible)