Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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

run redis in background ubuntu

 run redis in background ubuntu
 redis-server --daemonize yes
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 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 :: symfony Unable to write in the "logs" directory (/var/www/html/var/log). 
Shell :: Command to find os version of Webserver in nmap 
Shell :: install just linux 
Shell :: No such keg: /usr/local/Cellar/git 
Shell :: git buffer 
Shell :: composer reinstall all packages 
Shell :: git pull on branch 
Shell :: install qtpy 
Shell :: install kafkacat 
Shell :: git remote push 
Shell :: git bad object 
Shell :: gnome-sushi version 
Shell :: extract tar.gz linux command line 
Shell :: libracad ubuntu 
Shell :: how to move many folders linux 
Shell :: list all files in a directory and subdirectory linux 
Shell :: windows open port firewall cmd 
Shell :: git add removed files 
Shell :: read a file and count how many lines 
Shell :: list threads in process ubuntu 
Shell :: how to enable ssh on headless raspberry pi 
Shell :: copy files from s3 to ec2 vice versa 
Shell :: salir de vim 
Shell :: git stash apply previous 
Shell :: contain sql commands in dockerfile 
Shell :: how to open folder in files from terminal linux 
Shell :: aws cli to increase the volume size 
Shell :: how to create a username along with home directory in linux 
Shell :: how to create a github account 
Shell :: webpack/config/html 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =