wmiccsproductlistfull
分类:
其他好文 时间:
2016-01-06 06:57:14
阅读次数:
152
拓扑:实验步骤:--------------------------------------------------------------配置iscsiserver:方案1:(命令行配置,立即有效,重启无效)1、在target上添加两块磁盘设备,sdb,sdc2、安装程序包、启动服务#yuminstall-yscsi-target-utils#servicetgtdstart3、创建target..
分类:
其他好文 时间:
2016-01-06 06:57:25
阅读次数:
284
分区表fstab的作用:系统开机时会主动读取/etc/fstab这个文件中的内容,根据文件里面的配置挂载磁盘。这样我们只需要将磁盘的挂载信息写入这个文件中我们就不需要每次开机启动之后手动进行挂载了。系统挂载的要求:1、根目录是必须挂载的,而且一定要先于其它挂载点被挂载。因..
分类:
其他好文 时间:
2016-01-06 06:54:35
阅读次数:
190
ssh无密码登录要使用公钥与私钥。linux下可以用用ssh-keygen生成公钥/私钥对,下面我以CentOS为例。有机器A(192.168.0.188),B(192.168.0.189)。现想A通过ssh免密码登录到B。1.在A机下生成公钥/私钥对。-P表示密码,-P‘‘就表示空密码,也可以不用-P参数,这样就要三车回车,用-..
分类:
其他好文 时间:
2016-01-06 06:54:10
阅读次数:
179
LVM扩容、缩减和删除常用命令:lvextend:LV扩容vgextend:VG扩容lvreduce:LV缩减vgreduce:VG缩减lvremove:LV删除vgremove:VG删除pvmove:PV数据移动到所属逻辑卷的其它物理卷pvremove:PV删除vgchange:VG状态改变一、LVM扩容1、LV扩容之前,先查看LV和所属VG可用容量(VF..
分类:
其他好文 时间:
2016-01-06 06:52:13
阅读次数:
293
saltstack安装实验环境:master:
CentOSrelease6.7(Final)
192.168.0.38
minion:
CentOSrelease6.7(Final)
192.168.0.391安装第三方软件源:rpm软件包网站:http://rpm.pbone.net/[root@mastersaltstack]#wgetftp://ftp.pbone.net/mirror/ftp.centos.org/6.7/extras/i386/Packa..
分类:
其他好文 时间:
2016-01-06 06:53:59
阅读次数:
6895
此脚本是对文件/目录进行简单的复制、删除、备份的操作。功能还不够尽完善,对一些输入为空或空格还没进行判断,但是这个脚本是我真正意义上写完整的第一个脚本。脚本使用while循环和if..elif..else条件判断。部分功能展示:shcp-del-backup-v2.sh********文件/目录操作*******..
分类:
其他好文 时间:
2016-01-06 06:53:59
阅读次数:
150
Given a non-empty binary search tree and a target value, find the value in the BST that is closest to the target.public class Solution { public int...
分类:
其他好文 时间:
2016-01-06 06:48:38
阅读次数:
147
Given n pieces of wood with length L[i] (integer array). Cut them into small pieces to guarantee you could have equal or more than k pieces with the s...
分类:
其他好文 时间:
2016-01-06 06:49:55
阅读次数:
286
Given a non-empty binary search tree and a target value, findkvalues in the BST that are closest to the target.Note:Given target value is a floating p...
分类:
其他好文 时间:
2016-01-06 06:49:06
阅读次数:
198
Given two 32-bit numbers, N and M, and two bit positions, i and j. Write a method to set all bits between i and j in N equal to M (e g , M becomes a s...
分类:
其他好文 时间:
2016-01-06 06:48:06
阅读次数:
286
Given a directed graph, design an algorithm to find out whether there is a route between two nodes.Have you met this question in a real interview? Yes...
分类:
其他好文 时间:
2016-01-06 06:48:23
阅读次数:
196
Determine the number of bits required to flip if you want to convert integer n to integer m.Have you met this question in a real interview? YesExample...
分类:
其他好文 时间:
2016-01-06 06:46:58
阅读次数:
206
Java中有两种方式让我们在运行时识别对象的类的信息:传统的RTTI(Run-Time Type Identification)和反射。Class对象Class对象包含了与类有关的信息,用来创建类的所有“常规”对象的特殊对象。每一个类都有一个Class对象。创建Class对象的引用可以用两种方式来创...
分类:
其他好文 时间:
2016-01-06 06:48:48
阅读次数:
241
AS3的ByteArray可以用来操作二进制。使用它,我们就获取加载进来的SWF的尺寸。首先要了解下SWF的文件结构,可以下载官方的PDF看下。用UltraEdit32打开一个SWF,会看到第一个字节是43或46,这是16进制,对应的字符就是C或F,其中C表示压缩过的,F表示未压缩的。第二个字节和第...
分类:
其他好文 时间:
2016-01-06 06:45:37
阅读次数:
174
Given a binary search tree and a node in it, find the in-order successor of that node in the BST.Note: If the given node has no in-order successor in ...
分类:
其他好文 时间:
2016-01-06 06:45:16
阅读次数:
161
Given an array nums and a target value k, find the maximum length of a subarray that sums to k. If there isn't one, return 0 instead.Example 1:Given n...
分类:
其他好文 时间:
2016-01-06 06:45:16
阅读次数:
217