Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

redis install ubuntu 20.04

1. Install pre-requisities

  `sudo apt-get install build-essential tcl`

2. Install Redis

  ```
  cd /tmp
  curl -O http://download.redis.io/redis-stable.tar.gz
  tar xzvf redis-stable.tar.gz
  cd redis-stable
  make
  make test
  sudo make install
  ```
  
3. Configure Redis

  ```
  sudo mkdir /etc/redis
  sudo cp /tmp/redis-stable/redis.conf /etc/redis
  sudo nano /etc/redis/redis.conf
  ```
  
  In the file, change the `supervised` directive`s value to `systemd`.
  
  ```
  ...
  supervised systemd
  ...
  ```
  
  Next, specify the working directory for Redis. This  is the directory that Redis will use to dump persistent data. We can use `/var/lib/redis`
  
  ```
  ...
  dir /var/lib/redis
  ...
  ```
  
  Save and close the file.
  
4. Configure systemd to start Redis on boot

  `sudo nano /etc/systemd/system/redis.service`
  
  Copy the contents of [this gist](https://gist.github.com/hackedunit/14690b6174708d3e83593ce1cdfb4ed8) to the file, save and close.

5. Create Redis user, group and directories

  ```
  sudo adduser --system --group --no-create-home redis
  sudo mkdir /var/lib/redis
  sudo chown redis:redis /var/lib/redis
  sudo chmod 770 /var/lib/redis
  ```

6. Start the Redis service and set Redis to start on boot

  ```
  sudo systemctl start redis
  sudo systemctl enable redis
  ```
 
Comment

install redis on ubuntu 20.04

sudo snap install redis
Comment

Install Redis GUI on Ubuntu 20.04

sudo snap install redis-desktop-manager
Comment

PREVIOUS NEXT
Code Example
Shell :: find only files linux 
Shell :: symfony webpack server 
Shell :: rails reset gemfile.lock 
Shell :: linux display services listening for connections and ports they are listening on 
Shell :: how to zip and unzip tar 
Shell :: yarn react install 
Shell :: change git repository 
Shell :: Creating a directory or folder in linux 
Shell :: git remember login 
Shell :: docker get image size before pull acr 
Shell :: git submodule push current branch to master 
Shell :: seeing all the installed apps i terminal 
Shell :: docker image add tag 
Shell :: sh script options 
Shell :: vim open new tabs 
Shell :: install serverless framework 
Shell :: create pdf from images linux 
Shell :: git commands list 
Shell :: bash array forloop 
Shell :: how to check whats using my space linux 
Shell :: bash echo 
Shell :: start xampp on mac 
Shell :: List all installed programs or desktop application 
Shell :: rsync ssh 
Shell :: ubuntu add line to end of file 
Shell :: list node running 
Shell :: multiline comment in bash 
Shell :: remove directory and contents linux 
Shell :: remving merged commit 
Shell :: installing gnome 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =