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 :: shellpish 
Shell :: increase open file limit linux mac catalina mariadb 
Shell :: create new git branch and switch to it 
Shell :: ping redis server 
Shell :: yarn change version 
Shell :: powershell string contains 
Shell :: brew install 
Shell :: debian pinning packages 
Shell :: split large file 
Shell :: install balena etcher on manjaro linux 
Shell :: how to check maximum ram memory capacity support size in linux 
Shell :: linux list files in directory 
Shell :: cannot find mui lab module 
Shell :: install brew linux 
Shell :: git clone set directory 
Shell :: gitignore httaccess 
Shell :: git merge master to branch 
Shell :: how to update local repo when i make changes to github remote repo 
Shell :: check bluetooth radio status bash 
Shell :: remove all files starting with linux 
Shell :: linux add prefix to all files 
Shell :: git submodule example 
Shell :: Invalid base64-encoded string: number of data characters (221) cannot be 1 more than a multiple of 4 
Shell :: convert audio to mp3 with ffmpeg 
Shell :: open bash 
Shell :: git add command 
Shell :: install apt on ubuntu 
Shell :: babel json loader 
Shell :: how to start elasticsearch correctly 
Shell :: start tomcat 9 as a service windows 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =