Skip to content

Deploy Redis Service⚓︎

1 Preparation⚓︎

1.1 Environment Information⚓︎

  • Redis server information is as follows:
192.168.100.11

1.2 Update System Package Index⚓︎

sudo apt update

2 Install and Configure Redis⚓︎

2.1 Install Redis via APT⚓︎

sudo apt install -y redis-server

2.2 Configure Redis⚓︎

sudo vim /etc/redis/redis.conf
requirepass KXOeyNgDeTdpeu9q  # Set password (already exists, uncomment)
bind 127.0.0.1                # Comment out this line to enable remote access

2.3 Start Redis⚓︎

systemctl enable redis
systemctl start redis

3 Configure Firewall⚓︎

sudo ufw allow from 192.168.100.0/24 to any port 6379 proto tcp
sudo ufw reload