ubuntu安装扩展在phpinfo显示不出来的解决办法

在Ubuntu中使用apt-get安装了php扩展(比如redis、memcache、memcached等),在终端输入php -m是显示已加载,但是在phpinfo中无法显示,这个时候需要重启一下php-fpm

/etc/init.d/php7.0-fpm restart

  重启过后在phpinfo上面就会显示出来了。

原文地址:https://www.cnblogs.com/ailhc/p/6574145.html