function checkmemory%Copyright (c) 2014,Lv Qi%All
rights reserved.%%Redistribution and use in source and binary forms, with or
without modification, a...
分类:
其他好文 时间:
2014-05-10 20:07:52
阅读次数:
413
使用公司的maven服务器,可以加速jar包的下载。如果要使用公司的maven服务器,需要对本地maven配置文件conf/settings.xml做相应修改,具体改法有两种。一、mirror
方式思路是利用 mirror 配置支持通配符号,于是可以指定所有的 repository 都去找公司的r....
分类:
其他好文 时间:
2014-05-10 19:56:57
阅读次数:
686
Given a binary tree, check whether it is a
mirror of itself (ie, symmetric around its center).For example, this binary tree
is symmetric: 1 / \ ...
分类:
其他好文 时间:
2014-05-09 09:28:18
阅读次数:
253
1、删除redhat原有的yum源#rpm-aq|grepyum|xargsrpm-e--nodeps2、下载新的yum安装包这里我们使用CentOS的yum源#wgethttp://mirror.centos.org/centos/6.0/os/i386/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm#wgethttp://mirror.centos.org/centos/6.0/os/i386/Package..
分类:
其他好文 时间:
2014-05-08 16:40:46
阅读次数:
286
我們需要用yum進行linux的更新或者軟件的安裝時,會發現速度比較慢,這時我們應該修改下mirror。vim
/etc/yum.repos.d/CentOS-Base.repo
(提示:有些系統中CentOS-Base.repo.save,其實是一樣的,只不過要在修改後把".save"去掉,因為只...
分类:
其他好文 时间:
2014-05-08 12:28:37
阅读次数:
319
一、扩展逻辑卷1、lvextend-L[+]#/PATH/TO/LV,[+]表示扩展到;#表示扩展至;a)扩展逻辑卷的风险较小,可在线扩展;2、resize2fs:扩展到和物理边界一样大a)命令格式:resize2fs-p/PATH/TO/LV如:lvcreate-L2G-ntestlvmyvgmke2fs-j/dev/myvg/testlvmkdirusersmount/dev/myvg/te..
分类:
系统相关 时间:
2014-05-07 22:31:19
阅读次数:
499
LVM磁盘管理一、LVM简介... 1二、 LVM基本术语... 2三、 安装LVM... 3四、
创建和管理LVM... 42、 创建PV.. 63、 创建VG.. 74、 创建LV.. 95、LV格式化及挂载... 10一、LVM简介LVM是
Logical Volume Manager(逻辑卷...
分类:
系统相关 时间:
2014-05-05 23:11:11
阅读次数:
558
这两道题,大同小异。
我都是用BFS,在遍历的过程,判断结构是否相同/对称,值是否相同。下面是AC代码: 1 /** 2 * Given a binary tree, check
whether it is a mirror of itself (ie, symmetric aroun...
分类:
其他好文 时间:
2014-05-05 09:48:26
阅读次数:
401
目标:主机做了Mirror和Replication,当主机出现问题时,Replication和Mirror实现自动的故障转移(Mirror和Replication都切换到备机,而当主机重新启动后,自动充当备机的角色)。环境:五台虚拟机,配置均为Windows2008Enterprise
+ SQLS...
分类:
数据库 时间:
2014-05-04 19:07:28
阅读次数:
560
Background:
It's fairly common for businesses to want to provide some high availability for their SQL Server databases, and one option is to have two SQL Server databases on separate machines with a SQL Server database mirrored....
分类:
数据库 时间:
2014-04-30 22:11:38
阅读次数:
520