HTTPD3 간단한 Docker 실습 1. volume 생성 docker volume create web_vol docker volume create db_vol docker volume ls //확인 2. network 생성 docker network create --subnet=192.168.100.0/24 --gateway=192.168.100.254 --internal alpha docker network ls //확인 bridge network는 기본으로 있다. 3. os / web1 / web2 container 생성 docker run -itd --name os -v web_vol:/root/html:rw --network bridge centos:latest docker run -itd --name web1 -v web_vol.. 2020. 7. 20. LBaaS를 통한 Loadbalance 1. 확인을 위한 configure-httpd 파일 생성 vi configure-httpd1 #!/bin/bash yum -y install httpd systemctl start httpd systemctl enable httpd echo "WEB1" > /var/www/html/index.html vi configure-httpd2 #!/bin/bash yum -y install httpd systemctl start httpd systemctl enable httpd echo "WEB2" > /var/www/html/index.html 2. Instance 생성 openstack server create --image centos7 --flavor wp --key-name al.. 2020. 7. 13. Open Stack - Cloud-init (wordpress) ** script를 사용해 Instance로 wordpress 올리기 ** Instance 생성할 때 Script를 shell 파일로 만들어 Browse를 이용해 파일을 올릴 수 있다. Customization Script -> 직접 작성도 가능하다. * Instance 생성하기 참고 2020/07/02 - [Infra/프라이빗 클라우드 인프라] - Open Stack 운영.3 (user) /etc/yum.repos.d/mariadb.repo [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.5/centos7-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1 EOF yum-c.. 2020. 7. 2. 이전 1 다음