ThisisourongoingLinuxcommandserieswherewearegoingtoreviewhowwecanusechkconfigcommandefficientlywithit’savailableparameters.TheChkconfigcommandtoolallowstoconfigureservicesstartandstopautomaticallyinthe/etc/rd.d/init.dscriptsthroughcommandline.Let’sseesome..
分类:
系统相关 时间:
2014-05-13 04:26:32
阅读次数:
469
7.1 操作系统接口
Os模块提供主要许多与操作系统交互的函数。
>>> import os
>>> os.getcwd() # Return the current working directory
’C:\\Python31’
>>> os.chdir(’/server/accesslogs’) # Change current working directory
>>> ...
分类:
编程语言 时间:
2014-05-12 23:08:03
阅读次数:
356
public class ThreadTest implements Callable {
public String call() throws Exception {
// TODO Auto-generated method stub
wait(10000);
return "hello";
}
}调用代码:
public static void main(Stri...
分类:
编程语言 时间:
2014-05-11 21:27:24
阅读次数:
533
1. Hadoop中遇到的问题
以前所遇到的问题由于没有记录,所以忘了
(1)NameNode没有启动成功, 是由于你对HDFS多次格式化,导致datanode中与namenode中的VERSION文件中的namespaceID不一致(对于NameNode节点,该文件位于hdfs-site配置文件中dfs.name.dir参数所指定的路径下的current文件夹中, 对于DataNode节点...
分类:
其他好文 时间:
2014-05-10 04:28:25
阅读次数:
475
Asp.net直接保存文件到客户端
在我们的系统的编写过程中,应该有很多的时候需要客户下载文件.我第一次的做法(应该也是大部分人的做法吧?)是:
1 HttpResponse response = HttpContext.Current.Response;
2 string js = "window.open('{0}');";
3 js = string.Format(js, url...
分类:
Web程序 时间:
2014-05-09 22:47:52
阅读次数:
311
Texlive的配置很简单,安装的时候跟着向导一步一步安装就可以了。
TexStudio也是同样的安装过程,没什么技巧。这里提一下界面颜色的配置。习惯了暗底白字,所以就google了一下相关的配置,大多给出的是颜色配置的代码。代码的使用也十分简单,先在TexStudio里面保存一下Current
S...
分类:
Windows程序 时间:
2014-05-09 19:46:13
阅读次数:
1165
Example #1$GLOBALS范例以上例程的输出类似于:$foo in global
scope: Example content$foo in current scope: local variable
分类:
Web程序 时间:
2014-05-09 13:25:52
阅读次数:
309
NAMEls - list directory contents
列出文件夹内容SYNOPSIS ls [OPTION]... [FILE]...DESCRIPTION List information about the
FILEs (the current dir...
分类:
系统相关 时间:
2014-05-09 10:27:55
阅读次数:
617
根据当初 hadoop 安装目录下 conf 目录的 core-site.xml
的设置,找到该目录:进入该目录在 data 和 name 文件夹下均有 current 文件夹 ,和 current 文件夹下有 VERSION
文件主要要做的是使这两个文件中的 namespaceID 相同接下来就是...
分类:
其他好文 时间:
2014-05-09 05:15:30
阅读次数:
305
昨天重装了VS2010,然后开了项目看了下今天早上再打开发现起始页近使用项目列表是空白的,每次打开项目都要去到指定目录去找解决方案才能打开,感觉很麻烦,在网上找了下解决方案,解决步骤下:菜单
—— 运行(或是直接windows键+R键)—— regedit ——打开下面键值:HKEY_CURRENT...
分类:
其他好文 时间:
2014-05-09 04:30:10
阅读次数:
307