클라우드 (419) 썸네일형 리스트형 Vagrant 장치 추가 더보기 config.vm.define "wp-storage" do |ubuntu| ubuntu.vm.box = "ubuntu/focal64" ubuntu.vm.hostname = "wp-storage" ubuntu.vm.network "private_network", ip: "192.168.200.18" ubuntu.vm.provider "virtualbox" do |vb| vb.name = "wp-storage" vb.cpus = 2 vb.memory = 2048 unless File.exist?('./.disk/nfs.vdi') vb.customize ['createmedium', 'disk', '--filename', './.disk/nfs.vdi', '--size', 10240] end vb.cu.. devops 로드맵 https://roadmap.sh/devops Developer Roadmaps Community driven roadmaps, articles, guides, quizzes, tips and resources for developers to learn from, identify their career paths, know what they don't know, find out the knowledge gaps, learn and improve. roadmap.sh HA-Proxy 로드밸런서 wp-lb 192.168.200.10 / HA-Proxy -> 로드밸런서 wp-web1 192.168.200.11 / Apache2 -> 웹서버 wp-web2 192.168.200.12 / Apache2 -> 웹서버 wp-db 192.168.200.15 / MySQL -> 데이터베이스 wp-storage 192.168.200.18 / NFS -> 네트워크 파일 시스템 더보기 # web1 웹서버 설치 :~/vagrant/wp$ vagrant ssh web1 vagrant@web1:~$ sudo apt update vagrant@web1:~$ sudo apt-get install apache2 vagrant@web1:~$ sudo su - root root@web1:~# echo 'web1' > /var/w.. Vagrant Vagrantfile 작성 Vagrantfile 파일을 작성하여 가상머신 만들기 -> init를 하지 않고 작성한 Vagrantfile을 불러와 가상 머신을 생성한다 web1 가상머신 생성 더보기 :~/vagrant$ mkdir wp :~/vagrant$ cd # Vagrantfile 파일 생성 :~/vagrant/wp$ vi Vagrantfile # -*- mode: ruby -*- # vi: set ft=ruby : Vagrant.configure("2") do |config| config.vm.define "web1" do |ubuntu| ubuntu.vm.box = "ubuntu/focal64" ubuntu.vm.hostname = "web1" ubuntu.vm.network "private_network", ip: "19.. Vagrant Vagrant 란?? VM을 쉽게 생성하고 관리하는 자동화 도구 코드형 인프라(Infrastructure as Code, IaC) 도구 시스템을 미리 코드화하여 언제든지 즉시 시스템을 구성할 수 있다 https://www.vagrantup.com/downloads 더보기 curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add - sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"sudo apt-get update &&sudo apt-get install vagrant 더보기 # centos7 설치 :~$ mk.. 클라우드 GCP SQL MySQL 인스턴스 생성 selinux 모드 변경 setenforce 0 클라우드 GCP 스토리지 버킷 만들기 공개 액세스 전환 공개 URL https://storage.googleapis.com/dahye/gcp.tar 인스턴스 생성 더보기 #!/bin/bash yum install -y httpd wget unzip systemctl enable --now httpd mkdir ~/data && cd $_ wget https://storage.googleapis.com/dahye/gcp.tar tar -xvf gcp.tar -C /var/www/html/ 파일 스토리지 클라우드 GCP 부하분산 , 인스턴스 그룹 생성 인스턴스 그룹 생성 부하 분산 DNS 레코드 세트 추가 이전 1 ··· 22 23 24 25 26 27 28 ··· 53 다음