Check nagios配置文件报错例如以下:[nagios@2 etc]$
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfgNagios Core
4.0.6Copyright (c) 2009-present Nag...
分类:
移动开发 时间:
2014-05-27 00:07:04
阅读次数:
364
2011-11-21 00:42svn总出现二进制相关的烦人事在使用svn add 时提示: A
(bin) templates/translate/screen/selectTransLang.vm 请看官方文档的解释:
当你第一次添加或者导入文件到Subversion中时,Subversion会...
分类:
其他好文 时间:
2014-05-26 23:40:32
阅读次数:
434
linux
shell执行有两种方式shell脚本以#!/bin/bash开头,执行shell时先检查首行,在内部以下列方式执行:$/bin/bash
script.sh1. 使用sh执行。 $sh script.sh #脚本位于当前目录下或者 $sh /home/path/script.sh #使...
分类:
系统相关 时间:
2014-05-26 23:16:32
阅读次数:
344
声明:下列内容并非原创,仅仅是最近学习笔记整理。--------------------------------------进入mysql安装路径bin目录下:1.开启服务winmysqladmin.exe回车按照提示:输入winmysqladmin初始用户、密码(注:mysql里用户、密码)随便填...
分类:
数据库 时间:
2014-05-23 03:58:30
阅读次数:
357
在Mahout中出现错误:MAHOUT_LOCAL is not set;adding HADOOP_CONF_DIR to classpath
MAHOUT_LOCAL与HADOOP_CONF_DIR
以上的两个参数是控制Mahout是在本地运行还是在Hadoop上运行的关键。
$MAHOUT_HOME/bin/mahout文件指出,只要设置MAHOUT_LOCAL的值为一个非空(...
分类:
其他好文 时间:
2014-05-23 00:40:35
阅读次数:
365
修改/etc/udev/rules.d/60-raw.rules文件
# 现在我们把/dev/sdb1 知道到raw1上,就可以在/etc/udev/rules.d/60-raw.rules文件里添加如下内容:
[root@centos~]#vi /etc/udev/rules.d/60-raw.rules
Cat >> /etc/udev/rules.d/60-raw.rules<< EOF
ACTION=="add",KERNEL=="sdb1",RUN+="/bin/raw /dev/raw/r...
分类:
系统相关 时间:
2014-05-22 18:38:24
阅读次数:
400
Apache+Php配置(亲测可用)
一Apache配置:
1.下载 httpd-2.2.xx-win64.rar,Apache 64-bit 的压缩包,点击这里下载
(Apache官方没有64位的安装包)
2、将压缩包解压到C盘根目录: \httpd-2.2-x64
3、以管理员身份运行CMD:,进入Apache的bin目录,运行安装命令 httpd-k install
4、修改web配置,c:\httpd-2.2-x64\conf目录下的httpd.conf
端口号默认为80,如有冲突可改其他,这里...
分类:
Web程序 时间:
2014-05-22 18:32:34
阅读次数:
447
【题目】
Given an array of non-negative integers, you are initially positioned at the first index of the array.
Each element in the array represents your maximum jump length at that position.
Your goal is to reach the last index in the minimum number of ju...
分类:
其他好文 时间:
2014-05-22 17:02:20
阅读次数:
244
Given a binary tree, find its maximum depth.The
maximum depth is the number of nodes along the longest path from the root node
down to the farthest le...
分类:
其他好文 时间:
2014-05-22 16:05:56
阅读次数:
239
1、使用Apache 的 Commons FileUpload FileUpload下载地址:
http://commons.apache.org/fileupload/ 下载:commons-fileupload-1.2.2-bin.zip
得到:commons-fileupload-1....
分类:
其他好文 时间:
2014-05-22 15:09:24
阅读次数:
216