虚拟化—Docker解决方案
What is Docker?
Docker is an open-source project to easily create lightweight, portable, self-sufficient containers from any application. The same container that a developer builds and tests on a laptop can run at scale, in production, on VMs, bare metal, OpenStack clusters, public clouds and more.
docker是一个轻量级的运行时容器,它利用Linux的LXC、AUFU、Go语言、cgroup实现了资源的独立,可以很轻松的实现文件、资源、网络等隔离,其最终的目标是实现类似PaaS平台的应用隔离。详细介绍请看官网或google。
使用Docker的前提条件:linux kernel version >=3.8
下面使用Docker建立 LNMP的运行环境:
http://failshell.io/docker/building-a-centos-docker-base-image/
http://failshell.io/docker/running-nginx-inside-a-docker-container/
http://hotcashew.com/2013/07/lemp-stack-in-a-docker-io-container/