linux通过安装包安装redis
来源:互联网 发布:云数据分析 编辑:程序博客网 时间:2024/06/06 21:52
1.安装包的准备
官网地址:https://redis.io/download
以下是我下载的安装包:
也可以直接用命令执行下载:
语法:wget [需要下载的安装包的URL]例子:(会下载到当前路径)# wget http://download.redis.io/releases/redis-4.0.1.tar.gz
[root@iz2ze6u0apce8jpapxeubpz tar.gz]# wget http://download.redis.io/releases/redis-4.0.1.tar.gz--2017-08-03 12:48:00-- http://download.redis.io/releases/redis-4.0.1.tar.gzResolving download.redis.io (download.redis.io)... 109.74.203.151Connecting to download.redis.io (download.redis.io)|109.74.203.151|:80... connected.HTTP request sent, awaiting response... 200 OKLength: 1711660 (1.6M) [application/x-gzip]Saving to: 鈥榬edis-4.0.1.tar.gz.1鈥100%[===================================================================================================>] 1,711,660 737KB/s in 2.3s 2017-08-03 12:48:03 (737 KB/s) - 鈥榬edis-4.0.1.tar.gz.1鈥saved [1711660/1711660][root@iz2ze6u0apce8jpapxeubpz tar.gz]#
2、解压并安装
# tar -zxvf redis-4.0.1.tar.gz
然后把解压的目录放到指定的目录下
# mv redis-4.0.1 ../
语法说明:
# mv [源目录] [目标目录]
然后切换到该目录下:
# cd ../redis-4.0.1
进行编译:
# make
Hint: It's a good idea to run 'make test' ;)make[1]: Leaving directory `/usr/local/redis-4.0.1/src'
[root@iz2ze6u0apce8jpapxeubpz redis-4.0.1]# make testcd src && make testmake[1]: Entering directory `/usr/local/redis-4.0.1/src'You need tcl 8.5 or newer in order to run the Redis testmake[1]: *** [test] Error 1make[1]: Leaving directory `/usr/local/redis-4.0.1/src'make: *** [test] Error 2[root@iz2ze6u0apce8jpapxeubpz redis-4.0.1]#
进入src下执行:
bash-4.2$ cd srcbash-4.2$ make Hint: It's a good idea to run 'make test' ;)bash-4.2$ make testYou need tcl 8.5 or newer in order to run the Redis testmake: *** [test] Error 1bash-4.2$
解决方式
安装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
以下截图是另外一种方式:截图来源忘了
阅读全文
0 0
- linux通过安装包安装redis
- linux 通过包安装jdk
- linux redis安装源码包安装
- redis安装包-linux v3.0.5免费版
- linux通过源码包安装mysql5.6
- linux通过tar.gz包安装tomcat
- 通过源码安装Redis
- redis windows安装包
- Linux环境下通过shell脚本一键安装redis
- 通过Xshell连接linux——安装Redis
- redis linux 二进制tar包安装,开机启动
- centos7 通过yum安装redis
- 通过docker安装myql、redis
- redis的tar包安装
- linux下通过源代码包编译安装程序
- linux下通过源码包安装MySql5.5
- linux下通过压缩包安装软件(转载)
- Linux完全卸载通过rpm包安装的MySQL数据库
- 原来你是这样的阿里云
- 在Mac上安装Wine
- (超完整)Linux(debian9)服务器配置tensorflow环境:nvidia驱动、CUDA、cudnn、anaconda
- Salesforce中为服务器分页Pagination编写测试类-Test Class For ApexPages.StandardSetController, hasNext, next etc.
- 自定义CMP函数
- linux通过安装包安装redis
- PAT 5-2
- mysql join详解
- 区间贪心
- Privacy Policy
- shell脚本
- LCD 驱动程序设计
- C++指针与地址详解
- jQuery+Ajax+Bootstrap学习干货(二)