본문 바로가기

설정

(28)
index 생성 예시 elasticsearch index 생성 방법. https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping.html Mapping | Elasticsearch Reference [7.3] | Elastic Mapping is the process of defining how a document, and the fields it contains, are stored and indexed. For instance, use mappings to define: which string fields should be treated as full text fields.which fields contain numbers, dates, or geolo..
예시 elasticsearch reindex와 샤드 curl -X POST "localhost:9200/_reindex?pretty" -H 'Content-Type: application/json' -d' { "source": { "index": "twitter" }, "dest": { "index": "new_twitter" } } ' https://www.elastic.co/guide/en/elasticsearch/reference/5.4/docs-reindex.html Reindex API | Elasticsearch Reference [5.4] | Elastic Reindex does not attempt to set up the destination index. It does not copy the settings of the source ind..
move files and directories to the parent folder in Linux find . -maxdepth 1 -exec mv {} .. \; this will move hidden files as well. You will get the message: mv: cannot move `.' to `../.': Device or resource busy when it tries to move . (current directory) but that won't cause any harm. https://superuser.com/questions/88202/how-do-i-move-files-and-directories-to-the-parent-folder-in-linux
couchbase XDCR 적용 curl -i -X GET -u ID:PW http://domain/pools/default/remoteClusters HTTP/1.1 301 Moved Permanently Server: nginx/1.12.2 Date: Tue, 23 Jul 2019 09:37:56 GMT Content-Type: text/html Content-Length: 185 Connection: keep-alive Location: https://domain/pools/default/remoteClusters 301 Moved Permanently nginx/1.12.2 음.. 안되나? 이 에러를 해결하면 remoteCluster받아올수있을것같고. 연결도 될것같은데. (https://docs.couchbase.com/serv..
elasticsearch 설치와 kibana설치 아 우울하다.. 오늘 직장내 괴롭힘 금지법이 첫 시행일이라고 하는데. 작년에 시행됐으면 얼마나 좋았을까? 난 스트레스 받다가 뇌졸중도 왔는데. 아무튼 그런고로 엘라스틱 서치 설치하기가 존나 싫었다. 대충 아무거나 보고 따라함. 잘 설치 됨. ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ이글이 엘라스틱 서치 설치 글이야 뇌졸중글이야? ...더보기 참고 (https://linuxize.com/post/how-to-install-elasticsearch-on-centos-7/) 잘 살다가, 키바나를 설치하게 되었는데 키바나 고버전을 설치하면 elasticsearch와 버전이 맞지 않음. yum.repos.d에 elasticsearch 6버전 대를 지정하고 설치해도 키바나 고버전을 설치하면 elasticsearch도 7을 받아버림. 지..
redis 설치 / centosCentOS Linux release 7.6.1810 (Core) 기준 stable 버전 5.0.5 설치 해야겠다. 기존에 다른 서버도 5.0.5 가 설치되어있음을 redis-cli INFO 로 확인했음. (주의 잘하고싶으면읽지말고 바로 10으로 가시오) 1 설치파일 5.0.5 받기 -> (https://redis.io/download) 2 tar.gz 압축 풀기 -> tar -xzvf redis-5.0.5.tar.gz 3 cd redis-5.0.5 make 4 멍때리기 5 읭 경로로가면 파일있는데 service start redis로는 안되네? 왜지? ㅠㅠ 6 https://linuxize.com/post/how-to-install-and-configure-redis-on-centos-7/ 이걸로 하면 걍 yum install 하라고 나옴 ㅎ 7 6의 글에서 sudo sy..
couchbase6.0 설치 / centosCentOS Linux release 7.6.1810 (Core) 기준 couchbase6.0 설치 / centosCentOS Linux release 7.6.1810 (Core) 1 os 도 모르겠음 -> (https://www.thegeekdiary.com/how-to-check-centos-version/) 검색 cat /etc/redhat-release -> CentOS Linux release 7.3.1611 (Core) -> 음 그렇구나. 2 couchbase 부터 설치하자 -> yum 으루 ~ (https://docs.couchbase.com/server/current/install/rhel-suse-install-intro.html#installing-using-yum) -> 안되네? 왜 안되지? sudo yum update 가 안됨. 그래서 일단 couchb..
couchbase-cli 조회와 인덱스 본래 webUI concole 제공하지만, gateway time error 나서, (https://forums.couchbase.com/t/gateway-timeout-error-in-couchbase-console/16813/5) 그냥 직접 cli query를 해보려고. cbq를 직접 실행할 수 있는 directory에 가서, Linux/opt/couchbase/bin/couchbase-cli WindowsC:\Program Files\Couchbase\Server\bin\couchbase-cli.exe Mac OS X/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/bin/couchbase-cli ./cbq -engine="h..