centos7中php使用memcache
[*]下载memcache服务器:
yum-yinstallmemcached
[*]开启memcache服务:
memcached-uroot-p11211-m64m-d
[*]下载php扩展:
yum-yinstallphp-memcache#注意:有php-memcache和php-memcached两个扩展,这里php是作为客户端来调用memcached服务的,所以安装php-memcache
[*]重启网络服务器(apache):
systemctlrestarthttpd
[*]使用+测试:
页:
[1]