如何在 debian 上安装 apcu 作为 php7 扩展 [英] How install apcu as php7 extension on debian

查看:26
本文介绍了如何在 debian 上安装 apcu 作为 php7 扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经看过这个 ubuntu 教程.http://thereluctantdeveloper.com/2015/12/quick-and-dirty-php-70-set-up-on-ubuntu-1404-with-apcu

I have seen this tutorial for 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 扩展.

It's not clear for me after step(git clone). I need apcu extension for my app to perform faster. Please guide to install apcu extension for php 7 on debian.

推荐答案

首先,我假设您使用 DotDeb APT 存储库.如果没有,这就是您应该安装它的方式.

First, I'm assuming you installed PHP7 using the DotDeb APT Repository. If not, this is how you should install it.

一旦 PHP7 安装并正常工作,并假设系统上没有安装其他版本的 PHP,请通过以下方式安装 apcu:

Once PHP7 is installed and working properly, and assuming there are no other versions of PHP installed on the system, install apcu via:

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.

Just press enter if prompted to specify any configuration.

这篇关于如何在 debian 上安装 apcu 作为 php7 扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆