redis-3.0.3安装测试
2015-08-17 14:05
621 查看
$ 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、使用客户端
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"
$ 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、使用客户端
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 获取字节码 反序列化
- 分布式中使用Redis实现Session共享(二)
- Redis学习——链表实现
- [Redis]Redis的五种数据类型与键值/服务器相关命令
- Redis双链表实现安全队列
- redis简介
- Redis学习笔记(2)
- redis:hash数据类型与操作
- 节约内存:Instagram的Redis实践
- 【php】基于Redis的js、css缓存类
- Mac OS X安装redis-php扩展
- Redis命令
- 为什么使用 Redis及其产品定位
- redis配置文件redis.conf详细说明
- redis sort命令用法
- Redis同步(主从复制)
- Redis学习——链表源码分析
- redis与mysql数据同步
- ubuntu安装redis
- redis