Home > Backend Development > PHP Tutorial > Why can't I connect to Alibaba Cloud's redis? Neither redis-cli nor php-redis extension can be connected.

Why can't I connect to Alibaba Cloud's redis? Neither redis-cli nor php-redis extension can be connected.

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-09-24 09:15:12
Original
1393 people have browsed it

Direct connection from command line:

<code>redis-cli -h host -a 6379:password

</code>
Copy after login
Copy after login

php extension:

<code>$redis = new Redis();
$redis->connect(host,6379);
$res = $redis->auth(password);

都连不上,但是连127.0.0.1可以连上,而且可以用</code>
Copy after login
Copy after login

Reply content:

Direct connection from command line:

<code>redis-cli -h host -a 6379:password

</code>
Copy after login
Copy after login

php extension:

<code>$redis = new Redis();
$redis->connect(host,6379);
$res = $redis->auth(password);

都连不上,但是连127.0.0.1可以连上,而且可以用</code>
Copy after login
Copy after login

Alibaba Cloud’s Redis service does not seem to support external network access.
Reference: https://help.aliyun.com/knowl...

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php redis connection problem
From 1970-01-01 08:00:00
0
0
0
About a small error in the redis manual
From 1970-01-01 08:00:00
0
0
0
python2.7 - django cannot connect to redis
From 1970-01-01 08:00:00
0
0
0
I can't connect to redis using php
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template