1,yum dependenciesCentos,RHEL Fedora:$ sudo yum install git gcc automake autoconf libtoolDebian:$ sudo apt-get install git gcc automake autoconf libto...
分类:
数据库 时间:
2014-09-12 20:39:54
阅读次数:
195
一般编辑 /etc/rsync.conf, 后需要杀掉重开rsync进程可以在/etc/xinetd.d/rsync 中, 将disable设为no;然后 /etc/init.d/xinetdrestart就可以了。 xinetd读取的配置文件是 /etc/rsyncd.conf ............
分类:
其他好文 时间:
2014-09-12 20:35:34
阅读次数:
217
事件类型定义:package org.apache.hadoop.event;public enum JobEventType { JOB_KILL, JOB_INIT, JOB_START}package org.apache.hadoop.event;p...
分类:
其他好文 时间:
2014-09-12 19:07:43
阅读次数:
265
在从事软件开发的过程中,经常会涉及到在Linux下将数据库脚本文件从sh格式变为sql格式的问题。本文以一个实际的脚本文件为例,说明格式转换的过程。 1.sh文件内容 本文中的文件名为example.sh,其内容如下:#!/bin/bashfunction Init(){ if [ -f"e...
分类:
数据库 时间:
2014-09-12 18:55:23
阅读次数:
320
windows下最好用的版本控制软件. 说到版本控制,大家都知道git,svn之类的,但是在windows下git和svn其实并不好用....
linuxbrew一款软件包管理工具 类似mac os 上的brew...
分类:
其他好文 时间:
2014-09-12 17:13:33
阅读次数:
172
1、获取工程到当前路径git clone ssh://gerrit-server/.git2、进入工程目录cd 3、安装gerrit的changeID自动生成hook脚本scp -p gerrit-server:hooks/commit-msg .git/hooks/chmod u+x .git/h...
分类:
其他好文 时间:
2014-09-12 16:59:33
阅读次数:
658
nagios+centreon配置 1.配置centreton web ①.启动服务: chkconfig httpd on chkconfig mysqld on chkconfig --add ndo2db chkconfig ndo2db on chkconfig --add nagios chkconfig nagios on /etc/init.d/httpd...
分类:
移动开发 时间:
2014-09-12 15:31:34
阅读次数:
410
xshell登录虚拟机能ping通,但是连接失败的问题。google了一下,发现是防火墙和sshd服务开启的问题。首先是关闭防火墙,同时开启22端口。然后是保证ssh服务的开户。我的系统(CENTOS6.5)下关闭防火墙命令如下:#/etc/init.d/iptablesstop#关闭防火墙#/etc/init.d/iptablesstatus..
分类:
其他好文 时间:
2014-09-12 15:16:34
阅读次数:
178
import math
class Point( object ):
def __init__( self, x, y ):
self.x = x
self.y = y
def __cmp__( self, other ):
if self.y < other.y:
return -1...
分类:
其他好文 时间:
2014-09-12 15:13:23
阅读次数:
190