ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
### 安装:目前已可以从pecl下载扩展了。 php7至少请使用3.0.0版本,php5系列的请使用2.2.8或2.2.7的版本 ####windows下building phpredis扩展 >参考:https://github.com/phpredis/phpredis/issues/213#issuecomment-11361242 How to compile phpredis 1. Install visual studio 2008 (express or professional). If using visual studio 2008 express, also install the latest windows SDK. 2. Download PHP source code 3. Extract to C:\php\php-5.4.9 4. Download [http://windows.php.net/downloads/php-sdk/php-sdk-binary-tools-20110915.zip](http://windows.php.net/downloads/php-sdk/php-sdk-binary-tools-20110915.zip) and extract to C:\php 5. In cmd.exe * cd C:\php\php-5.4.9\ext * git clone [https://github.com/nicolasff/phpredis.git](https://github.com/nicolasff/phpredis.git) * cd .. * buildconf.js * "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv" /x86 /xp /release * path "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin";%PATH% * bin\phpsdk_setvars.bat * "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" * configure.js --disable-all --enable-cli --enable-redis --enable-redis-session (if building the nts version, also add --disable-zts) * nmake php_redis.dll * fix any compilation errors For more information check [https://wiki.php.net/internals/windows/stepbystepbuild](https://wiki.php.net/internals/windows/stepbystepbuild)