the installation of redis

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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值