1) First of all go to redis.io site
2) and you see there check the download page
3) Open the terminal
4) apt-cache policy redis-server
you able to see the version table for your operating system version display
5) sudo apt-get install redis-server
Don't getting this way install. Because redis server installing, but redis server install the your Ubuntu operating system version.
6) Easiest way
Go to redis.io site and click on the download link
Further you will go scroll on the more down you will see the installation
almost same way mac
7) First of all you are enter the update command. All the going to repo was update.
sudo apt-get update
8) sudo apt-get install build-essential tcl
9) mkdir redis
10) wget http://download.redis.io/releases/redis-4.0.0.tar.gz
11) Now give the tar command
unzip tar file.
tar xzf redis-4.0.0.tar.gz
12) cd redis-4.0.0
13) make
- making on redis binary
if once finish you can see the "make test" command
14) src/redis-server
- start the redis server
15) src/redis-cli
- start the redis client
set name vadivel
Ok
get name
"vadivel"
16) sudo make install
- whenever give the redis command on enter the any dir
sudo apt-get install redis-server
E: Unable to locate package redis-server
...? Linux ubuntu-xenial 4.4.0-112-genericE:
in your line?sudo apt-get update
to fixE: Unable to locate package redis-server