728x90

3티어 3

[NCP] NCP VPC 환경에서 3-tier 구축하기 - 3.WAS-DB 연동까지

DB - MySQL 설치 1. MySQL 설치 1-1. MySQL yum Repository 설치 # yum install -y https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm 1-2. 확인 # yum repolist enabled | grep mysql 1-3. yum으로 mysql 설치 # yum install -y mysql-server mysql 설치 시 RPM-GPG-KEY-mysql~~ 에러가 발생한다면👇 [MySQL 설치 시 에러] RPM GPG KEY Error (tistory.com) 1-4. MySql 설치 확인 # mysql -V 1-5. 부팅 시 mysqld 자동 시작 설정 및 mysql 실행 # system..

Cloud/NCP 2024.01.21

[NCP] NCP VPC 환경에서 3-tier 구축하기 - 2.WEB-WAS 연동까지

WEB - nginx 설치 1. Nginx 설치 1-1. /etc/yum.repos.d/nginx.repo 파일 생성 CentOS의 기본 저장소에는 Nginx가 포함되어 있지 않거나 최신 버전이 아닐 수 있다. 그러므로 /etc/yum.repos.d/nginx.repo 파일을 생성하고 그 안에 Nginx 저장소 정보를 넣어준다. # vi /etc/yum.repos.d/nginx.repo [nginx] name=nginx repo baseurl=http://nginx.org/packages/centos/7/$basearch/ #os버전 다르면 수정 gpgcheck=0 enabled=1 1-2. Nginx 설치 # yum install nginx 1-3. Nginx 서비스 시작 및 부팅 시 자동으로 시작되도..

Cloud/NCP 2024.01.20

[NCP] NCP VPC 환경에서 3-tier 구축하기 - 1. 기본 설정 (VPC, Subnet, NAT Gateway, Route Table, ACG 등)

1. VPC 및 Subnet 생성 VPC : 10.10.0.0/16 Subnet web : 10.10.0.0/24, Internet Gateway는 Y (Public) was : 10.10.1.0/24, Internet Gateway는 N (Private) DB : 10.10.2.0/24, Internet Gateway는 N (Private) NAT gateway용 서브넷 생성 : 10.10.3.0/24, Internet Gateway는 Y (Public), 용도는 NAT Gateway 2. NAT Gateway 생성 3. Route Table 설정 Route Table 생성 후, 연관 Subnet 및 Routes 설정 4. ACG 설정 WEB IP : 10.10.0.6/32 WAS IP : 10.10...

Cloud/NCP 2024.01.15