Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

install redis ubuntu

sudo apt update
sudo apt install redis-server

sudo systemctl restart redis.service

sudo systemctl status redis

redis-cli
Comment

redis ubuntu install

# This explanation shows how to install the latest redis version on ubuntu

# add redis repository - as ubuntu normal repository holds an old version of redis
sudo add-apt-repository ppa:redislabs/redis
sudo apt-get update

# install redis
sudo apt-get install redis-server

# set redis to auto-strat on boot
sudo systemctl enable redis-server
sudo systemctl daemon-reload
Comment

setup redis ubuntu

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

redis install ubuntu

$ wget https://download.redis.io/releases/redis-6.2.3.tar.gz
$ tar xzf redis-6.2.3.tar.gz
$ cd redis-6.2.3
$ make
Comment

redis ubuntu install

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

PREVIOUS NEXT
Code Example
Shell :: update packages ubuntu 
Shell :: Job for mongod.service failed because the control process exited with error code. See "systemctl status mongod.service" and "journalctl -xeu mongod.service" for details. 
Shell :: pip install flask_restful 
Shell :: git branch order by date 
Shell :: yarn install 
Shell :: how to install beautifulsoup4 
Shell :: conda install git 
Shell :: Install xlrd = 1.0.0 for Excel support Use pip or conda to install xlrd 
Shell :: check debian version 
Shell :: restart crontab 
Shell :: install docker compose homebrew 
Shell :: ubuntu install okular 
Shell :: curl debian 10 
Shell :: conda install numpy 
Shell :: cannot be loaded because running scripts is disabled on this system. 
Shell :: ubuntu bluetooth not turning on 
Shell :: uninstall expo cli 
Shell :: Although GNOME Shell integration extension is running, native host connector is not detected 
Shell :: avro for ubuntu 
Shell :: yarn start --reset-cache expo 
Shell :: install chrome apt-get 
Shell :: git asking for password every time 
Shell :: vscode give music permissions 
Shell :: linux memory cache clear 
Shell :: install hardhat 
Shell :: git credential cache 
Shell :: libgthread-2.0.so.0: cannot open shared object file: No such file or directory 
Shell :: fatal error: portaudio.h: No such file or directory 
Shell :: git update remote origin 
Shell :: pip install scraperapiclient 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =