“Redis Instale o Ubuntu 20.04” Respostas de código

Instale o Redis Ubuntu

sudo apt update
sudo apt install redis-server

sudo systemctl restart redis.service

sudo systemctl status redis

redis-cli
Auuntoo

Redis Ubuntu Instale

wget http://download.redis.io/redis-stable.tar.gz
tar xvzf redis-stable.tar.gz
cd redis-stable
make
Clean Capybara

Instale a GUI Redis no Ubuntu 20.04

sudo snap install redis-desktop-manager
Relieved Rook

Redis Instale o 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
  ```
 
calyCoder

Respostas semelhantes a “Redis Instale o Ubuntu 20.04”

Perguntas semelhantes a “Redis Instale o Ubuntu 20.04”

Mais respostas relacionadas para “Redis Instale o Ubuntu 20.04” em Shell/Bash

Procure respostas de código populares por idioma

Procurar outros idiomas de código