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

鍙戣〃璇勮

鐢靛瓙閭欢鍦板潃涓嶄細琚叕寮銆 蹇呭~椤瑰凡鐢*鏍囨敞