redis 3.0源码安装详细步骤说明

到官网下载,然后在服务器上执行

tar zxvf redis-3.0.4.tar.gz

cd redis-3.0.4
make

cd  src
 ./redis-server启动redis

make一下即可完成安装。通过redis-cli 进入执行ping显示pong就说明安装成功了。

不过redis推荐下面这些深层次的安装配置。

mak test
注意,执行make完成之后redis会提示
Hint: It's a good idea to run 'make test' ;)

执行一下即可。
cd src切换到redis下面的src目录,执行make test
会提示
[root@ruoshui-web src]# make test
You need tcl 8.5 or newer in order to run the Redis test

yum install tcl 即可

[root@ruoshui-web src]# make distclean 清理安装过程系统不再相关的包。

This will clean: jemalloc, lua, hiredis, linenoise

为了把redis的命令加入到系统的环境里面执行

make install
这样就可以在系统的任何地方执行redis命令了。

In order to install Redis binaries into /usr/local/bin just use:

 切换到utils目录
cd /root/redis-3.0.4/utils
执行./install_server.sh
会提示安装redis端口,配置文件,log目录等等,选择默认的,一路enter就行了

The script will ask you a few questions and will setup everything you need
to run Redis properly as a background daemon that will start again on
system reboots

上面的说的很详细,至于功能吗will start again on!以后用的时候就方便了。

转载于:https://my.oschina.net/luoyedao/blog/517382

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值