Redis入门(介绍、搭建)——Windows、Centos环境
一.介绍
Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker. It supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs, geospatial indexes with radius queries and streams. Redis has built-in replication, Lua scripting, LRU eviction, transactions and different levels of on-disk persistence, and provides high availability via Redis Sentinel and automatic partitioning with Redis Cluster.
(Redis是一个开放源代码(BSD许可)的内存中数据结构存储,用作数据库,缓存和消息代理。它支持数据结构,例如字符串,哈希,列表,集合,带范围查询的排序集合,位图,超级日志,带有半径查询和流的地理空间索引。Redis具有内置的复制,Lua脚本,LRU驱逐,事务和不同级别的磁盘持久性,并通过Redis Sentinel和Redis Cluster自动分区提供了高可用性)
二.安装
1.Centos
下载
执行命令: wget http://download.redis.io/releases/redis-5.0.7.tar.gz
解压
tar -xvzf redis-5.0.7.tar.gz
执行命令:make
启动服务
执行命令:src/redis-server ./redis.conf
二.Windows
下载地址:https://github.com/microsoftarchive/redis/releases
启动
执行命令:redis-server.exe redis.windows.conf
问题解决:
wget unable to resolve host address
摘要:
wget:无法解析主机地址。这就能看出是DNS解析的问题。
执行命令:vim /etc/resolv.conf
修改内容为下
nameserver 8.8.8.8 #google域名服务器
nameserver 8.8.4.4 #google域名服务器
参考文档:https://redis.io/
最新文章
- php数组操作集锦- 掌握了数组操作, 也就掌握了php
- css border属性做小三角标
- sokite
- BZOJ 2286: [Sdoi2011]消耗战
- spring mvc 4数据校验 validator
- HttpClient与APS.NET Web API:请求内容的压缩与解压
- 前端框架react研究
- yii2购物车实现
- linux kernel 0.11 head
- 欧几里德算法gcd及其拓展终极解释
- xml drawable
- JavaScript适配器模式
- JavaScript组成(三个组成部分)
- pyhton 监听文件输入实例
- arcgis point 随着 line类型的轨迹运动的动画
- angularJs - cynthia娆墨旧染-响应式文章发布系统
- mysql数据库的备份和恢复
- rimraf node_modules 快速删除
- SQLite保存报错sqlite.SQLiteConstraintException: UNIQUE constraint failed: ······ code 1555
- 利用yum搭建lamp环境并进一步创建博客
热门文章
- 浏览器警告Failed to decode downloaded font和OTS parsing error: Failed to convert *** font to ***
- 查看jvm内存信息
- 微软 的 github的 weiapi dotnet的 也有了 作为菜 只有欣赏的额
- 团队第一次作业(软工C#造梦厂)
- JSON Web Token 是什么?
- Day6-Python3基础-面向对象编程
- tcpdump用法说明
- 在 Ubuntu 上安装 K8S教程
- OpenResty学习指南(一)
- Gradle | Gradle项目无法导入依赖包