redis-3.0.3安装測试
$ tar xzvf redis-3.0.3.tar.gz
$ cd redis-3.0.3
$ make //编译
编译完毕进行 $ make test 命令測试
得到例如以下错误信息:
cd src && make test
make[1]: Entering directory `/tmp/redis-3.0.1/src'
You need tcl 8.5 or newer in order to run the Redis test
make[1]: *** [test] Error 1
make[1]: Leaving directory `/tmp/redis-3.0.1/src'
make: *** [test] Error 2
Redis在make test有使用到tclsh对Redis进行測试,所以须要将tclsh安装好。
下载地址:http://www.tcl.tk/software/tcltk/download.html 版本号选择:tcl8.6.4-src.tar.gz
$ tar xzvf tcl8.6.4-src.tar.gz
$ cd tcl8.6.4/unix
//进行环境变量配置
$ ./configure --prefix=/home/zhouwei/tools/tcl8.6.4 --enable-64bit
/
$make //编译
$make install //安装
安装完毕之后须要将tclsh加入到PATH中。并使其生效
# vim /etc/profile
PATH=/home/zhouwei/tools/tcl8.6.4/bin:$PATH //能够在最前面的凝视后面加入
source /etc/profile
再次測试
$ make test 通过 ok
6、设置配置文件路径
mkdir -p /etc/redis
7、改动配置文件
vi /etc/redis/redis.conf
仅改动: daemonize yes
//默认情况下,redis不是在后台执行的,假设须要在后台执行,把该项的值更改为yes。
8、启动
redis-server /etc/redis/redis.conf
9、查看启动
ps -ef | grep redis
10、使用client
redis-cli
127.0.0.1:6379> set name test
OK
127.0.0.1:6379> get name
"test"
>set name 菩提小师傅的博客
OK
127.0.0.1:6379> get name
"\xc6\xd0\xcc\xe1\xd0\xa1\xca\xa6\xb8\xb5\xb5\xc4\xb2\xa9\xbf\xcd"
redis-3.0.3安装測试的更多相关文章
- Redis 3.0 Windows 安装步骤
Redis 3.0 Windows 安装步骤 ----来自 https://www.aliyun.com/jiaocheng/872572.html 发布时间:2018-04-10 来源:网络 上传者 ...
- Redis 3.0 编译安装
Redis 3.0 编译安装 http://www.xuchanggang.cn/archives/991.html
- redis 5.0.5 安装
redis 5.0.5 安装脚本: #!/bin/bash cd /data/src/ test -e tcl8.6.9-src.tar.gz || wget http://downloads.sou ...
- Android +NDK+eclipse+opengl ES2.0 开启深度測试
參考:https://www.opengl.org/discussion_boards/showthread.php/172736-OpenGL-ES-Depth-Buffer-Problem 环境: ...
- Redis 5.0.9 安装
目录 系统环境 系统版本 内核版本 安装步骤 安装 gcc 依赖 下载 Redis 解压 Redis 切换到 redis 解压目录下,执行编译 指定目录安装 启动 Redis 服务 最后 系统环境 系 ...
- Redis 4.0.2安装与卸载
安装 使用root用户安装: 1.wget http://download.redis.io/releases/redis-4.0.2.tar.gz 2.tar -zxvf redis-4.0.2.t ...
- MongoDB下载安装測试及使用
1.下载安装 64位:mongodb-win32-x86_64-enterprise-windows-64-2.6.4-signed.msi 余数为1的 db.collection.find({ &q ...
- Loopback測试软件AX1用户手冊 V3.1
点击:AX1 软件下载 1. 什么是AX1 AX1程序是基于windows的PC程序,用来评估 iinChip™的性能,也即是wiznet的硬件TCP/IP芯片. AX1通过网络与iinChip™评估 ...
- Redis 3.0.0 集群部署
简述: 1.0.1:redis cluster的现状 目前redis支持的cluster特性 1):节点自动发现 2):slave->master 选举,集群容错 3):Hot reshardi ...
随机推荐
- Centos7中yum安装jdk及配置环境变量
系统版本 [root@localhost ~]# cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core) #安装之前先查看一下有无系统 ...
- Oracle 11G RAC 修改IP
实验环境 类别 修改前 修改后 PUBLIC 172.18.4.182 rac1 192.168.56.10 rac1 172.18.4.184 rac2 192.168.56.20 rac2 PRI ...
- redhat 7.x 、redhat 6.x查看硬盘UUID方法
1.查看磁盘分区UUID: [root@rac01 ~]# blkid /dev/sdb1: UUID="6bba92c4-0b25-4cc4-9442-ca87c563720a" ...
- jQuery的on绑定click和直接绑定click区别
状况之外 在之前的公司并没有遇到这个问题,也就没有深究.直到自己换了现在的公司,刚来第二天就开始写别人写到一半的项目,很无奈,不是原生就是jquery,由于项目急,已经来不及切换框架重新布局,只能继续 ...
- 条款19:设计class犹如设计TYPE(Treat class design as type design)
NOTE: 1.Class 的设计就是type的设计.在定义一个新type之前,请确认自己已经考虑过本条款所有主题(具体参考effective c++).
- 【HIHOCODER 1526】 序列的值(二进制DP)
时间限制:20000ms 单点时限:1000ms 内存限制:256MB 描述 给定一个长度为 n 的序列 a[1..n],定义函数 f(b[1..m]) 的值为在 [0,m-1] 内满足如下条件的 i ...
- luogu4135 作诗
看这里 #include <iostream> #include <cstring> #include <cstdio> #include <cmath> ...
- pycharm配置git--图文教程
1. 下载git客户端 2. File->Default Setting-> Version Control->Git 3. Path to Git exec ...
- Leetcode 230.二叉搜索树第k小的数
二叉搜索树第k小的数 给定一个二叉搜索树,编写一个函数 kthSmallest 来查找其中第 k 个最小的元素. 说明:你可以假设 k 总是有效的,1 ≤ k ≤ 二叉搜索树元素个数. 示例 1: 输 ...
- 【RMAN】RMAN跨版本恢复(下)--大版本异机恢复
[RMAN]RMAN跨版本恢复(下)--大版本异机恢复 BLOG文档结构图 ORACLE_SID=ORA1024G 关于10g的跨小版本恢复参考:http://blog.chinaunix.net/u ...