10주차 -3 WebSrv-Leader 인스턴스를 이용하여 Wordpress 초기 구성
실습 관련 구성

전편에서 생성한 RDS 엔드포인트(접속 주소) 메모하기
RDS 생성 후 구성
탭 메뉴에서 다중 AZ와 보조 영역
확인
ALB에 WevSrv-Leader 인스턴스 대상 등록
ALB-TG
클릭
Register targets
클릭
인스턴스 체크 후 -> Include as pending below
클릭
Register pending targets
클릭
추가 되었습니다
EFS 생성 확인
WebSrv-Leader 인스턴스 SSH 접속 후 정보 확인 및 DB 주소 설정
sudo su -
# EFS 파일시스템 마운트 확인
df -hT |egrep '(File|nfs)'
# RDS 엔드포인트를 변수에 지정
RDS=엔드포인트.rds.amazonaws.com
# wp-config.php 파일에 DB 주소를 RDS 엔드포인트로 설정
sed -i "s/localhost/$RDS/g" /var/www/wordpress/wp-config.php
grep -n DB_HOST /var/www/wordpress/wp-config.php
# DB 접속 테스트
mysql -h $RDS -uroot -pqwe12345 -e 'show databases;'
mysql -h $RDS -uroot -pqwe12345
exit
# dig 조회
dig +short $RDS





WebSrv-Leader 퍼블릭 IP주소로 접속




CloudFront Domain 주소로 변경 (https -> http)

변경사항 저장
클릭
글 -> 새로 추가 클릭
글 작성 후 -> 공개
클릭
공개
클릭
쨔잔
다음 실습을 위해 할 사항
ALB 대상 그룹에 인스턴스(WebSrv Leader) 등록 취소
참고 자료: AFOS[2기] 노션 내용
Author And Source
이 문제에 관하여(10주차 -3 WebSrv-Leader 인스턴스를 이용하여 Wordpress 초기 구성), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://velog.io/@icebear2n2/10주차-3-WebSrv-Leader-인스턴스를-이용하여-Wordpress-초기-구성저자 귀속: 원작자 정보가 원작자 URL에 포함되어 있으며 저작권은 원작자 소유입니다.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)