'프로그램관련 기타'에 해당되는 글 17건
- 2025.02.18 머신러닝과 딥러닝 차이
- 2023.09.08 디렉토리의 파일 리스트 뽑는 방법
- 2021.04.21 AWS ElastiCache Redis desktop manager 로 연결
- 2020.12.05 node.js 에서 gc() 사용
- 2020.03.19 [oracle]날짜의 시간 간격 구하기
- 2019.12.16 heapdump install 시 node-gyp build 오류
- 2019.11.15 visual studio code 에서 typescript 파일 저장시 자동 컴파일 옵션
- 2019.07.12 server 의 port 오픈 확인
- 2019.05.16 failed: Error during WebSocket handshake: Unexpected response code: 400
- 2019.02.20 웹으로 파일 전송하기
Redis desktop manager 로 redis 에 저장 된 내용을 확인 해 보기 편한 방법이 있다.
현재는 유로 이지만, 무료 버전을 사용하여 AWS ElastiCache 에 연결하는 방법이다.
AWS ElastiCache 는 직접 연결이 안되게 되어 있으므로, 같은 AWS 상에 EC2 서버가 있다면
SSH 로 연결이 가능하다.
Address : ElastiCache 가 만약 cluster 모드일 경우에는 기본 앤드 마스터 주소를 입력
SSH Address : AWS 에 있는 EC2 서버의 아이피를 입력
Private Key : EC2 서버 연결시 사용하는 pem 파일 적용
#시간 간격
SELECT ROUND(((TO_DATE('20200319161310', 'YYYYMMDDHH24MISS')-TO_DATE('20200319141310', 'YYYYMMDDHH24MISS'))*24),3) AS INTERVAL_HOUR FROM DUAL ;
#분 간격
SELECT ROUND(((TO_DATE('20200319161310', 'YYYYMMDDHH24MISS')-TO_DATE('20200319141310', 'YYYYMMDDHH24MISS'))*24*60),3) AS INTERVAL_MINUTE FROM DUAL ;
#초 간격
SELECT ROUND(((TO_DATE('20200319161310', 'YYYYMMDDHH24MISS')-TO_DATE('20200319141310', 'YYYYMMDDHH24MISS'))*24*60*60),3) AS INTERVAL_SECOND FROM DUAL ;
npm install heapdump 시에 node-gyp build 오류가 발생을 하게 될 경우 처리 방법
- cmd 를 관리자 권한으로 시작
- node 가 설치 된 디렉토리로 이동
- npm install --global --production windows-build-tools
- heapdump 를 install 한다.
- 참조 사이트
https://github.com/nodejs/node-gyp#on-windows
nodejs/node-gyp
Node.js native addon build tool. Contribute to nodejs/node-gyp development by creating an account on GitHub.
github.com
위 사이트에서 'Option 1' 부분을 참고한다.
#visual studio code 에서 typescript 파일 저장시 자동 컴파일 옵션
- tsconfig.json 파일에 "watch": true 옵션 추가
{
"compilerOptions":
{
"module": "commonjs",
"target": "es6",
"sourceMap": false,
"outDir": "./js/",
"watch": true
},
"exclude": ["node_modules"]
}
#방법1
1. tcping.exe 다운 로드 : https://www.elifulkerson.com/projects/tcping.php
tcping.exe - ping over a tcp connection
tcping.exe - ping over a tcp connection tcping.exe is a console application that operates similarly to 'ping', however it works over a tcp port. There are many different implementions of this floating around, written independently by different people. Ther
www.elifulkerson.com
2. 다운받은 파일 실행
3. cmd 열고
4. tcping 아이피 포트
#방법2
1. WinPcap_4_1_3.exe 인스톨
2. tracetcp-0.99.4beta-sdream4.zip 파일의 exe 파일만 c:\windows\system32\ 폴더에 복사
3. cmd
4. tracetcp 아이피:포트 -n
#NGINX 의 프록시 설정으로 포워딩시 소켓 연결은 잘 되나 클라이언트에서 콘솔에
'failed: Error during WebSocket handshake: Unexpected response code: 400' 에러가 출력된 경우
포워딩을 위한 설정 값을 변경 해 준다.
-처음 설정 값
server {
listen 8000;
server_name _;
root /usr/share/nginx/html;
location / {
proxy_pass http://192.168.0.99:8000/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
-변경한 설정 값
server {
listen 8000;
server_name _;
root /usr/share/nginx/html;
location / {
proxy_pass http://192.168.0.99:8000/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
}
}