Windows Server 2016 配置指南 之 安装 APCu 拓展

简介: APCu 前身是 APC,一个免费开源且应用很广的字节码和对象缓存软件。目前 Godaddy、Mediatemple 等网站依旧有广泛运用的 APC或APCu。目前 Zend OPcache 依旧是 dev 开发版,所有需要稳定生产环境的同学可以考虑使用 APCu 来加速网站。

APCu 前身是 APC,一个免费开源且应用很广的字节码和对象缓存软件。目前 Godaddy、Mediatemple 等网站依旧有广泛运用的 APC或APCu。目前 Zend OPcache 依旧是 dev 开发版,所有需要稳定生产环境的同学可以考虑使用 APCu 来加速网站。

最新的 APCu 仅支持最新的 PHP7 NTS版本 (VC14),所以 PHP 5.6 及以下版本都是不能用的。

一、下载

进入 https://pecl.php.net/package/apcu 看到最新的版本,找到旁边的 DLL,在 DLL List 中根据自己是 nts(无安全线程) 还是 ts(安全线程) 下载对应版本。

注: php7目录下有php7.dll的选择nts版本;有php7ts.dll的选择ts版本。

这里列出 nts 的下载地址:

32位:
http://windows.php.net/downloads/pecl/releases/apcu/5.1.3/php_apcu-5.1.3-7.0-nts-vc14-x86.zip

64位:
http://windows.php.net/downloads/pecl/releases/apcu/5.1.3/php_apcu-5.1.3-7.0-nts-vc14-x64.zip

二、安装

php_apcu.dll 解压到 c:\php\etc 下。

用记事本打开 php.ini,并增加以下内容:

[apcu]
extension=php_apcu.dll
apc.enabled=1
apc.shm_size=64M
apc.ttl=7200
apc.enable_cli=1
apc.serializer=php

然后保存即可~

来自:https://www.mf8.biz/archives/51/

目录
相关文章
|
1月前
|
安全 数据安全/隐私保护 Windows
解锁安全之门,Windows Server 2019密码修改攻略大揭秘
解锁安全之门,Windows Server 2019密码修改攻略大揭秘
|
16天前
|
安全 Windows
安装MyEclipse遇到错误提示 Failed to find a Main Class in “C:Windows\Temp\“时的解决方案
安装MyEclipse遇到错误提示 Failed to find a Main Class in “C:Windows\Temp\“时的解决方案
22 1
|
28天前
|
Linux 数据安全/隐私保护 Docker
linux和windows中安装emqx消息服务器
linux和windows中安装emqx消息服务器
27 0
|
29天前
|
物联网 Windows
安装windows 10操作系统
安装windows 10操作系统
43 1
|
1月前
|
安全 数据安全/隐私保护 Windows
无远不至的掌控力:探索Windows Server 2019的远程访问绝招
无远不至的掌控力:探索Windows Server 2019的远程访问绝招
|
1月前
|
Windows
windows server 2019 安装NET Framework 3.5失败,提示:“安装一个或多个角色、角色服务或功能失败” 解决方案
windows server 2019 安装NET Framework 3.5失败,提示:“安装一个或多个角色、角色服务或功能失败” 解决方案
|
4月前
|
存储 安全 Apache
2023-10 适用于基于 x64 的系统的 Windows Server 2012 R2 月度安全质量汇总(KB5031419)
2023-10 适用于基于 x64 的系统的 Windows Server 2012 R2 月度安全质量汇总(KB5031419)
276 2
|
9月前
|
缓存 JavaScript 前端开发
Windows7压缩包安装node.js 报错提示windows Server 2012 R2 和安装React脚手架 最详细教程
对于Windows 7安装node.js 提示“This application is only supported on wWindows 8.1,windows Server 2012 R2, or higher.”类似这种情况的,该问题是因为node.js官方在 x12版本后就不支持win7系统了。
|
15天前
|
Ubuntu 安全 Linux
【Linux】安装VMWare虚拟机(安装配置)和配置Windows Server 2012 R2(安装配置连接vm虚拟机)以及环境配置(Windows版详细教程)
【Linux】安装VMWare虚拟机(安装配置)和配置Windows Server 2012 R2(安装配置连接vm虚拟机)以及环境配置(Windows版详细教程)
219 0
|
6月前
|
关系型数据库 MySQL Linux
【Linux】安装VMWare虚拟机(安装配置)和配置Windows Server 2012 R2(安装配置连接vm虚拟机)以及环境配置
【Linux】安装VMWare虚拟机(安装配置)和配置Windows Server 2012 R2(安装配置连接vm虚拟机)以及环境配置
111 0