搭建环境介绍:硬件平台:HP Z800 工作站 内存:24GB 硬盘:1TB虚拟化环境:XenServer 6.2.0VM1:Ubuntu 12.04 amd64 server | IP:192.168.137.50VM2:Ubuntu 12.04 amd64 server | IP:192.168.137.51VM3:Ubuntu 12.04 amd64 server | IP:19...
分类:
移动开发 时间:
2014-07-22 22:59:34
阅读次数:
461
------本文大纲简介DRBD资源属性原理安装DRDBDRDB实现高可用============一、简介DRBD是一种块设备,可以被用于高可用(HA)之中。它类似于一个网络RAID-1功能。当你将数据写入本地文件系统时,数据还将会被发送到网络中另一台主机上。以相同的形式记录在一个文件系统中。本地(主..
分类:
数据库 时间:
2014-05-03 02:13:25
阅读次数:
989
Sliding Window
Time Limit: 12000MS
Memory Limit: 65536K
Total Submissions: 36212
Accepted: 10723
Case Time Limit: 5000MS
Description
An array of size n ≤ 106 is gi...
LeetCode OJGiven an array withnobjects colored
red, white or blue, sort them so that objects of the same color are adjacent,
with the colors in the or...
分类:
其他好文 时间:
2014-05-02 17:37:37
阅读次数:
468
本次内容:file类 1 package array; 2 /** 3 * file类 4 */ 5
import java.io.File; 6 import java.io.IOException; 7 8 public class file { 9
public static ...
分类:
编程语言 时间:
2014-05-02 16:50:03
阅读次数:
387
一次性通过的,比较顺利,从读题到编写到检查到通过,14分50秒,我在不断进步中,相信经过一段时间联系,这种题可以一眼就写出来,不超过5分钟。这道题应该说方法跟
Remove Duplicates from sorted Array挺类似的My Solution: 1 public class Sol...
分类:
其他好文 时间:
2014-05-02 12:56:10
阅读次数:
260
Given a sorted array and a target value, return
the index if the target is found. If not, return the index where it would be if
it were inserted in or...
分类:
其他好文 时间:
2014-05-02 09:54:11
阅读次数:
269
mkinitrd可建立映像文件,以供Linux开机时载入ramdisk如何应用-f若指定的映像问家名称与现有文件重复,则覆盖现有的文件。-v执行时显示详细的信息。--omit-scsi-modules不要载入SCSI模块。--preload=<模块名称>指定要载入的模块。<模块名称>模块名称>--with=<..
分类:
其他好文 时间:
2014-05-02 07:57:15
阅读次数:
285
join函数利用字符将数组中的元素分割开.[root@localhost~]#find`perl-e‘@array=join("","@INC");print"@array";‘`-name*.pm|wc-l547这个例子是利用空格分开了要查找的路径,然后find可以查找所有的路径下匹配*.pm的文件,我一共查到了547个模块.
分类:
系统相关 时间:
2014-05-02 04:13:56
阅读次数:
311
Say you have an array for which theithelement
is the price of a given stock on dayi.If you were only permitted to complete at
most one transaction (ie...
分类:
其他好文 时间:
2014-05-02 00:37:20
阅读次数:
349