the installation of REDIS in ubuntu18.04
We use redis 4.x to install it.
first we get redis4.x from the website:
https://redis.io/download
Then we uncompress the file named “redis-4.0.14.tar.gz”.
Before we install redis, we sure that our linux enviroment has gcc. If there is not gcc, we can install it by type this:
sudo apt install gcc
Next we use the command:
make
or
make MALLOC=libc
when it successes, we exec the command:
make PREFIX=/usr/local/redis install
It means that we put the bin of redis in this directory.
Launch redis
when we have done those above, we can enter
redis-server
to launch it.
if you can see sth like this picture , you success.
by that we start up the server of redis. Now we launch the client.
redis-cli
configure the redis
Duplicate the file 'redis.conf" in the directory you uncompress and move it to the /usr/local/redis/.
Vim the redis.conf
redis-cli -a password
it’s OK.