sudo apt install php7.1-redis //修改php配置 vi /etc/php.ini 添加extension=redis.so 转载于:https://www.cnblogs.com/haozhen/p/10021908.html