프로그래밍
-
elasticsearch 2.3 에 plugins 설치하기프로그래밍/검색 2016. 6. 26. 19:24
환경 : Ubuntu 14.04elasticsearch version: 2.3.2설치할 plugin : head, hq, kopf, 한국어 형태소 분석기 (은전한닢) elasticsearch 2.3을 신규 설치하여 plugin도 새로 설치해야 한다. 엘라스틱 검색이 2로 업그레이 되면서 아쉬운것은 bigdesk plugin을 사용 못한다는 것 ㅠㅠ 아쉬운 대로 hq와 kopf를 대신 설치하려고 한다. 일단 plugin 기본 설치 문법은 아래와 같다. // elastic core plugin sudo bin/plugin install [plugin_name] // community and non-core plugin sudo bin/plugin install [org]/[user|component]/[ve..
-
elasticsearch 시작하기 - slowlog 사용하기프로그래밍/검색 2016. 6. 26. 18:16
엘라스틱 검색에서 실제 쿼리로 들어온 질의를 보고 싶으면 아래와 같이 con/elasticsearch.yml에 slowlog설정을 한다. 로그 레벨 별로 로그를 남길 응답 속도의 기준을 설정할 수 있다. 로그 레벨은 warn, info, debug, trace로 정의 되어 있다. index.search.slowlog.threshold.query.warn: 10sindex.search.slowlog.threshold.query.info: 5sindex.search.slowlog.threshold.query.debug: 2sindex.search.slowlog.threshold.query.trace: 500ms index.search.slowlog.threshold.fetch.warn: 1sindex.sea..
-
리눅스 열린 포트 확인하기프로그래밍/Linux 2016. 6. 18. 17:00
netstat -tnlp 를 사용하면 로컬 서버에서 현재 열려 있는 포트를 확인할 수 있다. 사용 옵션은 아래와 같다. netstat [address_family_options] [--tcp|-t] [--udp|-u] [--raw|-w] [--listening|-l] [--all|-a] [--numeric|-n] [--numeric-hosts] [--numeric-ports] [--numeric-users] [--symbolic|-N] [--extend|-e[--extend|-e]] [--timers|-o] [--program|-p] [--verbose|-v] [--continuous|-c] 사용 예시 # netstat -tnlpActive Internet connections (only servers)..