php加载memcache

安装php加载memcache
[root@web-server ~]# rpm -qa | grep libevent [root@web-server ~]# yum -y install libevent* [root@web-server ~]# yum -y install memcached [root@web-server ~]# yum -y install php php-pecl-memcached

 修改php.ini配置文件

[root@web-server ~]#vi /etc/php.ini 

extension
= memcached.so ,让php支持memcached

 

 接下来再安装memcache扩展包,这里我们不要考虑对别的包有什么依赖yum会帮我们解决的,这也是yum的强悍之处

[root@web-server ~]#yum -y install php-pecl-memcache

启动memcache服务器

[root@web-server ~]#service memcached start

启动httpd服务

[root@web-server ~]#service httpd restart

测试php加载memcache

posted @ 2017-01-09 13:25  扛把子修BUG  阅读(255)  评论(0编辑  收藏  举报