作者:布丁可爱_997 | 来源:互联网 | 2023-09-25 13:45
Iamrunningawebserverwiththefollowingpackages;php-apc3.1.7-1php5-fpm5.3.10-1ubuntu3.10我
I am running a web server with the following packages; php-apc 3.1.7-1 php5-fpm 5.3.10-1ubuntu3.10
我正在运行一个包含以下包的web服务器;php-apc 3.1.7-1 php5-fpm 5.3.10-1ubuntu3.10
However, i have built a new server on Ubuntu 14.04 and seems like php-apc is not available anymore.
但是,我已经在Ubuntu 14.04上构建了一个新的服务器,并且看起来php-apc已经不可用了。
Therefore, APC was the lifeserver for my huge traffic (100 k/daily unique visits)
因此,APC是我巨大流量的救生员(100k /日独立访问量)
I am little bit confused about caching mechanisms on PHP. The new server includes these packages: php-apc 4.0.2-2build1 php5-apcu 4.0.2-2build1 php5-fpm 5.5.9+dfsg-1ubuntu4.7
我对PHP的缓存机制有点迷惑。新服务器包括这些包:php-apc 4.2 -2build1 php5-apcu 4.2 -2build1 php5-fpm 5.5.9+dfsg-1ubuntu4.7
phpinfo() gives me "apc" as emulated. As far i understand, APC is replaced with APCu.
phpinfo()给出了仿真的“apc”。据我所知,APC被APCu取代。
https://github.com/cepa/kickasscache I am running this free class for my caching, it really saves alot of cpu/mem in my case. But i can't understand if this is going to same with APCu?
我正在为我的缓存运行这个免费的类,它确实节省了我的cpu/mem。但我不明白这对APCu是否一样?
If its not, how can i setup a proper caching? Because my new server has limited resources and i need a solution.
如果不是,如何设置合适的缓存?因为我的新服务器资源有限,我需要一个解决方案。
php -v returns
php - v的回报
PHP 5.5.9-1ubuntu4.7 (cli) (built: Mar 16 2015 20:47:39)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies
Does it means OPcache enabled by default?
它是指默认启用的OPcache吗?
1 个解决方案