Home > Backend Development > PHP Tutorial > php apc locking type是什么解决思路

php apc locking type是什么解决思路

WBOY
Release: 2016-06-13 10:20:55
Original
1073 people have browsed it

php apc locking type是什么

在php.ini 中修改了apc.rfc1867 = 1,

可是打开phpinfo(),始终显示apc.rfc1867=OFF

往上看有个locking type = File Locks;
会不会和这个有关?



------解决方案--------------------
修改php.ini后还要重启服务器,如apache,php-fpm这些
apc.rfc1867 是关于上传文件进度条的
locking type = File Locks 是缓存编译为字节码文件时的锁类型
------解决方案--------------------
确认修改的php.ini文件是生效的文件.
测试了一下 设置为 1或者On 都可以生效,以下是我的配置内容 你参考一下看看

extension=apc.so
apc.enabled = 1
apc.cache_by_default = on
apc.shm_segments = 1
apc.shm_size = 128m
apc.ttl = 7200
apc.user_ttl = 7200
apc.num_files_hint = 1024
apc.write_lock = On
apc.gc_ttl=3600
apc.ttl=0
apc.mmap_file_mask=/tmp/apc.XXXXXX
apc.rfc1867=1

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template