$this-redis-connect($host, $port,3); 3秒连接超时$this-redis = new Redis();$this-redis-connect($host, $port);$this-redis-auth($auth);这样解决就可以了,简单粗暴,个人建议还是去后盾网去经常看看教学视频学习学习吧