Docker 容器的使用 1、容器间的链接: 运行一个容器,给它一个名称,例如: docker?run?-d?-p?0.0.0.0:4455:22?-p?0.0.0.0:8080:80?--name?one?centos6-ssh 再运行另一个容器 docker?run?-d?-p?0.0...
分类:
其他好文 时间:
2014-07-22 08:37:34
阅读次数:
300
在 CentOS 中的修改方法如下: 1. root登陆,免得老是sudo 2. 打开/etc/inittab 文件 #vim /etc/inittab 3. 在默认的 run level 设置中,可以看到第一行书写如: id:5:initdefault:(默认的 run level 等级为 5:即...
分类:
其他好文 时间:
2014-07-20 08:35:50
阅读次数:
247
Mysql 查询执行过程 大致分为4个阶段吧:
语法分析(sql_parse.cc)
>>sql_resolver.cc # JOIN.prepare
生成逻辑查询plan(sql_optimizer.cc)
>># JOIN.optimize
生成物理查询plan(sql_planner.cc)
run the explain plan(sql_executor.cc...
分类:
数据库 时间:
2014-07-19 23:18:37
阅读次数:
335
菜单: System->Preferences->Keyboard Shortcuts在Desktop分类下找到“Run a terminal”点击Run a terminal,按下需要的快捷键,比如Ctrl+Alt+T,即可。补充终端窗口下的快捷:复制:Shift+Ctrl+C粘贴:Shift+C...
分类:
其他好文 时间:
2014-07-19 22:33:24
阅读次数:
224
Description
Instant Complexity
Analyzing the run-time complexity of algorithms is an important tool for designing efficient programs that solve a problem. An algorithm that r...
分类:
其他好文 时间:
2014-07-19 18:26:15
阅读次数:
268
questionI'm playing with a standalone ruby application and can't configure Mongoid 3.0.13 to work.I've run across a couple example apps that have conf...
分类:
其他好文 时间:
2014-07-19 15:29:05
阅读次数:
260
WScript.Shell是WshShell对象的ProgID,创建WshShell对象可以运行程序、操作注册表、创建快捷方式、访问系统文件夹、管理环境变量。该对象有一个run方法。Run 方法创建一个新的进程,该进程以 intWindowStyle 窗口样式执行 strCommand。语法WshS...
分类:
其他好文 时间:
2014-07-19 12:09:29
阅读次数:
1181
1 在 CentOS 6.4 上安装 dockerdocker当前官方只支持Ubuntu,所以在 CentOS 安装Docker比较麻烦(Issue #172)。docker官方文档说要求Linux kernel至少3.8以上,CentOS 6.4是2.6的内核,于是我哼哧哼哧的编译安装了最新的ke...
分类:
其他好文 时间:
2014-07-19 12:03:40
阅读次数:
264
在java中可有两种方式实现多线程,一种是继承Thread类,一种是实现Runnable接口;Thread类是在java.lang包中定义的。一个类只要继承了Thread类同时覆写了本类中的run()方法就可以实现多线程操作了,但是一个类只能继承一个父类,这是此方法的局限。AD:WOT2014:用户...
分类:
编程语言 时间:
2014-07-19 11:29:47
阅读次数:
288
前言:实战是最好的学习。本集中营共分 x+mc2 期(x 为已发行的期数,m 为我的空闲时间,c 为我的更新动力),旨在通过对脚本代码的阅读而提高 AHK 语言的熟练程度。脚本的难度与期数成正比,有兴趣的朋友可以以追剧的方式追下去 :)修饰键符号与"Run" 热键就是我们常说的快捷键,按下热键能触....
分类:
其他好文 时间:
2014-07-19 09:36:49
阅读次数:
239