The command line connects directly to:
redis-cli -h host -a 6379:password
$redis = new Redis(); $redis->connect(host,6379); $res = $redis->auth(password); It can't be connected, but it can be connected to 127.0.0.1, and it can be used
So the question is, what do you want to do.. 127.0.1 if you can connect it, you can use it.
How to connect to Alibaba cloud’s redis database