Windows 環境快速部署 Redis 並整合 PHP:
redis-2.4.5-win32-win64.zip,解壓依系統選 32/64 位元,路徑加入環境變數。redis-server.exe,顯示啟動成功資訊。redis-cli.exe -h 127.0.0.1 -p 6379 連線測試。
php_redis.dll 對應 PHP 版本,放入 ext 目錄,php.ini 加入 extension=php_redis.dll。<?php $redis = new Redis(); $redis->connect('127.0.0.1', 6379); $redis->set('test', 'hello'); echo $redis->get('test'); ?>輸出 hello 即代表整合成功。Redis 於 Windows 開發測試極為方便,生產環境建議使用 Linux 部署。
Win10 找不到「Microsoft Print to PDF」虛擬印表機?一鍵啟用功能找回教學
Win7 工作管理員看不到進程列表?雙擊邊框 + 關閉技巧完整教學
Win10 程式假死無回應?PowerShell 重置應用與工作管理員結束程序雙重解法
Win7 开关机蓝屏 runtime error → 0x3B 修复:最后正确配置 → 替换 ntoskrnl.exe/win32k.sys → 更新显卡主板驱动
Windows 10 新增英文輸入法教學:設定→時間與語言→新增語言→選擇英文變體(美式/英式/加拿大等)
Windows 常用 Shell 指令完整對照表:快速開啟系統特殊資料夾