php - Yii framework cannot connect to Redis (Database Exception – yii\db\Exception)
仅有的幸福
仅有的幸福 2017-05-16 13:00:40
0
1
706
  • Operating system: win10

  • Yii2

  • Environment: php5.6-nts+apache integrated by phpstudy

Confirmed:

  1. Redis-server has been started correctly

  2. The php-redis extension is available, and it can ping without the demo written by Yii

  3. The configured variables are correct, hostname=>127.0.0.1, port=>6379

< /p>

What other possibilities are there?

仅有的幸福
仅有的幸福

reply all(1)
小葫芦

The most likely problem is the account password. You can print out the account password in Connection.php and have a look

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template