<?php//连接本地的 Redis 服务$redis = new Redis();$redis->connect('10.1.3.15', 6379);$redis->auth('1234');echo "Connection to server successfully";//查看服务是否运行echo "Server is running: " . $redis->ping();echo 'hello word'?>