Ubuntu install Redis

本文介绍如何从源码安装Redis,并进行基本的测试。首先通过wget下载Redis稳定版压缩包,解压并进入目录运行make命令完成编译。之后在src目录下继续运行make test进行测试,如果缺少依赖还需要额外安装TCL 8.5。最后将Redis服务部署到本地并调整配置文件实现后台运行。
wget http://download.redis.io/redis-stable.tar.gz
tar xvzf redis-stable.tar.gz
cd redis-stable
make

cd src && make test
You need tcl 8.5 or newer in order to run the Redis test

sudo apt-get install tcl8.5


 cp redis-server redis-cli /usr/local/redis

./redis-server

设置后台启动 将redis.conf daemonize no 改为yes

./redis-server redis.config

ps -A | grep redis

http://redis.io/topics/quickstart

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值