ajax function callAjax(requestUrl, method, callbackFunction, data) { $.ajax({ url : requestUrl, type : method, data : data, dataType : "html", async : false, success : function (result, status, xhr) {
auto configuration 새로운 프로젝트 마다 반복적인 설정을 해결하기 위한 고민에서 시작 설정 클래스는 다 어디 갔을까? - mvc, jpa, datasource 설정들 - EnableAutoConfigurationImportSelector 에서 설정을 등록한다. > META-INF/spring.factories 위치에 설정 파일 리스트 읽어온다.
여러대의 원격 장비에 command를 실행하고 싶을 때 (실행에 대한 output 가능) 서버파일리스트의 포멧은 계정@172.19.136.18 과 같이 기록한다. cmd.sh #!/bin/sh if [ $# -lt 2 ] then echo "Usage : $0 {명령어} {서버파일리스트}"
Parameter Example 1 파라미터 0번째는 bash 파일명이 출력된다. #!/bin/bash echo "The script name : $0" echo "The value of the first argument to the script : $1"
1. shard allocation 옵션을 disabled 처리 $ curl -XPUT 'localhost:9200/_cluster/settings?pretty=true' -d '{ "transient" : { "cluster.routing.allocation.enable" : "none" } }' 2. 노드 shutdown
원격 -> 로컬 (다운로드) # scp abc@111.222.333.444:/home/abc/es.tar.gz . 로컬 -> 원격 (업로드) scp es.tar.gz abc@111.222.333.444:/home/abc/
master node cluster.name: nklee-data-cluster node.name: nklee-data-master1 node.master: true node.data: false index.number_of_shards: 5 index.number_of_replicas: 1 network.host: 0.0.0.0 transport.tcp.port: 9300
settings.json { "number_of_replicas": "1", "number_of_shards": "5", "refresh_interval": "1s", "index.store.type": "fs" } mappings.json