Redis 学习笔记 2.1 Linux 下 redis 安装

1 redis 在 Linux 下的安装

https://redis.io/download

Download, extract and compile Redis with:

$ wget http://download.redis.io/releases/redis-5.0.3.tar.gz
$ tar xzf redis-5.0.3.tar.gz
$ cd redis-5.0.3
$ make

到目前为止都比较顺利,但我们还需要安装它。

ubuntu@VM-0-6-ubuntu:~/tool/redis-5.0.3/src$ sudo make install

Hint: It's a good idea to run 'make test' ;)

    INSTALL install
install: cannot create regular file '/usr/local/bin/redis-server': Permission denied
Makefile:306: recipe for target 'install' failed
make: *** [install] Error 1

ubuntu@VM-0-6-ubuntu:~/tool/redis-5.0.3/src$ make test
You need tcl 8.5 or newer in order to run the Redis test
Makefile:262: recipe for target 'test' failed
make: *** [test] Error 1

安装 tcl 8.5

官方安装方式,https://pkgs.org/download/tcl

Update the package index:
# sudo apt-get update
Install tcl deb package:
# sudo apt-get install tcl

源码安装方式

wget http://downloads.sourceforge.net/tcl/tcl8.6.1-src.tar.gz           //直接下载 
sudo tar xzvf tcl8.6.1-src.tar.gz  -C /usr/local/  
cd  /usr/local/tcl8.6.1/unix/  
sudo ./configure  
sudo make  
sudo make install   

完成 redis 剩余安装

$ make test
$ sudo make install

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值