php7 mongo.so,centos 5.7 安装PHP扩展memcached memcache redis mongo

tar zxvf libevent-1.4.13-stable.tar.gz

cd libevent-1.4.13-stable

./configure && make -j9 && make install

tar zxvf memcached-1.4.6.tar.gz

cd memcached-1.4.6

./configure --prefix=/usr/local/memcached

make -j9 && make install

# php mecache.so

tar zxvf memcache-2.2.6.tgz

cd memcache-2.2.6

/usr/local/zend/bin/phpize

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

make -j8 && make install

cd ..

# php memached.so

tar zxvf libmemcached-0.51.tar.gz

cd libmemcached-0.51

./configure --prefix=/usr/local/libmemcached --with-memcached=/usr/local/memcached/bin/memcached

make -j9 && make install

cd ..

tar zxvf memcached-1.0.2.tgz

cd memcached-1.0.2

/usr/local/zend/bin/phpize

./configure --with-php-config=/usr/local/zend/bin/php-config --with-libmemcached-dir=/usr/local/libmemcached

make -j9 && make install

cd ../

tar zxvf mongo-1.2.7.tgz

cd mongo-1.2.7

/usr/local/zend/bin/phpize

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

make  && make install

/usr/local/zend/lib/php/20090626/

memcached.so  memcache.so redis.so mongo.so

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值