Problem Description:
1、在win8上vmware了一个centos,并且在windows下ping通了centos的ip:192.168.1.101; 2、在windows下安装phpredis,并且在phpinfo中看到了phpredis支持的版本,证明安装成功; 3、在centos下能连上127.0.0.1:6379,正常操作redis存储;
Not connected under Windows, prompt: Connection timed out. The code is as follows:
connect('192.168.1.101', 6379); echo "Connection to server sucessfully"; echo "Server is running: " . $redis->ping(); ?>
Reply content:
Problem Description:
1、在win8上vmware了一个centos,并且在windows下ping通了centos的ip:192.168.1.101; 2、在windows下安装phpredis,并且在phpinfo中看到了phpredis支持的版本,证明安装成功; 3、在centos下能连上127.0.0.1:6379,正常操作redis存储;
Not connected under Windows, prompt: Connection timed out. The code is as follows:
connect('192.168.1.101', 6379); echo "Connection to server sucessfully"; echo "Server is running: " . $redis->ping(); ?>
vim /etc/redis.conf
Revision changed to
bind 0.0.0.0
Restart Service View Port
service redis restartnetstat -ntpl |grep redis
Should be able to see the monitor 0.0.0.0