大佬教程收集整理的这篇文章主要介绍了centos上面安装redis,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
centos上面安装redis
redis简介(摘自官网http://redis.io/topics/introduction)(http://try.redis.io/):
Redis is an open source (BSD licensed),in-memorydata structure store,used as database,cache and message broker. It supports data structures such asstringshasheslistssetssorted setswith range queries,bitmapshyperloglogsandgeospatial indexeswith radius queries. Redis has built-inreplicationLua scriptingLRU evictiontransactionsand different levels ofon-disk persistenceRedis Sentineland automatic partitioning withRedis Cluster.
Redis是一个开放源码的,内存存储的,可以用于当做数据库、缓存和消息代理。它支持的数据结构有string,hashs,lists,sets,有序的sets(支持范围查找),bitmaps,with radius queries。Redis已经具有复制,Lua脚本,LRU算法,事务和不同级别的磁盘持久化,另外她通过Redis Sentinel可以支持高可用,并且通过Redis Cluster支持自动分片。
安装步骤: 1.本机下载http://download.redis.io/releases/redis-3.2.0.tar.gz 2.通过rz上传到centos机器上 3.进行解压tar -zxvfredis-3.2.0.tar.gz 4.cdredis-3.2.0 中,初学者重点看下README.md(里面有一些基本信息比如怎么启动redis serverf) 5.make 6.make install 简单配置和使用: 使用了README.md中介绍的utils目录下的install_server.sh; 使用src中的redis-server启动,命令是:./redis-server [redis.conf] 使用src中的redis-cli可以连接默认的实例(即6379的实例),如果连接指定机器的实例,使用的命令是:redis-cli -h ip -p port; (有一个需要注意的地方,如果不是本机需要将对应机器的端口开放;在一个机器上设置主从时,slave 可以设置slaveof 本机IP和端口即可,但是如果用本机的公网IP,需要将端口设置为可访问。) 参考: http://www.cnblogs.com/zhuhongbao/archive/2013/06/04/3117997.html
以上是大佬教程为你收集整理的centos上面安装redis全部内容,希望文章能够帮你解决centos上面安装redis所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。