摘要: Process mypro=null;try{ String cmdStr="C:\\SSH\\ssh2.exe azik@172.16.20.1 /home/azik/tmp/echo_date.sh"; mypro=Runtime.getRuntime().exec(cmdStr);... 阅读全文
posted @ 2015-08-14 14:27 Azik 阅读(874) 评论(0) 推荐(0) 编辑
摘要: 一、域资料库迁移 1、数据库数据迁移 2、备份相关的配置文件,如果迁移过程出错可以还原 1)server/config/nodemeta.xml 2)server/tomcat/conf/server.xml 3)使用infasetup.bat backupdomain命令备份域配置信息 3、停止i... 阅读全文
posted @ 2014-09-17 17:44 Azik 阅读(1682) 评论(0) 推荐(0) 编辑
摘要: /************************************************************************** * * Copyright (c) 2003 Informatica Corporation. This file contains * mate... 阅读全文
posted @ 2014-08-22 00:52 Azik 阅读(1012) 评论(0) 推荐(0) 编辑
摘要: alias ll='ls -al'use_color=false# Set colorful PS1 only on colorful terminals.# dircolors --print-database uses its own built-in database# instead of ... 阅读全文
posted @ 2014-06-29 19:55 Azik 阅读(371) 评论(0) 推荐(0) 编辑
摘要: package mainimport ( "database/sql" "encoding/xml" "fmt" _ "github.com/go-sql-driver/mysql" "io/ioutil" "os")type Conf struct { X... 阅读全文
posted @ 2014-04-25 12:40 Azik 阅读(963) 评论(0) 推荐(0) 编辑
摘要: 1 package main 2 3 import ( 4 "fmt" 5 "html/template" 6 "net/http" 7 "strings" 8 "log" 9 _ "github.com/go-sql-driver/mysql"10 "database/sql"11 )12 13 type WebMux struct{14 }15 16 func (p *WebMux) ServeHTTP(w http.ResponseWriter,r 阅读全文
posted @ 2014-04-07 11:35 Azik 阅读(974) 评论(0) 推荐(0) 编辑
摘要: 一、集群安装1、修改/etc/hosts#严重注意,主机名不要带下划线#得将127.0.0.1的记录注释掉2、修改IP3、注意SSH证书问题进入~/.ssh目录执行ssh-keygen -t rsassh-copy-id -i ~/.ssh/id_rsa.pub root@namenode4、slaves的配置5、访问http://hdp_xxx:50070查看信息相关配置#/etc/profile# Java Configurationexport JAVA_HOME=/usr/java/jdk1.7.0_51export CLASSPATH=.:$JAVA_HOME/lib/tools.j 阅读全文
posted @ 2014-03-30 17:50 Azik 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 1、切换到超级用户sudo -s2、查看显卡cat /sys/kernel/debug/vgaswithceroo/switchlspci|grep VGA3、关闭独显echo OFF>/sys/kernel/debug/vgaswithceroo/switch可将此行命令添加到/etc/rc.lo... 阅读全文
posted @ 2014-02-27 15:08 Azik 阅读(560) 评论(0) 推荐(0) 编辑
摘要: //LibHelloWorld.hvoid SayHelloWorld(char * name);//HelloWorld.c#include #include "LibHelloWorld.h"void SayHelloWorld(char * name){ printf("Hello,%s!\n",name);}gcc -O0 -g3 -Wall -c -fmessage-length=0 -fPIC -MMD -MP -MF"HelloWorld.d" -MT"HelloWorld.d" -o"He 阅读全文
posted @ 2013-11-17 09:38 Azik 阅读(563) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include int main(int argc, char* argv[]) { //declare DB_ENV *ptr_db_env; DB *ptr_db; DBT key, data; u_int32_t env_flags, db_flags; FILE *fptr_db_env_err_log, *fptr_db_err_log; int ret; int sel; int userid; char *username; username = (char*... 阅读全文
posted @ 2013-11-17 00:55 Azik 阅读(251) 评论(0) 推荐(0) 编辑