快速安装redis
2016-05-28 08:52
537 查看
# wget http://download.redis.io/releases/redis-3.2.0.tar.gz
# tar xzf redis-3.2.0.tar.gz -->解压缩源码
# cd redis-3.2.0
# make -->编译redis
# cd src && make all
[root@ls1 redis-3.2.0]# cd src && make all
Hint: It's a good idea to run 'make test' ;)
[root@ls1 src]# make test
You need tcl 8.5 or newer in order to run the Redis test
make: *** [test] Error 1
[root@ls1 src]# orderorderYou need tcl 8.5 or newer in order to run the Redis test -->报错
--》报错解决
make test 后 提示
\o/ All tests passed without errors!
Cleanup: may take some time... OK
就可以开始安装了
#cd src && make install
[root@ls1 redis-3.2.0]# redis-server redis.conf -->启动redis 服务
12233:M 28 May 00:50:40.765 * The server is now ready to accept connections on port 6379
[root@ls1 src]# redis-cli -->测试ok
127.0.0.1:6379> set foo bar
OK
127.0.0.1:6379> get foo
"bar"
127.0.0.1:6379>
# tar xzf redis-3.2.0.tar.gz -->解压缩源码
# cd redis-3.2.0
# make -->编译redis
# cd src && make all
[root@ls1 redis-3.2.0]# cd src && make all
Hint: It's a good idea to run 'make test' ;)
[root@ls1 src]# make test
You need tcl 8.5 or newer in order to run the Redis test
make: *** [test] Error 1
[root@ls1 src]# orderorderYou need tcl 8.5 or newer in order to run the Redis test -->报错
--》报错解决
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
make test 后 提示
\o/ All tests passed without errors!
Cleanup: may take some time... OK
就可以开始安装了
#cd src && make install
[root@ls1 redis-3.2.0]# redis-server redis.conf -->启动redis 服务
12233:M 28 May 00:50:40.765 * The server is now ready to accept connections on port 6379
[root@ls1 src]# redis-cli -->测试ok
127.0.0.1:6379> set foo bar
OK
127.0.0.1:6379> get foo
"bar"
127.0.0.1:6379>
相关文章推荐
- Linux Redis安装及使用
- Linux Redis安装及使用
- windows下Redis的安装使用
- 基于Redis Sentinel的Redis集群(主从&Sharding)高可用方案
- redis.clients.jedis.exceptions.JedisDataException: MOVED 13102 127.0.0.1
- 在mac上通过Homebrew安装redis
- Windows下Redis Sentinel部署(包含Redis Replication)
- redis原理
- redis持久化RDB和AOF
- 基于Websocket的实时数据看板
- redis之(十三)redis的三种启动方式
- 使用Elasticsearch、Logstash、Kibana与Redis(作为缓冲区)对Nginx日志进行收集(转)
- 使用elk+redis搭建nginx日志分析平台(转)
- redis的学习资源
- Redis
- Redis学习手册(Key操作命令)
- redis简单应用
- 为写入性能优化:Redis
- redis+twemproxy自动分片(一致性hash)
- Redis-2.8.19 安装使用