windows下ThinkPHP5中不支持Redis解決

  1. 下載對應的版本redis,區分32和64位php

  2. 解壓放到選定位置redis

  3. 進入redis所在磁盤:e:  , 進入redis目錄:cd rediswindows

  4. 添加redis到服務中:redis-server.exe --service-install redis.windows.conf --loglevel verbose服務器

  5. 可將redis添加到系統變量中

    備註:
                若是出現不支持redis或者redis類找不到狀況,下載對應版本的redis擴展,包括vc、x86或者x64,還有PHP版本,解壓放入PHP的擴展目錄ext下,在PHP.ini中添加redis擴展
        ;redis
        extension=php_igbinary.dll
        extension=php_redis.dll

        注意: extension=php_igbinary.dll必須在redis以前

        而後重啓服務器,打印phpinfo,查看redis是否開啓ide


     redis的下載在網上有不少,此處不寫,你們本身去找便可,.net

   提供一個官網redis擴展下載地址:http://windows.php.net/downloads/pecl/snaps/redis/
server

相關文章
相關標籤/搜索