Xcache

发布时间:2019-11-01 发布网站:大佬教程
大佬教程收集整理的这篇文章主要介绍了Xcache大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

<span style="widows: 2; text-transform: none; text-indent: 0px; border-collapse: separate; font: medium 'Times New Roman'; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(0,0); word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class="Apple-style-span"><span style="text-align: left; line-height: 21px; font-family: simsun; color: rgb(50,62,50); font-size: 14px" class="Apple-style-span">
<h1 style="page-break-after: avoid; border-bottom: rgb(64,88,113) 2px solid; padding-bottom: 0.2em; border-right-width: 0px; overflow-x: auto; overflow-y: auto; list-style-type: none; margin: 0.15em 1em 0.5em -18px; padding-left: 0.2em; padding-right: 0.2em; font-family: Arial,Verdana,'Bitstream Vera sans',Helvetica,sans-serif; counter-reset: h2 0; border-top-width: 0px; letter-spacing: -0.01em; color: rgb(0,51,102); font-size: 22px; counter-increment: h1 1; border-left-width: 0px; font-weight: bold; text-decoration: none; padding-top: 0.2em"><span style="widows: 2; text-transform: none; text-indent: 0px; border-collapse: separate; font: medium simsun; word-wrap: normal; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(0,0); word-break: normal; word-spacing: 0px"><span style="line-height: 24px; background-color: rgb(255,255,153); word-wrap: normal; word-break: normal">Cache<span style="line-height: 24px; word-wrap: normal; word-break: normal"> 的 INI 配置
<p style="padding-bottom: 0px; line-height: 21px; border-right-width: 0px; list-style-type: none; margin: 0px 0px 5px; padding-left: 0px; padding-right: 0px; word-wrap: normal; border-top-width: 0px; border-bottom-width: 0px; word-break: normal; border-left-width: 0px; padding-top: 0px">终于到了解释<span style="line-height: 21px; word-wrap: normal; word-break: normal"> <span style="line-height: 21px; background-color: rgb(255,153); word-wrap: normal; word-break: normal">xcache.ini 的时候了,不管你有没有<a style="border-bottom: rgb(187,187,187) 1px dotted; color: rgb(0,102,204); text-decoration: none" href="http://xcache.lighttpd.net/wiki/PhpIni"&gt;PHP INI 基础知识.


<h2 style="page-break-after: avoid; border-bottom: rgb(64,113) 2px solid; padding-bottom: 0.5em; border-right-width: 0px; overflow-x: auto; overflow-y: auto; list-style-type: none; margin: 0.2em 0px 0.2em 0.5em; padding-left: 0px; padding-right: 0px; font-family: Arial,sans-serif; counter-reset: h3 0; border-top-width: 0px; letter-spacing: -0.01em; color: rgb(0,102); font-size: 18px; counter-increment: h2 1; border-left-width: 0px; font-weight: bold; text-decoration: none; padding-top: 0px">载入<span style="line-height: 27px; word-wrap: normal; word-break: normal"> <span style="line-height: 27px; background-color: rgb(255,153); word-wrap: normal; word-break: normal">XCache<span style="line-height: 27px; word-wrap: normal; word-break: normal"> 模块
<pre style="border-bottom: rgb(215,215,215) 0px solid; border-left: white 1px solid; padding-bottom: 0.25em; overflow-x: auto; overflow-y: auto; background-color: rgb(231,231,255); margin: 0px 1.75em; padding-left: 0.25em; padding-right: 0.25em; font-family: 'Courier new',monospace; white-space: normal; color: rgb(0,0); font-size: 0.9em; border-top: rgb(215,215) 0px solid; border-right: white 1px solid; padding-top: 0.25em">;; 安装成 zend extension (推荐),路径一般是 "$extension_dir/<span style="line-height: 19px; background-color: rgb(255,153); word-wrap: normal; word-break: normal">xcache.so" zend_extension = /usr/local/lib/php/extensions/non-debug-non-zts-xxx/xcache.so ;; Windows 系统例子: zend_extension_ts = c:/php/extensions/php_xcache.dll ;; 或者您也可把 XCache 安装成 extension,注意确保您的 extension_dir 设置正确,并 把 xcache.so 或者 php_xcache.dll 放到该目录里面 ; extension = xcache.so ;; 或者 Win32 系统: ; extension = php_xcache.dll
<h2 style="page-break-after: avoid; border-bottom: rgb(64,102); font-size: 18px; counter-increment: h2 1; border-left-width: 0px; font-weight: bold; text-decoration: none; padding-top: 0px">
<span style="line-height: 27px; background-color: rgb(255,153); word-wrap: normal; word-break: normal">XCache<span style="line-height: 27px; word-wrap: normal; word-break: normal"> Administration
<table style="border-bottom: rgb(204,204,204) 2px solid; border-left: rgb(204,204) 2px solid; padding-bottom: 0px; line-height: normal; margin: 0px; padding-left: 0px; padding-right: 0px; border-collapse: collapse; border-top: rgb(204,204) 2px solid; border-right: rgb(204,204) 2px solid; padding-top: 0px">
<tr>
<td style="border-bottom: rgb(204,204) 1px solid; border-left: rgb(204,204) 1px solid; padding-bottom: 0.1em; margin: 0px; padding-left: 0.25em; padding-right: 0.25em; font: 13px Verdana,Arial,sans-serif; border-top: rgb(204,204) 1px solid; border-right: rgb(204,204) 1px solid; padding-top: 0.1em"><strong style="font-weight: bold">Name</td>
<td style="border-bottom: rgb(204,204) 1px solid; padding-top: 0.1em"><strong style="font-weight: bold">Default</td>
<td style="border-bottom: rgb(204,204) 1px solid; padding-top: 0.1em"><strong style="font-weight: bold">Changeable</td>
</tr>
<tr>
<td style="border-bottom: rgb(204,204) 1px solid; padding-top: 0.1em">
<span style="line-height: 19px; background-color: rgb(255,153); word-wrap: normal; word-break: normal">xcache.admin.user</td>
<td style="border-bottom: rgb(204,204) 1px solid; padding-top: 0.1em">"mOo"</td>
<td style="border-bottom: rgb(204,204) 1px solid; padding-top: 0.1em">PHP_INI_SYSTEM</td>
</tr>
<tr>
<td style="border-bottom: rgb(204,153); word-wrap: normal; word-break: normal">xcache.admin.pass</td>
<td style="border-bottom: rgb(204,204) 1px solid; padding-top: 0.1em">""</td>
<td style="border-bottom: rgb(204,153); word-wrap: normal; word-break: normal">xcache.admin.enable_auth</td>
<td style="border-bottom: rgb(204,204) 1px solid; padding-top: 0.1em">"on"</td>
<td style="border-bottom: rgb(204,153); word-wrap: normal; word-break: normal">xcache.test</td>
<td style="border-bottom: rgb(204,204) 1px solid; padding-top: 0.1em">Off</td>
<td style="border-bottom: rgb(204,153); word-wrap: normal; word-break: normal">xcache.coredump_directory</td>
<td style="border-bottom: rgb(204,204) 1px solid; padding-top: 0.1em">PHP_INI_SYSTEM</td>
</tr>

.admin.userstring
.admin.passstring
.teststring
.coredump_directorystring
.admin.enable_authstring
admin 页面,如果禁止了内建 HTTP 验证,则他们亦不需要权限即可访问管理页面. 出于安全考虑,您应该尽量考虑保留 XCache 内建验证功能,针对 XCache admin 页面特定地址取消网页服务器的 mod_auth 这个选项仅在 1.2.x 系列有作用,起始版本 1.2.1

Cacher

.cacher.size.count.slots.ttl.gc_interval.var_size.var_count.var_slots.var_ttl.var_maxttl.var_gc_interval.readonly_protection.mmap_path.cacherboolean
.size = 0 时无效.
.sizeint
.countint
.slotssize
.ttlseconds
.gc_intervalseconds
.var_sizeint
.var_countint
.var_slotssize
.var_gc_intervalseconds
.var_ttlseconds
_(get|set|inc|dec) 等的默认 ttl 值.
.var_maxttlseconds
.readonly_protectionboolean
,将会略微降低性能,但是会提高一定的安全系数. 这个选项对于.mmap_path = /dev/zero 无效.
.mmap_pathstring
.mmap_path 是文件路径,不是目录. 对于 Win32,153); word-wrap: normal; word-break: normal">xcache.mmap_path 只是匿名的map 名,不是实际的文件路径. 如果您要启用请用类似 "/tmp/xcache" 的路径. 2 组 php 不该共用同一个路径 (/dev/zero 除外).

Optimizer

.optimizer.optimizerboolean

Coverager

.coverager.coveragedump_directory.coveragerboolean
.coveragedump_directory and xcache_coverager_start/stop/get/clean() functions (will hurt executing performance)
.coveragedump_directorystring
.coverager=On
(2)安装
$ tar -zxvf xcache-1.2.2.tar.gz$ cd xcache-1.2.2$ phpize$ ./configure --enable-xcache --with-php-config=/usr/local/bin/php-config$ make$ make test$ make install

大佬总结

以上是大佬教程为你收集整理的Xcache全部内容,希望文章能够帮你解决Xcache所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ群:277859234,请注明来意。
标签: