前言:
memcache是高性能的分布式内存式的高速缓存服务器。
memcache是php的扩展模块,主程序是memcached。
memcached菜鸟教程
一、安装memcache
从官网获得压缩包,注意:我安装的php为7.4版本,所以memcache安装4.0版本。
另外,下面操作都建立在我已经在环境变量中添加了php的调用命令,便于使用。
我这里php的安装路径为/usr/local/php
[root@servera Download]# yum install -y autoconf //解决依赖性
[root@servera Download]# tar zxf memcache-4.0.5.2.tgz
[root@servera Download]# cd memcache-4.0.5.2/
[root@servera memcache-4.0.5.2]# ls
cloudbuild.yaml config.m4 CREDITS Dockerfile LICENSE php7 tests
config9.m4 config.w32 docker example.php memcache.php README
[root@servera memcache-4.0.5.2]# which phpize
/usr