connect($TS_CF['redis']['host'], $TS_CF['redis']['port']); //检测是否连接成功 echo "Server is running: " . $redis->ping(); // 输出结果 Server is running: +PONG