我已经看过这个 ubuntu 教程。
http://thereluctantdeveloper.com/2015/12/quick-and-dirty-php-70-set-up-on-ubuntu-1404-with-apcu
步骤(git clone)之后我不清楚。
我的应用程序需要apcu 扩展才能更快地执行。
请指导在 debian 上为 php 7 安装 apcu 扩展。
最佳答案
首先,我假设您使用 DotDeb APT Repository 安装了 PHP7 .如果没有,这就是您应该安装它的方式。
一旦 PHP7 安装并正常运行,假设系统上没有安装其他版本的 PHP,安装 apcu
通过:
sudo apt-get install php7.0-dev
pecl channel-update pecl.php.net
pecl install apcu
echo "extension=apcu.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
如果提示指定任何配置,只需按 Enter。
关于debian - 如何在 debian 上安装 apcu 作为 php7 扩展,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34170434/