一.介紹 Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker. It supports data structures ...
一.介紹
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/