1. 安裝Redisphp
1.1 下載安裝包 https://github.com/ServiceStack/redis-windows#3-run-the-redis-serverexe-using-the-local-configurationgit
1.2 解押後選擇要安裝的Redis版本github
1.3 解押該版本後能夠看到 redis-server.exe 和 redis-cli.exe 分別表明服務端和客戶端redis
2. 安裝PHPRedis擴展apache
2.1 查看本身的PHP版本信息,下載相應的擴展windows
https://github.com/nicolasff/phpredis spa
http://windows.php.net/downloads/pecl/snaps/redis/2.2.5/.net
2.2 下載獲得的 php_igbinary.dll 和 php_redis.dll 放入php的ext目錄下server
2.3 修改配置文件 php.ini blog
2.4 重啓apache,查看phpinfo就有redis擴展的信息
3. 開啓redis服務
進入redis安裝目錄 cmd命令 redis-server.exe redis.conf
redis.conf爲配置文件 具體修改成本身安裝的文件名 如 redis.windows.conf
4. 設置爲開機啓動
4.1 在redis的目錄下執行(執行後就做爲windows服務了)
redis-server --service-install redis.windows.conf
4.2 安裝好後須要手動啓動redis
redis-server --service-start
4.3 中止服務
redis-server --service-stop
4.4 卸載redis服務redis-server --service-uninstall