为 PHP7.x 安装 memcache 扩展

PHP Extension - Memcache module with support of newer PHP 7.0-7.3

Install

1
2
3
4
5
6
7
8
9
10
11
12
# clone source
git clone https://github.com/websupport-sk/pecl-memcache.git

# configure & install
cd pecl-memcache;
phpize
./configure
make -j$(nproc)
make install

# create php ini
echo "extension=memcache.so" >> /usr/local/php/etc/conf.d/memcache.ini