參考來源:
https://zhuanlan.zhihu.com/p/455467230
https://www.dswhi.com/2023/02/18/%E7%BE%A4%E6%9A%89synology-wordpress%E9%80%9F%E5%BA%A6%E5%84%AA%E5%8C%96phpredis/
安裝redis server
Step1. package center先增加第三方社群synocommunity套件庫,這樣就可以安裝redis套件
![](https://img.techeasy.org/images/2023/05/28/image10a459fe92e9c237.png)
![](https://img.techeasy.org/images/2023/05/28/imagee0600b3bd2fad146.png)
用命令編輯 vim /var/packages/redis/var/redis.conf
![](https://img.techeasy.org/images/2023/05/28/image354bf1d8964a5a3a.png)
![](https://img.techeasy.org/images/2023/05/28/image9eef489da14fbfe8.png)
![](https://img.techeasy.org/images/2023/05/28/imagedfdbcfc29823abe0.png)
![](https://img.techeasy.org/images/2023/05/28/image190d3db50b6c0e64.png)
![](https://img.techeasy.org/images/2023/05/28/imagecb39a8412e879a9b.png)
編輯完後將redis套件停用後啟用,以上設定就會生效
php redis module手動加入
群暉內建的php7.3-8.0從gui尚無法看到php redis模組,然而有些網站服務需要依賴這個模組,別擔心,其實這模組只是被隱藏起來了,需要用cli手動編輯設定檔啟用它。
Step1. 用ssh進入dsm,然後cd PHP7.3/misc/
, vim php-fpm.ini
![](https://img.techeasy.org/images/2023/05/28/image.png)
在最後面加入這段
[Redis]
extension = redis.so
![](https://img.techeasy.org/images/2023/05/28/image50ae2c2333d6288e.png)
我測試安裝的yesilcms原本卡住,現在偵測到啦
![](https://img.techeasy.org/images/2023/05/28/image11f6f76192685c8b.png)