Author Archives: apollo89

About apollo89

아폴로89 입니다.

htaccess 수정 및 활용(Rewrite,RewriteCond,RewriteRule)

  블로그 이전을 하면서 기존링크를 새로운 blog로 연결시키기위해 좋은 방법이 없을까 고민하다가 .htaccess을 사용하기로 했다. 간단하게 htaccess의 사용법을 정리하면.. RewriteEngine On -> Rewrite 모듈 호출 RewriteCond %{REQUEST_FILENAME} -f RewriteRule ^(abc\.php) cba.php [L] -> RewriteCond 조건이 맞으면 RewriteRule을 적용한다는 의미 즉, … Continue reading

Posted in WEB/WAS | Tagged , , , | Leave a comment

nexus 설치 및 설정

  nexus 설치 및 설정 URL : http://www.sonatype.org/nexus/go Download Nexus 2.3.0 설치 및 서비스 포트 변경 ]$ wget http://www.sonatype.org/downloads/nexus-2.3.0-04-bundle.tar.gz ]$ tar xvzf nexus-2.3.0-04-bundle.tar.gz ]$ cd nexus-2.3.0-04 ]$ vi conf/nexus.properties … # Jetty section application-port=8090 application-host=0.0.0.0 nexus-webapp=${bundleBasedir}/nexus nexus-webapp-context-path=/nexus … ]$ ./bin/nexus … Continue reading

Posted in SCM/ITS | Tagged , , , | Leave a comment

mysql DB별 또는 Table별 사용량(Size) 확인

  mysql DB별 또는 Table별 사용량(Size) 확인 1. Database 별 사이즈 확인 (쿼리 시점에 정확한 사이즈는 아니지만, 참고할 만한 데이터임) SELECT count(*) NUM_OF_TABLE, table_schema,concat(round(sum(table_rows)/1000000,2),’M’) rows, concat(round(sum(data_length)/(1024*1024*1024),2),’G’) DATA, concat(round(sum(index_length)/(1024*1024*1024),2),’G’) idx, concat(round(sum(data_length+index_length)/(1024*1024*1024),2),’G’) total_size, round(sum(index_length)/sum(data_length),2) idxfrac FROM information_schema.TABLES GROUP BY table_schema ORDER BY … Continue reading

Posted in Database | Tagged , , | Leave a comment

mysql replication 구성

  mysql replication 구성 1. mysql rpm 설치 mysql 홈페이지에서 최신버전 다운로드 http://www.mysql.com/downloads/mysql/ MySQL Community Server 5.5.20 – Linux – Generic 우리가 필요한 Client Utilities와 MySQL Server를 받는다. (MySQL-client-5.5.20-1.linux2.6.x86_64.rpm, MySQL-server-5.5.20-1.linux2.6.x86_64.rpm) Master에 Mysql rpm으로 설치 Master]# rpm -ivh MySQL-server-5.5.20-1.linux2.6.x86_64.rpm Preparing… ########################################### … Continue reading

Posted in Database | Tagged , , | 2 Comments

mysql의 grant를 이용해 사용자 추가하기

  mysql의 사용자를 추가하기 위해서 mysql db의 user table에 insert를 하곤했다. 하지만 이 방법은 insert 구문을 작성하는 게 여간 번거로운게 아니다.. 특히 Y를 몇개 했는지 자꾸 세어보게 되는…ㅡㅡ; 그럴때는 아래와 같이 grant 문을 사용해서 하면 편하다. mysql> grant all privileges … Continue reading

Posted in Database | Tagged , , | Leave a comment

Javascript Visualization Library

  Javascript Visualization Library 참고.. 16 Javascript Libraries for Visualizations : http://datavisualization.ch/tools/13-javascript-libraries-for-visualizations/ Choice Free JavaScript Data Visualization Library : http://kraskniga.blogspot.kr/2012/05/choice-free-javascript-data.html 20 Fresh JavaScript Data Visualization Libraries : http://sixrevisions.com/javascript/20-fresh-javascript-data-visualization-libraries/ Dojo GFX : http://dojotoolkit.org/features/graphics-and-charting gRaphael : http://g.raphaeljs.com/ Google Chart Tools : https://google-developers.appspot.com/chart/interactive/docs/index … Continue reading

Posted in Bigdata/Hadoop, Javascript/Html | Tagged , , | Leave a comment

읽어볼 기사들..

  요즘 빅데이터/분석/보안 관련된 기사 또는 자료들이 엄청나게 쏟아져 나온다.. 요즘 회사도 바뻐서 못쫒아갈 판이다.(사실은 핑계다) 그래도 나중에라도 읽어보려면 링크라도 정리… [IT수다]우리에게 필요한 건 ‘빅데이터 플랫폼’ – http://deepers.net/archives/1792 “빅데이터 분석, 솔루션만 내려받으면 끝” – http://www.bloter.net/archives/135677 빅데이터- 리눅스 열풍과 닮았다? – … Continue reading

Posted in Scrap | Tagged | Leave a comment

열정이란 무엇이가에 대한 내생각..

주제 : 열정이란 무엇이지? URL : http://javacan.tistory.com/232 1. 기억에 남는 문구 / 질문 열정이란 단순히 좋아하는 것 이상을 요구하는 것 같다. 2. 요약 열정이란 인내와 꾸준함을 특징으로 가진다. 필자는 열정이란 무언가를 해 낼때까지 계속해서 시도하는 것으로 정의하고, 그러기 위해서는 인내와 … Continue reading

Posted in Etc | Tagged , | Leave a comment

hadoop-장애(Name node is in safe mode.)

  회사에 정전이 일어났다. hadoop 개발 장비가 모두 꺼졌다.. 재부팅을 하고 hadoop namenode 를 구동하니 아래와 같은 에러 발생… 2013-01-03 08:30:29,803 INFO org.apache.hadoop.mapred.JobTracker: problem cleaning system directory: hdfs://namenode:9000/data1/hadoop/filesystem/mapreduce/system org.apache.hadoop.ipc.RemoteException: org.apache.hadoop.hdfs.server.namenode.SafeModeException: Cannot delete /data1/hadoop/filesystem/mapreduce/system. Name node is in safe mode. The … Continue reading

Posted in Bigdata/Hadoop | Tagged , , , | Leave a comment

아이폰 앱 해킹그룹 해큘러스 해체와 내생각…

  주제 : 아이폰 앱 해킹그룹 해큘러스 해체 URL : http://www.bloter.net/archives/139385 1. 기억에 남는 문구 / 질문 pass 2. 요약 아이폰 사용자가 탈옥을 하는 주된 이유는 1. 세세한 설정 2. 앱 다운로드(cydia) 해큘러스가 해체된 이유는 ‘유지가 어렵게 됐다’(difficult to keep)는 … Continue reading

Posted in Etc, Security/Hacking | Tagged | Leave a comment