CentOS 6 安裝 APC(Alternative PHP Cache)
STEP 1.安裝基本 packages
#yum install php-pear php-devel httpd-devel pcre-devel gcc make
STEP 2.pecl
pecl install apc
如果報錯,提示“Fatal Error”,則:
yum install php-pecl-apc
配置引數
#vim /etc/php.d/apc.ini
STEP 4.重啟伺服器
#service httpd restart
STEP 5.檢查apc安裝
新建檔案:
# vim /var/www/html/phpinfo.php
編輯檔案:
<?php
phpinfo();
?>
開啟瀏覽器,輸入http://your-domain/phpinfo.php
php5.5後版本自帶opcache代替APC
Referrence
1.http://www.tecmint.com/install-apc-alternative-php-cache-in-rhel-centos-fedora/
相關文章
- PHP-5.4.4安裝APC啟東php-fpm提示PHP
- FreeBSD安裝配置Nginx+PHP+APC+MySQLNginxPHPMySql
- ubuntu apc 安裝Ubuntu
- Centos6 下安裝Nginx+Mysql+PHPCentOSNginxMySqlPHP
- CentOS6.x安裝php5.6.xCentOSPHP
- CentOS 安裝PHPCentOSPHP
- CentOS 7 安裝 PHP 7.2CentOSPHP
- centos PHP 編譯安裝CentOSPHP編譯
- CentOS6.4安裝PHPCentOSPHP
- centos6 安裝EPELCentOS
- CentOS6 安裝 RedisCentOSRedis
- Centos6下給PHP安裝Qconf擴充套件CentOSPHP套件
- centos7下安裝phpCentOSPHP
- CentOS 7 完全解除安裝PHPCentOSPHP
- CentOS 7 安裝PHP 5.4.16CentOSPHP
- centos 6.x 安裝 gogsCentOSGo
- SQLAdvisor安裝(CentOS 6)SQLCentOS
- CentOS6.x安裝RabbitMQCentOSMQ
- centos6上安裝dockerCentOSDocker
- CentOS 6 NFS的安裝配置CentOSNFS
- CentOS6 升級 PHP7.0 及安裝 ZIP 擴充套件CentOSPHP套件
- php-fpmwithphp-5.3.2+APCPHP
- CentOS 7 yum 安裝 PHP7.3CentOSPHP
- Centos 編譯安裝 PHP7.4.7CentOS編譯PHP
- centos6.5安裝php5.6.0CentOSPHP
- centos7.6安裝php7.3CentOSPHP
- CentOS6.X系統安裝CentOS
- Redhat/Centos6.x安裝ChromeRedhatCentOSChrome
- CentOS6安裝ZendOptimizer(ZendGuardLoader)CentOS
- CentOS6yum方式安裝lnmpCentOSLNMP
- centos6 下的apache安裝CentOSApache
- centos7 安裝mongo6CentOSGo
- 給在生產環境下給php安裝apc加速擴充套件指令碼PHP套件指令碼
- CentOS 下編譯安裝 PHP7.2CentOS編譯PHP
- CentOS 下安裝 PHP Swoole 擴充套件CentOSPHP套件
- CentOS安裝RabbitMQ及PHP擴充套件CentOSMQPHP套件
- centos安裝php的oracle擴充套件CentOSPHPOracle套件
- CentOS 6.5 php原始碼安裝1.0版CentOSPHP原始碼