mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update memcached.sh
This commit is contained in:
@@ -38,11 +38,9 @@ Install_lib()
|
|||||||
|
|
||||||
$serverPath/php/$version/bin/phpize
|
$serverPath/php/$version/bin/phpize
|
||||||
./configure --with-php-config=$serverPath/php/$version/bin/php-config \
|
./configure --with-php-config=$serverPath/php/$version/bin/php-config \
|
||||||
--enable-memcached
|
--enable-memcached && make && make install && make clean
|
||||||
#--with-zlib-dir=$serverPath/lib/zlib
|
#--with-zlib-dir=$serverPath/lib/zlib
|
||||||
#--with-libmemcached-dir=$serverPath/lib/libmemcached
|
#--with-libmemcached-dir=$serverPath/lib/libmemcached
|
||||||
|
|
||||||
make && make install && make clean
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -75,8 +73,8 @@ Uninstall_lib()
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sed -i '_bak' '/${LIBNAME}.so/d' $serverPath/php/$version/etc/php.ini
|
sed -i '_bak' "/${LIBNAME}.so/d" $serverPath/php/$version/etc/php.ini
|
||||||
sed -i '_bak' '/${LIBNAME}/d' $serverPath/php/$version/etc/php.ini
|
sed -i '_bak' "/${LIBNAME}/d" $serverPath/php/$version/etc/php.ini
|
||||||
|
|
||||||
rm -f $extFile
|
rm -f $extFile
|
||||||
$serverPath/php/init.d/php$version reload
|
$serverPath/php/init.d/php$version reload
|
||||||
|
|||||||
Reference in New Issue
Block a user