Install¶
Install redis python client¶
Start redis via a docker file¶
Install redis server on Linux¶
https://redis.io/docs/latest/operate/oss_and_stack/install/archive/install-redis/install-redis-on-linux/
install latest stable version:
curl -fsSL https://packages.redis.io/gpg | sudo 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" | sudo tee /etc/apt/sources.list.d/redis.list
sudo apt-get update
sudo apt-get install redis
start and connect
Linux with build¶
install build tools
download Redis source code from: http://download.redis.io/releases/
wget -q http://download.redis.io/releases/redis-7.0.11.tar.gz
tar -xzf redis-7.0.11.tar.gz
cd 7.0.11
compile and install
Windows¶
Redis is not officially supported on Windows.
Had to install it on WSL2. See Linux section.
After start the redis-server from WSL2, we can use the server from windows (Need to install redis-py in windows).