本博客 貓叔的博客,轉載請申明出處
本系列整理出於《Redis深度歷險:核心原理與應用實踐》一書,摘抄整理讀後感與總結。git
說說Redis能作什麼呢?程序員
Redis的安裝主要有如下三種方式:github
# 拉取 Redis 鏡像 > docker pull redis # 運行 Redis 容器 > docker run --name myredis -d -p6379:6379 redis # 執行容器中的 redis-cli 能夠直接使用命令行操做 redis > docker exec -it myredis redis-cli
# 下載源碼 > git clone --branch 2.8 --depth 1 git@github.com:antirez/redis.git > cd redis # 編譯 > make > cd src # 運行服務器,daemonize表示在後臺運行 > ./redis-server --daemonize yes # 運行命令行 > ./redis-cli
# mac > brew install redis # ubuntu > apt-get install redis # redhat > yum install redis # 運行客戶端 > redis-cli
現架構設計(碼農)兼創業技術顧問,不羈平庸,熱愛開源,雜談程序人生與不按期乾貨。