Problem DescriptionThere are n people and n
target, everyone should get one target, no two people get the same target, the
last one who get the target...
分类:
其他好文 时间:
2014-05-06 09:00:51
阅读次数:
354
software directory: The default directory of
software installed on ubuntu is /usr, so just allocate more space for this
partition when installing oper...
分类:
其他好文 时间:
2014-05-06 00:02:59
阅读次数:
281
系统信息
arch 显示机器的处理器架构(1)
uname -m 显示机器的处理器架构(2)
uname -r 显示正在使用的内核版本
dmidecode -q 显示硬件系统部件 - (SMBIOS / DMI)
hdparm -i /dev/hda 罗列一个磁盘的架构特性
hdparm -tT /dev/sda 在磁盘上执行测试性读取操作
cat /proc/cpui...
分类:
系统相关 时间:
2014-05-04 00:23:28
阅读次数:
625
The game of billiards involves two players knocking 3 balls around
on a green baize table. Well, there is more to it, but for our
purposes this is sufficient.
The game consists of several rounds ...
分类:
其他好文 时间:
2014-05-03 16:15:33
阅读次数:
296
Struts2实现文件上传
配置文件struts.xml
<!--
/*
* $Id: struts.xml 1364077 2012-07-21 12:57:02Z lukaszlenart $
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor licens...
分类:
其他好文 时间:
2014-05-03 15:41:44
阅读次数:
348
sed‘s/^/\//g‘4行首增加指定字符提取网页中的播放地址:#!/bin/bash
printf"enteryourdir:"
readdir
echo"$dirisxx"
cd$dir
echo`pwd`
forfilein`ls.`
do
if[-d$file];then
echo$file
cd$file
echo`pwd`
tree`pwd`|grepplay|sed‘s/.*//g‘>11
tree`pwd`|grepplay|sed‘s/.*//g..
分类:
其他好文 时间:
2014-05-03 00:53:15
阅读次数:
336
/:根目录,一般根目录下只存放目录,不要存放文件/bin:可执行二进制文件的目录,如常用的命令ls、tar、mv、cat等/boot:放置linux系统启动时用到的一些文件/dev:存放linux系统下的设备文件,如挂载光驱:mount
/dev/cdrom /mnt/etc:系统配置文件存放的目录...
分类:
其他好文 时间:
2014-05-02 15:29:52
阅读次数:
503
模拟namenode崩溃,将name目录的内容全部删除,然后通过secondary
namenode恢复namenode。环境:OS:Centos 6.5 x64 & Soft:Hadoop
1.2.11、进入name目录下,删除name目录内容。[huser@master name]$ pwd/h...
分类:
其他好文 时间:
2014-05-02 14:44:28
阅读次数:
517
1、计算机名:查看计算机名:在终端输入hostname修改的话hostname+计算机名(重启后失效)要永久修改的话要修改配置文件/etc/sysconfig/network修改hostname=你要改的名字例如:[root@webserverDesktop]#cat/etc/sysconfig/networkNETWORKING=yesHOSTNAME=webserver2、IP地址:..
分类:
系统相关 时间:
2014-05-02 03:11:07
阅读次数:
427
一、输入重定向和输出重定向通常计算机的I/O(输入/输出)设备为键盘和显示器,因此当我们执行cat命令而不加任何参数时,命令会等待用户通过键盘输入数据;而当我们为cat命令增加了参数/etc/rc.d/rc.sysinit后,cat命令的输入源变成了文件/etc/rc.d/rc.sysinit。这个过程就是输..
分类:
其他好文 时间:
2014-05-02 03:06:47
阅读次数:
319