nextcloud 加速:使用redis
1. 先準備好redis server
如何安裝redis
2.修改nextcloud 設定檔案
docker exec -it nextcloud bash root@a764952ce51b:/var/www/html# vi config/config.php ### <?php $CONFIG = array ( 'htaccess.RewriteBase' => '/', 'memcache.local' => '\\OC\\Memcache\\APCu', 'redis' => array( 'host' => '127.0.0.1', 'port' => 6379, ), ... ...
![](https://i0.wp.com/kafeiou.pw/wp-content/uploads/2023/06/image-3.png?resize=425%2C155&ssl=1)
3. 重啟nextcloud , 然後回到redis 可下指令查看
![](https://i0.wp.com/kafeiou.pw/wp-content/uploads/2023/06/image-4.png?resize=439%2C721&ssl=1)