Class redis not found solution under the command line

1. Enter php --ini on the command line

 

2. View phpinfo() in the browser

It can be seen that my phpinfo and command line are not a php.ini file. Because I have several versions of php and have php-5.4.45 configured in environment variables.

It can be solved by modifying environment variables

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325319985&siteId=291194637