linux涓嬪畨瑁卲hpredis鎷撳睍

璇磋捣鏉ヤ篃鏄尯璁藉埡锛岃韩涓轰竴涓媿榛勭墖宸ョ▼甯堬紝鎴戝眳鐒朵粠娌¤褰曡繃浠涔堟湁鍏硃hp鐨勪笢瑗匡紝鏈杩戠粰鍏徃缃戠珯閮ㄧ讲璐熻浇鍧囪 锛岄儴缃插畬涔嬪悗session鏃犳硶鍏卞瓨锛屽彧濂芥崲鎴恟edis鏉ュ瓨鍌ㄤ竴涓嬶紝鎵浠ョ壒姝よ褰曚竴涓嬪畨瑁卲hpredis
#鍦╣ithub鎼滅储phpredis 椤轰究涓嬩竴涓増鏈
wget https://github.com/phpredis/phpredis/releases/tag/3.1.4
tar -zxf 3.1.4.tar.gz 
cd phpredis-3.1.4

#鐒跺悗鎼滅储浣犵殑phpize鍦ㄥ摢閲 涓嶇煡閬撶殑璇濆氨
find / -name phpize
/usr/local/php/bin/phpize #浣犵殑phpize璺緞
#鐒跺悗鎼滅储浣犵殑php-config鍦ㄥ摢閲 涓嶇煡閬撶殑璇濆氨
find / -name php-config
 ./configure --with-php-config=/usr/local/php/bin/php-config #浣犵殑php-config璺緞
make && make install

鐒跺悗缂栬緫php.ini锛屾坊鍔爀xtension="redis.so"

All posts

Other pages


Deprecated: 鏂囦欢 娌℃湁 comments.php 鐨勪富棰 鑷増鏈 3.0.0 璧峰凡寮冪敤锛屼笖娌℃湁鍙敤鐨勬浛浠c 璇峰湪鎮ㄧ殑涓婚涓寘鍚竴涓 comments.php 妯℃澘銆 in /www/wwwroot/liguoqi.site/wp-includes/functions.php on line 6078

鍙戣〃鍥炲

鎮ㄧ殑鐢靛瓙閭鍦板潃涓嶄細琚叕寮銆 蹇呭~椤瑰凡鐢 * 鏍囨敞