Install Redis for your laravel app

Draft Disclaimer: Please note that this article is currently in draft form and may undergo revisions before final publication. The content, including information, opinions, and recommendations, is subject to change and may not represent the final version. We appreciate your understanding and patience as we work to refine and improve the quality of this article. Your feedback is valuable in shaping the final release.

Language Mismatch Disclaimer: Please be aware that the language of this article may not match the language settings of your browser or device.
Do you want to read articles in English instead ?

sudo apt update

sudo apt install -y redis-server

# find and replace supervised no with supervised systemd


requirepass $(openssl rand 60 | openssl base64 -A)

cat >> /etc/redis/redis.conf << EOF
rename-command FLUSHDB ""
rename-command FLUSHALL ""
rename-command DEBUG ""
rename-command SHUTDOWN SHUTDOWN_MENOT
rename-command CONFIG ASC12_CONFIG
EOF

sudo systemctl restart redis.service