diff options
author | Lan Hui <lanhui@zjnu.edu.cn> | 2025-07-31 21:46:47 +0800 |
---|---|---|
committer | Lan Hui <lanhui@zjnu.edu.cn> | 2025-07-31 21:46:47 +0800 |
commit | fb607b33ac1291d33164879a6232cad3f842d9e6 (patch) | |
tree | 47ae84eaea3ff3d92aba1c7281190f6184a76bb5 | |
parent | c556c692c613a9d306bc4019e5cf07b3ac89e054 (diff) |
Quick notes on how to setup redis server
-rw-r--r-- | brain.documentation/QUICKSTART.rst | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/brain.documentation/QUICKSTART.rst b/brain.documentation/QUICKSTART.rst index eb75c61..dbeddd7 100644 --- a/brain.documentation/QUICKSTART.rst +++ b/brain.documentation/QUICKSTART.rst @@ -1167,6 +1167,21 @@ Python3 is required too. - Salmon 0.7.2 for mapping RNA-seq data. + - Redis for download_and_map.py and get_mapped_data.py. + + How to install Python's redis module? sudo pip3.8 install redis (or you can just omit 3.8). + + How to install redis server? sudo apt install python3-redis -y + Check redis server's status: "sudo systemctl status redis" + Configure redis as a remote server. + Edit /etc/redis/redis.conf, comment out the line "127.0.0.1 ::1", use a really strong password for "requirepass" line. + Open port 6379 for incoming request from a certain ip address: sudo ufw allow from 6*.1*.1*.3* to any port 6379 + Test redis using "redis-cli -h redis-server-ip-address", then type "auth the-really-strong-password", then type "ping", should see "pong". + How to save redis password in the environment variables? Edit .bashrc file, add the following two lines: + export REDIS_PASSWORD="the-really-strong-password" + export REDIS_HOST="redis-server-ip-address" # do not need this line for the redis server side + Then type the command "source ~/.bashrc" to let the changes take effect. + Important files and directories ------------------------------- |