CentOS 6.5下Redis安装记录

执行安装命令

make install

提示:

[plain]  view plain  copy
  1. cd src && make install  
  2. make[1]: Entering directory `/opt/redis-2.8.13/src'  
  3.   
  4. Hint: To run 'make test' is a good idea ;)  
  5.   
  6.     INSTALL install  
  7.     INSTALL install  
  8.     INSTALL install  
  9.     INSTALL install  
  10.     INSTALL install  
  11. make[1]: Leaving directory `/opt/redis-2.8.13/src'  
 根据提示,执行:cd src && make install
提示:

[plain]  view plain  copy
  1. Hint: To run 'make test' is a good idea ;)  
  2.   
  3.     INSTALL install  
  4.     INSTALL install  
  5.     INSTALL install  
  6.     INSTALL install  
  7.     INSTALL instal  
按照提示执行:make test

提示:

[plain]  view plain  copy
  1. You need tcl 8.5 or newer in order to run the Redis test  
  2. make: *** [test] Error 1  
解决方法参考:http://www.linuxfromscratch.org/blfs/view/cvs/general/tcl.html

也可以使用:yum install tcl 命令安装

后来经搜索发现不需要安装,直接到src目录下执行 ./redis-server 就可以


可以使用类似 ./redis-server /path/to/redis.conf 命令指定配置文件;

Server started, Redis version 2.8.13
The server is now ready to accept connections on port 6379

服务启动成功,服务已经在6379端口上监听连接请求。

你可以使用内置的客户端连接Redis:http://www.redis.cn/download.html

[plain]  view plain  copy
  1. $ src/redis-cli  
  2. redis> set foo bar  
  3. OK  
  4. redis> get foo  
  5. "bar"  

注意事项:

要远程访问它,还需要开启防火墙端口,
要保持服务的运行可以直接关闭终端窗口,但不要使用Ctrl+C,这样会使程序退出。


原文来自:http://blog.csdn.net/testcs_dn/article/details/39756477
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值