Redis入門(介紹、搭建)——Windows、Centos環境

一.介紹git

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.github

(Redis是一個開放源代碼(BSD許可)的內存中數據結構存儲,用做數據庫,緩存和消息代理。它支持數據結構,例如字符串,哈希,列表,集合,帶範圍查詢的排序集合,位圖,超級日誌,帶有半徑查詢和流的地理空間索引。Redis具備內置的複製,Lua腳本,LRU驅逐,事務和不一樣級別的磁盤持久性,並經過Redis Sentinel和Redis Cluster自動分區提供了高可用性)redis

二.安裝數據庫

1.Centosvim

下載windows

執行命令: wget http://download.redis.io/releases/redis-5.0.7.tar.gz緩存

 

 解壓服務器

tar -xvzf redis-5.0.7.tar.gz數據結構

 

 執行命令:makeide

啓動服務

執行命令: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/

相關文章
相關標籤/搜索