10 2016 档案

摘要:1.首先介绍一下指令和相关配置文件 启动指令:service iptables start 重启指令:service iptables restart 关闭指令:service iptables stop 然后是相关配置:/etc/sysconfig/iptables 如何操作该配置呢? vim / 阅读全文
posted @ 2016-10-28 15:14 bethal 阅读(339) 评论(0) 推荐(0)
摘要:前言:前面的部分一直都是单机跑docker,但实际生产环境不可能只用一台来跑。肯定会用到多台,因为他们都是内部私有ip,那么多台主机之间的容器如何通信?这个是个很头疼的问题!目前主流几种方法如下: 1、使用路由机制打通网络 2、使用Open vSwitch(OVS)打通网络 3、使用flannel来 阅读全文
posted @ 2016-10-18 15:33 bethal 阅读(1649) 评论(0) 推荐(0)
摘要:一、索引基础: MongoDB的索引几乎与传统的关系型数据库一模一样,这其中也包括一些基本的优化技巧。下面是创建索引的命令: > db.test.ensureIndex({"username":1}) 可以通过下面的名称查看索引是否已经成功建立: > db.test.getIndexes() 删除索 阅读全文
posted @ 2016-10-18 14:27 bethal 阅读(171) 评论(0) 推荐(0)
摘要:到目前我们介绍了一些Docker的基础概念, 知道了如何使用Docker的image, 也知道了如何在多个container间通过网络通讯. 在这章里我们将介绍如何在docker的container内管理数据以及如何在不同的container间共享数据。 我们将介绍两种主要的在docker中管理数据 阅读全文
posted @ 2016-10-13 14:12 bethal 阅读(527) 评论(0) 推荐(0)
摘要:备份 导出数据库所有表结构 ? 1 mysqldump -uroot -ppassword -d dbname > db.sql ? 1 mysqldump -uroot -ppassword -d dbname > db.sql ? 1 mysqldump -uroot -ppassword -d 阅读全文
posted @ 2016-10-13 11:09 bethal 阅读(1499) 评论(0) 推荐(0)
摘要:Find and run the whalesay image People all over the world create Docker images. You can find these images by browsing the Docker Hub. In this next sec 阅读全文
posted @ 2016-10-12 17:03 bethal 阅读(316) 评论(0) 推荐(0)
摘要:Learn about images & containers Docker Engine provides the core Docker technology that enables images and containers. As the last step in your install 阅读全文
posted @ 2016-10-12 17:02 bethal 阅读(214) 评论(0) 推荐(0)
摘要:Ubuntu Docker is supported on these Ubuntu operating systems: Ubuntu Xenial 16.04 (LTS) Ubuntu Trusty 14.04 (LTS) Ubuntu Precise 12.04 (LTS) This page 阅读全文
posted @ 2016-10-12 17:01 bethal 阅读(523) 评论(0) 推荐(0)
摘要:CentOS Docker runs on CentOS 7.X. An installation on other binary compatible EL7 distributions such as Scientific Linux might succeed, but Docker does 阅读全文
posted @ 2016-10-12 17:00 bethal 阅读(1643) 评论(0) 推荐(0)
摘要:本文用图文并茂的方式介绍了容器、镜像的区别和Docker每个命令后面的技术细节,能够很好的帮助读者深入理解Docker。 这篇文章希望能够帮助读者深入理解Docker的命令,还有容器(container)和镜像(image)之间的区别,并深入探讨容器和运行中的容器之间的区别。 当我对Docker技术 阅读全文
posted @ 2016-10-10 11:08 bethal 阅读(2673) 评论(2) 推荐(3)
摘要:(一) 查看系统的版本和内核: 因为docker要求服务CentOS6以上,kernel 版本必须2.6.32-431或更高 要将Docker安装到CentOS上,首先启用EPEL软件库,然后使用yum命令: 将Docker安装到CentOS上后,你需要将自己添加到docker群组,那样才能以非ro 阅读全文
posted @ 2016-10-10 11:06 bethal 阅读(738) 评论(0) 推荐(0)