Problem with redis

Does anyone know where I can fix this problem? It’s been hours and I can’t, I’ve already looked at all the posts and I can’t, just change the host with
nextcloud.occ configuration:system:get redis host
but I can’t execute the command to change because I just get that error, I can’t edit the config.php file either because installing is snap
I would be very grateful if you could help me.