AWS
-
시스템 패키지 업데이트sudo apt-get update패키지 설치sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-commonDocker 공식 GPG 키 추가curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -Docker 공식 apt 저장소 추가sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"시스템 패키지 업데이트sudo apt-get updateDocker ..
Ubuntu - Docker 설치시스템 패키지 업데이트sudo apt-get update패키지 설치sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-commonDocker 공식 GPG 키 추가curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -Docker 공식 apt 저장소 추가sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"시스템 패키지 업데이트sudo apt-get updateDocker ..
2024.06.04 -
명령어ssh-keygen -t rsa -b 4096 -f 키이름 -C "주석내용"설명ssh-keygen : SSH 키 페어를 생성하는 기본 명령어-t rsa : 키 타입 지정-b 4096 : 생성할 키의 비트 길이를 지정, 비트 길이가 길수록 보안성이 높아지지만, 키 생성과 인증 과정이 더 느려짐-f 키이름 : 키 파일의 이름을 지정, 이 옵션을 사용하면 기본 경로 (Ex. ~/.ssh/id_rsa)가 아닌 원하는 경로와 이름으로 키 파일을 저장할 수 있음-C "주석내용" : 키에 주석을 추가, 이메일 주소나 키의 용도를 주석으로 달 수 있음
Linux - ssh 키 생성명령어ssh-keygen -t rsa -b 4096 -f 키이름 -C "주석내용"설명ssh-keygen : SSH 키 페어를 생성하는 기본 명령어-t rsa : 키 타입 지정-b 4096 : 생성할 키의 비트 길이를 지정, 비트 길이가 길수록 보안성이 높아지지만, 키 생성과 인증 과정이 더 느려짐-f 키이름 : 키 파일의 이름을 지정, 이 옵션을 사용하면 기본 경로 (Ex. ~/.ssh/id_rsa)가 아닌 원하는 경로와 이름으로 키 파일을 저장할 수 있음-C "주석내용" : 키에 주석을 추가, 이메일 주소나 키의 용도를 주석으로 달 수 있음
2024.06.04 -
코드public class MySpringApplication { @PostConstruct public void started() { // timezone 한국 고정 TimeZone.setDefault(TimeZone.getTimeZone("Asia/Seoul")); } public static void main(String[] args) { SpringApplication.run(MySpringApplication.class, args); }}설명started 메소드를 SpringBootApplication에 추가하면 된다.
Spring - timezone 한국 고정코드public class MySpringApplication { @PostConstruct public void started() { // timezone 한국 고정 TimeZone.setDefault(TimeZone.getTimeZone("Asia/Seoul")); } public static void main(String[] args) { SpringApplication.run(MySpringApplication.class, args); }}설명started 메소드를 SpringBootApplication에 추가하면 된다.
2024.05.28 -
현재 서버 시간 확인 명령어date시간대 변경 명령어# 기존 심볼릭 링크 삭제sudo rm /etc/localtime# 한국 시간으로 심볼릭 링크 생성sudo ln -s /usr/share/zoneinfo/Asia/Seoul /etc/localtime
Linux - 서버 시간대 한국으로 변경현재 서버 시간 확인 명령어date시간대 변경 명령어# 기존 심볼릭 링크 삭제sudo rm /etc/localtime# 한국 시간으로 심볼릭 링크 생성sudo ln -s /usr/share/zoneinfo/Asia/Seoul /etc/localtime
2024.05.22 -
1. git 설치 확인git --version2. git ssh키 생성cd ~/.sshssh-keygen -t rsa -C github 계정 메일(example@naver.com)3. 키페어 확인cat id_rsa.pub4. github 키 등록github -> settings -> SSH and GPG keys1. new SSH KEY 버튼 클릭2. Title 입력 (자유)3. Key 입력 (3번에서 출력한 키페어 복붙)예시)ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC1231231232RtHdzEn484xo4Yt+LvLGuBK7JimMnnqGXKEcDNQpaLfO9Rka7nKNfqc+3zhbcRHWiZODgDJdqPgCcjrcpmOSzV/2h5B6H19wFaQ4izHLbuJO..
AWS - git ssh 연동 및 spring 프로젝트 실행1. git 설치 확인git --version2. git ssh키 생성cd ~/.sshssh-keygen -t rsa -C github 계정 메일(example@naver.com)3. 키페어 확인cat id_rsa.pub4. github 키 등록github -> settings -> SSH and GPG keys1. new SSH KEY 버튼 클릭2. Title 입력 (자유)3. Key 입력 (3번에서 출력한 키페어 복붙)예시)ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC1231231232RtHdzEn484xo4Yt+LvLGuBK7JimMnnqGXKEcDNQpaLfO9Rka7nKNfqc+3zhbcRHWiZODgDJdqPgCcjrcpmOSzV/2h5B6H19wFaQ4izHLbuJO..
2024.05.22 -
1. java 설치 여부 확인java --version2. java 설치 가능 리스트 확인yum list java*3. java 설치sudo yum -y install 파일명(java-21-amazon-corretto.x86_64)
Linux - java 설치1. java 설치 여부 확인java --version2. java 설치 가능 리스트 확인yum list java*3. java 설치sudo yum -y install 파일명(java-21-amazon-corretto.x86_64)
2024.05.22 -
명령어# yum 업데이트sudo yum update -y# git 다운로드sudo yum install git -y# git 버전 확인git version
Linux - git 설치명령어# yum 업데이트sudo yum update -y# git 다운로드sudo yum install git -y# git 버전 확인git version
2024.05.22 -
코드 KEY, SECRET, BUCKET, $source는 상황에 맞게 설정
PHP - AWS S3 파일 업로드 샘플 코드코드 KEY, SECRET, BUCKET, $source는 상황에 맞게 설정
2022.05.12