Redis 5.0.5 Install manual

单实例安装

1.Download, extract and compile Redis with

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。
$ wget http://download.redis.io/releases/redis-5.0.5.tar.gz
$ tar xzf redis-5.0.5.tar.gz
$ cd redis-5.0.5
$ make MALLOC=libc

2.test redis

$ yum install tcl
$ make test

Redis 5.0.5 Install manual Nosql 第1张

3.run redis

The binaries that are now compiled are available in the src directory. Run Redis with:

$ src/redis-server

Redis 5.0.5 Install manual Nosql 第2张
You can interact with Redis using the built-in client:

$ src/redis-cli
redis> set foo bar
OK
redis> get foo
"bar"

4.performance test

use redis-benchmark tools test redis performance .

#实例同时执行 1000 个请求来检测性能
./redis-benchmark -n 1000 -q

Redis 5.0.5 Install manual Nosql 第3张

#测试存取大小为100字节的数据包的性能
redis-benchmark -h 127.0.0.1 -p 6379 -q -d 100

Redis 5.0.5 Install manual Nosql 第4张

#100个并发连接,100000个请求,检测host为localhost 端口为6379的redis服务器性能 
redis-benchmark -h 127.0.0.1 -p 6379 -c 100 -n 100000 

Redis 5.0.5 Install manual Nosql 第5张

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄