VestaCP安装Memcache和Opcache
关于Memcache和Opcache
Memcache是一套分布式的高速缓存系统,由LiveJournal的Brad Fitzpatrick开发,但目前被许多网站使用以提升网站的访问速度,尤其对于一些大型的、需要频繁访问数据库的网站访问速度提升效果十分显著。
OPcache通过将 PHP 脚本预编译的字节码存储到共享内存中来提升 PHP 的性能,存储预编译字节码的好处就是 省去了每次加载和解析 PHP 脚本的开销。
VestaCP安装Memcache和Opcache方法
Ubuntu/Debian
apt-get install php5-memcache memcached php5-memcached
service apache2 restart
Centos
yum install --enablerepo=remi php-pecl-memcache php-pecl-zendopcache memcached libmemcached -y
service httpd restart