略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: 运行时配置

2024-04-28

运行时配置

这些函数的行为受 php.ini 中的设置影响。

Yar 配置选项
名字 默认 可修改范围 更新日志
yar.packager php PHP_INI_SYSTEM
yar.debug Off PHP_INI_ALL
yar.connect_timeout 1000 PHP_INI_ALL
yar.timeout 5000 PHP_INI_ALL
yar.expose_info On PHP_INI_SYS

这是配置指令的简短说明。

yar.packager string

设置Yar的打包工具, 可以是PHP(serialize), JSON, Msgpack(这个需要编译的时候指定--enable-msgpack).

yar.debug string

打开的时候, Yar会把请求过程的日志都打印出来(到stderr).

yar.connect_timeout integer

连接超时(毫秒为单位)

yar.timeout integer

处理超时(毫秒为单位)

yar.expose_info bool

如果关闭, 则当通过浏览器访问Server的时候, 不会出现Server Info信息.

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/yar.configuration.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3