#yum install php-pear php-devel httpd-devel pcre-devel gcc make
pecl install apc
如果報錯,提示“Fatal Error”,則:
yum install php-pecl-apc
#vim /etc/php.d/apc.ini
#service httpd restart
新建文件:
# vim /var/www/html/phpinfo.php
編輯文件:
<?php phpinfo();?>
打開浏覽器,輸入http://your-domain/phpinfo.php
1.http://www.tecmint.com/install-apc-alternative-php-cache-in-rhel-centos-fedora/
2.https://easyengine.io/tutorials/php/zend-opcache/
http://xxxxxx/Linuxjc/1134295.html TechArticle