ERR_EMPTY_RESPONSE - 엘라스틱 서치 8.X 버전으로 다운로드 받아 배치 파일 실행 후 localhost:9200로 접속을 시도하였는데 아래와 같은 에러가 떴다. - 확인해보니 elasticsearch.yml 파일의 설정을 바꿔야 한다고 했다. 변경전 변경후 xpack.security.http.ssl: enabled: true keystore.path: certs/http.p12 xpack.security.http.ssl: enabled: false keystore.path: certs/http.p12 - 변경 후 에러는 안나지만 로그인 alert 창이 뜨기 시작 했다. 로그인 ALERT 찾아보니 7.x 버전 이상인가 몇버전 부터 로그인을 해야한다고 한다. 그래서 elasticsearch...
[google chat에 스페이스 만들기] 1. google chat에 스페이스 생성 2. 생성한 스페이스 '앱 및 통합'에 들어가서 '웹 훅 추가' 하고 url 복사 [프로그래밍하기] 1. node-fetch 모듈 인스톨 설치 2. js 코드 작성 - webhookURL 에 위에서 얻은 url 복붙 function webhook(message) { const fetch = require('node-fetch'); //web hook 주소 const webhookURL = ''; const data = JSON.stringify({ 'text': message, }); let resp; fetch(webhookURL, { method: 'POST', headers: { 'Content-Type': 'ap..
- 회사에서 node 서버 사용중인데, 서버의 에러 메시지를 google chat으로 받을 수 있게 처리 하기로함 - 구글 chat 공홈에서 웹훅 보내는법 참조하여 웹훅 작성 https://developers.google.com/chat/how-tos/webhooks?hl=ko#node.js 수신 웹훅을 사용하여 Google Chat에 메시지 보내기 | Google for Developers 5분 정도 시간이 있으신가요? 간단한 설문조사를 통해 Google Chat API 문서 개선에 참여해 주세요. 이 페이지는 Cloud Translation API를 통해 번역되었습니다. Switch to English 의견 보내기 수신 웹훅을 사용 developers.google.com 위에서 2단계까지 작업 후 테..
Node.js용 msgpack npm Json serialize / deserialize 가능 [코드] - msgpack5 사용 코드 간단 예 var msgpack = new require('msgpack5')() , encode = msgpack.encode , decode = msgpack.decode // object 생성 var testData = { name:'Tester' }; // serialize var buffer = msgpack.encode(testData); // deserialize var unpack = msgpack.decode(buffer); // name이 있기때문에 아래 코드 출력 if(unpack.hasOwnProperty('name') == true) console.l..
bash scripts option 정리 -f FILE: Checks if FILE exists and is a regular file. FILE이 존재하고 일반 파일인지 확인 -d DIRECTORY: Checks if DIRECTORY exists and is a directory. DIRECTORY가 존재하고 디렉토리인지 확인 -e FILE: Checks if FILE exists. File이 존재하는지 확인 -s FILE: Checks if FILE exists and has a size greater than zero. FILE이 존재하고 크기가 0보다 큰지 확인 -r FILE: Checks if FILE exists and is readable. FILE이 존재하고 읽을 수 있는지 확인 -w F..