前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Redis 学习笔记 2.1 Linux 下 redis 安装

Redis 学习笔记 2.1 Linux 下 redis 安装

作者头像
twowinter
发布2020-04-17 11:44:52
1.1K0
发布2020-04-17 11:44:52
举报
文章被收录于专栏:twowintertwowinter

1 redis 在 Linux 下的安装

https://redis.io/download

Download, extract and compile Redis with:

代码语言:javascript
复制
$ 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

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

代码语言:javascript
复制
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

代码语言:javascript
复制
Update the package index:
# sudo apt-get update
Install tcl deb package:
# sudo apt-get install tcl

源码安装方式

代码语言:javascript
复制
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 剩余安装

代码语言:javascript
复制
$ make test
$ sudo make install
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 1 redis 在 Linux 下的安装
    • 安装 tcl 8.5
      • 完成 redis 剩余安装
      相关产品与服务
      云数据库 Redis
      腾讯云数据库 Redis(TencentDB for Redis)是腾讯云打造的兼容 Redis 协议的缓存和存储服务。丰富的数据结构能帮助您完成不同类型的业务场景开发。支持主从热备,提供自动容灾切换、数据备份、故障迁移、实例监控、在线扩容、数据回档等全套的数据库服务。
      领券
      问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档