전체 글 (161) 썸네일형 리스트형 도커(Docker) 컨테이너 내 php 설치 컨테이너 아이디를 입력해서 bash 에 접근합니다. $ docker exec -it 9531b /bin/bash 아래 작업은 root 권한으로 작업합니다. $ su $ apt install php # php 코어 $ apt install php7.3 php7.3-common php7.3-cli # 익스텐션 $ apt install php7.2-bcmath php7.2-bz2 php7.2-curl php7.2-gd php7.2-intl php7.2-json php7.2-mbstring php7.2-readline php7.2-xml php7.2-zip # 아파치 연동 모델 $ apt install libapache2-mod-php7.2 # 편집기 vim $ apt install vim # php 버전 확인.. 도커(Docker) Ubuntu, Apache2 이미지 생성 및 실행 우분투 18.04 버전 이미지를 기반으로 아파치를 설치하는 도커 이미지를 빌드하고 실행합니다. Step1 도커 파일 만들기 # Dockerfile FROM ubuntu:18.04 RUN apt-get update RUN apt install apache2 -y ENV APACHE_RUN_USER www-data ENV APACHE_RUN_GROUP www-data ENV APACHE_LOG_DIR /var/log/apache2 ENV APACHE_PID_FILE /var/run/apache2/apache2.pid EXPOSE 80 CMD ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"] FROM = 기반 이미지 설정 RUN = 명령어 실행 ENV = 환경 변수 Step2 도.. 우분투(Ubuntu) 18.04 도커(Docker) 설치 우분투(Ubuntu) 18.04 버전에서 도커(Docker)를 설치합니다. Step 1 sudo apt update sudo apt install apt-transport-https ca-certificates curl software-properties-common curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable" sudo apt update apt-cache policy docker-ce 명령어를 입력하게 되면 다음 메시지가 출력됩니다. St.. 우분투(Ubuntu) 18.04 Docker Container docker run hello-world root@swlee-laptop:/home/petrucio# docker run hello-world Unable to find image 'hello-world:latest' locally latest: Pulling from library/hello-world 1b930d010525: Pull complete Digest: sha256:f9dfddf63636d84ef479d645ab5885156ae030f611a56f3a7ac7f2fdd86d7e4e Status: Downloaded newer image for hello-world:latest Hello from Docker! This message shows that your installation appe.. CentOS7 Apache SSL인증서 적용 (Certbot, Let's encrypt) 환경 : CentOS7 / Apache EPEL 저장소 활성화 및 apache용 certbot 설치 yum install epel-release yum install certbot python2-certbot-apache certbot에서 apache를 기반으로 자동구성 certbot --apache certbot에서 apache를 수동으로 구성 certbot --apache certonly certbot을 설정하여 구성 완료 후 문제가 없을 경우 아래 메시지가 출력된다. - Congratulations! Your certificate and chain have been saved at: /etc/letsencrypt/live/sengwoolee.dev/fullchain.pem Your key file .. Ubuntu Errors were encountered while processing 해결 1. dpkg 기록 삭제 sudo rm /var/lib/dpkg/info/* 2. dpkg 재설정 sudo dpkg --configure-a 3. 업데이트 apt-get update IaaS, PaaS, SaaS IaaS(Infrastructure as a Service) 서버를 운영하기 위해서 필요한 서버 자원, IP, 네트워크, 스토리지, 전력 등등 을 가상의 환경에서 쉽고 편하게 사용할 수 있도록 서비스 형태로 제공한다. 기존 서버 호스팅보다 하드웨어 확장성이 좋고 탄력적이며 빠른 제공을 할 수 있는 가상화 기술을 이용한다. Pass와 Saas의 기반이 된다. PaaS(Platform as a Service) IaaS를 기본으로 개발툴과 기능, 애플리케이션 배포 등 개발환경에 부가적인 서비스를 안전하게 제공하는 것이다. 미들웨어와 데이터베이스 관리, 애널리틱스 혹은 운영체제 등이 포함된다. 개발자가 애플리케이션을 개발하고 배포하는데 필요한 모든 것들을 제공해야 한다. PaaS를 이용하면 개발자는 기반 인프라.. 보일러 플레이트 (Boilerplate) 보일러플레이트(boilerplate)는 변경 없이 재사용할 수 있는 저작품을 의미하며, 프로그래밍에서는 상용구 코드를 의미한다. 어떤 동작을 수행하기 위해 사전에 작성해야 하는 코드로서 자바에서는 클래스의 getter, setter 메소드를 말한다. 보일러 플레이트의 특징은 다음과 같다. 1. 최소한의 변경으로 재사용할 수 있는것 2. 적은 수정만으로 여러 곳에 활용이 가능한 코드, 문구 3. 각종 문서에서 반복적으로 인용되는 문서의 한 부분 이전 1 ··· 14 15 16 17 18 19 20 21 다음