摘要:
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);... 阅读全文
摘要:
一、域资料库迁移 1、数据库数据迁移 2、备份相关的配置文件,如果迁移过程出错可以还原 1)server/config/nodemeta.xml 2)server/tomcat/conf/server.xml 3)使用infasetup.bat backupdomain命令备份域配置信息 3、停止i... 阅读全文
摘要:
/************************************************************************** * * Copyright (c) 2003 Informatica Corporation. This file contains * mate... 阅读全文
摘要:
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 ... 阅读全文
摘要:
package mainimport ( "database/sql" "encoding/xml" "fmt" _ "github.com/go-sql-driver/mysql" "io/ioutil" "os")type Conf struct { X... 阅读全文
摘要:
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 阅读全文
摘要:
一、集群安装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 阅读全文
摘要:
1、切换到超级用户sudo -s2、查看显卡cat /sys/kernel/debug/vgaswithceroo/switchlspci|grep VGA3、关闭独显echo OFF>/sys/kernel/debug/vgaswithceroo/switch可将此行命令添加到/etc/rc.lo... 阅读全文
摘要:
//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 阅读全文
摘要:
#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*... 阅读全文