1

I have set up redis like https://redis.io/docs/getting-started/installation/install-redis-from-source/. I run a test on redis-cli that is ok. But when use predis

Predis\Autoloader::register();
$client = new Predis\Client();
$client->set('foo', 'bar');
$value = $client->get('foo');

I get error connection refused? Does anyone know what is wrong? Thank you so much!

enter image description here

enter image description here

M. Eriksson
  • 13,450
  • 4
  • 29
  • 40
tri dang
  • 11
  • 3

0 Answers0