Ubuntu24.04安装和配置Redis7.4
sudo su -
apt update
apt upgrade
apt install lsb-release curl gpg
curl -fsSL https://packages.redis.io/gpg | gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $( lsb_release -cs) main" | tee /etc/apt/sources.list.d/redis.list
apt update
apt install redis
vim /etc/redis/redis.conf
requirepass admin123
bind 192.168 .31.80
protected-mode no
systemctl start redis-server
systemctl status redis-server
systemctl enable redis-server
redis-cli
ufw allow 6379
redis-server --version
ps -aux | grep redis
ps -aux | grep 6379