# Redis 設定
### 允許遠端連線
- 將 /etc/redis.conf 內容中的 bind 127.0.0.1 先註解
- 重啟 Redis 服務
一般啟用 redis-server /usr/local/etc/redis.conf
cmommand + C 可關閉
[或參考這](https://looaon.com/index.php/redis%E5%9F%BA%E7%A1%80/854.html)
- 更改 .env 後通知進行測試
- 可先於專案目錄下 ```php artisan cache:clear``` 或 ```php artisan config:clear``` 指令測試是否有問題 如有問題請先回復 .env設定
---
### 測試是否有寫入 Redis
至機器下指令
- redis-cli
- keys *
---
成功寫入時會會顯示 cache 清單
