DWQA QuestionsCategory: DatabaseWith Alibaba cloud's redis, why can't it be connected all the time, redis CLI and PHP redis extension
DH asked 3 weeks ago

The command line connects directly to:

redis-cli -h host -a 6379:password

PHP extension:

$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
Lunatic, live a good life replied 3 weeks ago

So the question is, what do you want to do.. 127.0.1 if you can connect it, you can use it.

Lunatic, live a good life replied 3 weeks ago

How to connect to Alibaba cloud’s redis database

2 Answers
printempw answered 3 weeks ago

It seems that Alibaba cloud’s redis service does not support Internet access.
reference resources:https://help.aliyun.com/knowl…

david_zhang answered 3 weeks ago

Alibaba cloud redis does not support Internet connection. If you want to connect to the Internet, you need to open a VPN