http://hc.apache.org/httpclient-3.x/index.html 위 사이트에서 관련 라이브러리를 다운 받는다. 아래는 예제 코드 이다. HttpClient client = null; PostMethod post = null; try { String url = "http://localhost/test.jsp"; client = new HttpClient(new MultiThreadedHttpConnectionManager()); post = new PostMethod(url); // timeout 설정 HttpMethodParams hmp = new HttpMethodParams(); hmp.setSoTimeout(1000*3); post.setParams(hmp); // paramet..
우선 dblink 모듈이 설치 되어 있지 않다면 http://www.postgresql.org/ftp/binary/ 또는 ftp://ftp.postgresql.org/pub/binary/ 에서 postgresql 버전 과 os에 맞는 postgresql-contrib 를 다운 받아서 설치 한다. 예를 들어 redhat 64bit 이고 postgresql 8.4.4 버전을 사용한다면 wget http://wwwmaster.postgresql.org/download/mirrors-ftp/binary/v8.4.4/linux/rpms/redhat/rhel-5-x86_64/postgresql-contrib-8.4.4-1PGDG.rhel5.x86_64.rpm 또는 wget ftp://ftp.postgresql.or..
PostgreSQL 8.0 기존 .설정파일인 postgresql.conf의 설정 설정 입니다 만들다 말다 하다보니 쩝., 8.0이 나오니 양만 늘었네요. 이리 올렸으면, 바뀌건만 하면 되는데 워낙 실력이 미천하고 독학에 되도않는 영어와 사전으로 주어들은거나 본거로 아는 범위내에서 설명을 드렸습니다. 모르는것은 찾아 해메서 이해된건만 기명했으며, 틀린내용은 당연히 듬뿍 많을것입니다. 혹여 튼린부분이 보이시면 지적해주시면 많은 도움이 될것입니다.^^ - FILE LOCATIONS - 시스템과 직접 연관된 파일들에 대한 설정 data_directory = 'ConfigDir' 실제적인 PostgreSQL의 DB Data 폴더 설정입니다. PostgreSQL 는 기본적으로 접근자 Shell의 환경변수중 PGDA..
장치, 파티션, NFS에 대한 CPU 및 I/O 상태 Linux의 경우 yum을 이용하여 설치가 가능하다. iostat는 sysstat에 포함되있기 때문에 아래와 같이 yum으로 검색하여 설치를 하자 sysstat 찾기 $yum list | grep sysstat sysstat.x86_64 7.0.4-3.fc8 installed sysstat 설치 (fedora8 64bit를 사용하므로 64bit용으로 설치) $yum install sysstat.x86_64 사용법 사용예1) # iostat Linux 2.6.23.1-42.fc8 (gorda-repl) 2008년 04월 16일 avg-cpu: %user %nice %system %iowait %steal %idle 1.79 0.00 0.13 0.61 0..
- Total
- Today
- Yesterday