如何在debian上安装apcu作为php7扩展
发布时间:2020-12-13 14:09:49 所属栏目:PHP教程 来源:网络整理
导读:我看过这个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扩展名. 首
我看过这个ubuntu的这个教程.
http://thereluctantdeveloper.com/2015/12/quick-and-dirty-php-70-set-up-on-ubuntu-1404-with-apcu 在步骤(git clone)之后我并不清楚.
首先,我假设你使用
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键. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |