Giter VIP home page Giter VIP logo

nginx-http-redis's Introduction

nginx 使用 redis 缓存

第一次访问之后会使用 redis 缓存,可以在商品详情页更新商品刷新商品详情页和列表页的缓存。

安装

Mac 环境下

安装 Docker 环境
brew update
brew install caskroom/cask/brew-cask            # 让 brew 能安装 Virtualbox 等 GUI 软件
brew tap caskroom/versions                      # 4.3 版本的 virtualbox 配合 docker 更稳定一些,而不是 5.0 最新版
brew cask install virtualbox43691406

brew install docker-compose
brew install docker-machine                     # 使用 docker-machine 来管理 docker 容器
docker-machine create --driver virtualbox dev   # 创建虚拟机 dev

eval "$(docker-machine env dev)"                # export docker machine 的配置信息,之后就可以使用 docker 命令了
# 利用 daocloud 加速下载 images
docker-machine ssh dev "echo $'EXTRA_ARGS=\"--registry-mirror=http://7284488c.m.daocloud.io\"' | sudo tee -a /var/lib/boot2docker/profile && sudo /etc/init.d/docker restart"
启动服务
docker-compose build
docker-compose up                               # 启动服务

nginx-http-redis's People

Contributors

saberma avatar

Watchers

向阳胜 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.