brunch

매거진 kakao cloud

You can make anything
by writing

C.S.Lewis

by Master Seo Feb 05. 2024

카카오 클라우드 4탄-7. 웹서버 로그 적재

우분트os , nginx 웹서버 로그를 오브젝트 스토리지에 저장해보자.



<1> 환경 구성

<2> 참고 사이트



<1> 환경 구성


1

사용자 액세스키 발급





https://docs.kakaocloud.com/start/console-guide/create-access-key



2

우분트 웹서버 2대 생성 ,  Ubuntu 20.04

퍼블릭 IP 연결


https://docs.kakaocloud.com/tutorial/fundamentals/vm-based-web



3

우분트에 nginx 설치

sudo apt update 

sudo apt install nginx


# 서버 벙화벽 상태 확인

sudo ufw app list

sudo ufw status

sudo ufw allow 'Nginx HTTP'

sudo ufw enable


# nginx 시작

sudo systemctl start nginx

sudo systemctl stop nginx

sudo systemctl restart nginx

sudo systemctl reload nginx


# nginx 자동 시작

sudo systemctl enable nginx

sudo systemctl disable nginx





<2> 참고 사이트


https://docs.kakaocloud.com/tutorial/fundamentals/object-storage-web-server



몰아보기

https://brunch.co.kr/@topasvga/3651


매거진의 이전글 카카오 클라우드 4탄-6. 오브젝트스토리지로 웹서비스

작품 선택

키워드 선택 0 / 3 0

댓글여부

afliean
브런치는 최신 브라우저에 최적화 되어있습니다. IE chrome safari