安装KVM虚拟化条件:首先CPU要支持虚拟化(Intel是vmx,AMD是svm)[root@localhost~]#egrep‘(vmx|svm)‘--color/proc/cpuinfo确保BIOS里开启VTIntel(R)VirtualizationTech[Enabled]安装虚拟化套件[root@localhost~]#LANG=en_US-utf8[root@localhost~]#yum-ygroupinstall"Virtual..
分类:
其他好文 时间:
2014-06-28 00:30:19
阅读次数:
346
实验环境:-------RHEL5.10(vmnet1)----------REL5.10(vmnet1)(192.168.100.10主域)(192.168.100.20子域)【DNS子域授权配置】kvm_node2(子域)上面操作:[root@dns2~]#yum-yinstallbindbind-chrootcaching-nameserver[root@dns2~]#cd/var/named/chroot/etc/[root@dns2..
分类:
其他好文 时间:
2014-06-28 00:25:40
阅读次数:
450
先看一个简单的例子
代码:
// ConsoleApplication3_6_23.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include
#include
#include
using namespace std;
using namespace cv;...
分类:
其他好文 时间:
2014-06-27 23:52:41
阅读次数:
406
今天学习了node.js ,来看一下hello world 的写法。1. 首先安装node.js的驱动文件。 http://nodejs.org/2. a:安装好node之后,在CMD窗口输入node,再输入console.log('hello world.');3.调用文本文件。sample: 创...
分类:
Web程序 时间:
2014-06-27 18:29:12
阅读次数:
203
前面介绍了使用IO类实现文件读写的示例,其实在很多地方还需要使用到IO类,这里再以读取控制台输入为例子来介绍IO类的使用。控制台(Console)指无图形界面的程序,运行时显示或输入数据的位置,前面的介绍中可以使用System.out.println将需要输出的内容显示到控制台,本部分将介绍如何接受...
分类:
编程语言 时间:
2014-06-27 16:33:32
阅读次数:
321
答案1:The shell is a typical Unix program. It reads commands from the standard input and prints something on the standard output. This is simple and goo...
分类:
其他好文 时间:
2014-06-27 16:12:37
阅读次数:
260
1 staitc void Main(string[] args) 2 { 3 for(int i=1;i<=9;i++)//乘数 4 { 5 for(int j=1;j<=i;j++)//被乘数 6 { 7 Console.Write("{0}*{1}={2}...
分类:
其他好文 时间:
2014-06-27 13:58:40
阅读次数:
188
[2014-06-26 15:50:56 - ddms] Can't bind to local 8700 for debugger
一、BUG环境:macbookpro+eclipse+adt+adbWireless(MBP共享网络给Android手机)
二、影响:在下图中LogCat和Console标签页之间来回跳转,无法安逸查看LOG数据。
三、解决:
...
分类:
其他好文 时间:
2014-06-27 09:32:43
阅读次数:
436
背景:由于在KVM虚机上做glusterfs测试,发现KVM虚拟存储空间不够。思路:创建一个kvmimg文件指定大小200G,然后通过VirtualMachineManager导入到对应的虚拟机步骤:这里以虚拟机vm2为例创建kvmimg[root@agent-cloudstack342]cd/d1/virtual_machine/vm/2#进入虚机文件目录[root..
分类:
其他好文 时间:
2014-06-27 06:38:28
阅读次数:
288
// ConsoleApplication3_6_23.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include
#include
using namespace std;
using namespace cv;
Mat src,dst,gray;
int pro_typ...
分类:
其他好文 时间:
2014-06-26 06:46:25
阅读次数:
315