memcache 服务与扩展安装

扩展安装

1 wget https://github.com/websupport-sk/pecl-memcache/archive/php7.zip

2 unzip pecl-memcache-php7.zip  (php7压缩是zip格式的  所以用unzip解压)

3 进入到解压的文件夹 cd pecl-memcache-php7

4 /usr/local/php/bin/phpize

5./configure --with-php-config=/usr/local/php/bin/php-config

6.编码并解压   make && make install

7 在phpinfo中查看phpini的路径  vi phpini的路径  进入到phpini中  增加 extension = "memcache.so"

参考网址https://www.cnblogs.com/hejun695/p/5369610.html

猜你喜欢

转载自blog.csdn.net/liuyubing2018/article/details/81083521