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 :: see stashed changes git 
Shell :: surge installation 
Shell :: how to create an alias 
Shell :: cmake 
Shell :: delete missing files from svn 
Shell :: kubectl connect to node bash 
Shell :: Cannot connect to the Docker daemon at tcp://localhost:2375. Is the docker daemon running? 
Shell :: linux rename all files in directory 
Shell :: install vagrant ubuntu 
Shell :: locate in specific directory 
Shell :: wget to particular directory 
Shell :: xampp apachae not starting 
Shell :: task manager ubuntu 
Shell :: access wsl files from windows 
Shell :: kubernetes get persistent volumes 
Shell :: Could not install packages due to an EnvironmentError: [WinError 5] Access is denied 
Shell :: compile electron app 
Shell :: how to create a folder in linux 
Shell :: remove file via command line 
Shell :: bash if file content equals 
Shell :: kali linux download 
Shell :: add ssh to github 
Shell :: sed from match to end of file 
Shell :: sudo pip3 install 
Shell :: load .bashrc 
Shell :: NGINX systemd service file 
Shell :: copy file from server to local 
Shell :: generate keystore file for android 
Shell :: how to push cloned repo 
Shell :: add co author git 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =