-
Redis is a cross-platform DB, We can install it on Linux, or Windows, ..etc.
-
There are two ways to install Redis under Windows
-
Download the latest Redis .msi file from https://github.com/MSOpenTech/redis/r... and install it.
-
You can choose either from these sources:
-
-
Personally I prepared the first option
-
Download Redis-x64-2.8.2104.zip
-
Extract the zip to prepared directory
-
run redis-server.exe
-
then run redis-cli.exe
-
For more info follow this setup-video tutorial
- Even quicker and dirtier instructions for Debian-based Linux distributions are as follows:
- download Redis from http://redis.io/download
- extract, run make && sudo make install
- Then run sudo python -m easy_install redis hiredis (hiredis is an optional performance-improving C library).
3. Install the Python Package redis to connecto to Redis
- use th command
pip install redisin your command line.
- Add the Redis installation "/home" and "/bin" directories to the enviroment variables.
- start Redis server in one command window(CMD, poweshell, ..etc)using the command
redis-server. - In anoher command window, start your Redis Client using the command
redis-cli - Now you have the Redis Client Shell connected to the default db0 DB.
Simply clone the repository and run
docker-compose upThe following docker compose file will build the notebook container which includes all the required dependencies. Services are also exposed to the host network so you can connect to the via localhost.
version: "3"
services:
redis:
image: redis
ports:
- 6379:6379
notebook:
build: notebook/
ports:
- 8888:8888
volumes:
- ./:/home/jovyan/work/data
environment:
- GRANT_SUDO=yes