centos7、php7中的memcache扩展安装编译

cd /var/soft/
wget https://github.com/websupport-sk/pecl-memcache/archive/php7.zip 
tar xvf php7.zip
cd php7
/usr/local/php7/bin/phpize
./configure --with-php-config=/usr/local/php7/bin/php-config
make && make install

修改php.ini

[memcache]
extension_dir="/usr/lib64/php/modules"
extension = "memcache.so"
打赏

发表评论

电子邮件地址不会被公开。 必填项已用*标注

You must enable javascript to see captcha here!