Home > Article > Backend Development > Why can't I connect to Alibaba Cloud's redis? Neither redis-cli nor php-redis extension can be connected.
Direct connection from command line:
<code>redis-cli -h host -a 6379:password </code>
php extension:
<code>$redis = new Redis(); $redis->connect(host,6379); $res = $redis->auth(password); 都连不上,但是连127.0.0.1可以连上,而且可以用</code>
Direct connection from command line:
<code>redis-cli -h host -a 6379:password </code>
php extension:
<code>$redis = new Redis(); $redis->connect(host,6379); $res = $redis->auth(password); 都连不上,但是连127.0.0.1可以连上,而且可以用</code>
Alibaba Cloud’s Redis service does not seem to support external network access.
Reference: https://help.aliyun.com/knowl...