网页代码$redis = new Redis(); $redis->connect('192.168.163.162',6379) or die ("could net connect redis server"); # $query = "select * from test limit 9"; $query = "select * from test"; for ($key = 1; $key < 10; $key++)
访问网页报错Fatal error: Uncaught Error: Class 'Redis' not found in /usr/local/nginx/html/test.php:2 Stack trace: #0 {main} thrown in /usr/local/nginx/html/test.php on line 2