[nginx/log] nginx 로그 위치 및 로그 분석하기 위치로 이동하여 목록 조회 특정 URL 접속횟수 (선택)특정 목록을 윈도우나 서버의 특정 ftp로 전송 cd /var/log/nginx/ sudo ls sudo lftp ftp://ftpid:pw@ip(192.168.0.1) put access.log #bash에서 확인 sudo grep '17/Apr/2024' access.log | grep -o "?stp=0c7dd660 HTTP/1.1" | wc -l #js를 통해 확인 const fs = require('fs'); const readline = require('readline'); const filePath = './0419/access.log'; // 로그 파일 경로 설정 const ..
[python/ai/llm/langchain/gpt] python에서 gpt 사용하기 #.env 설정 #chat-gpt에서 api 키 값을 받아서 설정한다. #notebook 파일 생성 notebook.ipynb from langchain.chat_models import ChatOpenAI chat = ChatOpenAI(model_name="gpt-3.5-turbo",) chat = chat.predict("프랑스에 대해서 짧게 이야기해줘?") chat 이후 재생 누르면 기본적인 정보 노출 #python #ai #llm #langchain #gpt
[aws/ec2] amazonlinux2에서 nginx로 react 배포하기 #패키지 인스톨 및 노드,nginx 설치 sudo yum update -y sudo yum install -y git curl -sL https://rpm.nodesource.com/setup_14.x | sudo bash - sudo yum install -y nodejs sudo amazon-linux-extras install nginx1 #서비스 시작 / 부팅시 자동시작 sudo systemctl start nginx sudo systemctl enable nginx #아래 git 주소를 클론하여 경로 설정 git clone https://github.com/gofogo2/2023-ifa-stamp.git -b world..