mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
添加Redis和Memcached扩展
This commit is contained in:
1
tests/conf/memcached.ini
Normal file
1
tests/conf/memcached.ini
Normal file
@@ -0,0 +1 @@
|
||||
extension=memcached.so
|
||||
1
tests/conf/redis.ini
Normal file
1
tests/conf/redis.ini
Normal file
@@ -0,0 +1 @@
|
||||
extension=redis.so
|
||||
@@ -10,10 +10,21 @@ if [ $(phpenv version-name) != "hhvm" ]; then
|
||||
echo "yes\nno\n" | pecl install apcu-5.1.2
|
||||
pecl install apcu_bc-beta
|
||||
phpenv config-add thinkphp/tests/conf/apcu_bc.ini
|
||||
|
||||
wget -O phpredis-php7.tar.gz https://github.com/phpredis/phpredis/archive/php7.tar.gz
|
||||
tar -xzvf phpredis-php7.tar.gz
|
||||
cd phpredis-php7 && phpize && ./configure && make && sudo make install
|
||||
|
||||
wget -O memcached-php7.tar.gz https://github.com/php-memcached-dev/php-memcached/archive/php7.zip
|
||||
tar -xzvf memcached-php7.tar.gz
|
||||
cd php-memcached-php7 && phpize && ./configure && make && sudo make install
|
||||
else
|
||||
echo "yes\nno\n" | pecl install apcu-4.0.10
|
||||
phpenv config-add thinkphp/tests/conf/apcu.ini
|
||||
fi
|
||||
fi
|
||||
|
||||
phpenv config-add thinkphp/tests/conf/memcached.ini
|
||||
phpenv config-add thinkphp/tests/conf/redis.ini
|
||||
|
||||
composer install --no-interaction --ignore-platform-reqs
|
||||
|
||||
Reference in New Issue
Block a user