프로젝트

일반

사용자정보

2 Install Myd-Data-Server » 이력 » 개정판 7

개정판 6 (이름없음, 2023/07/12 02:55) → 개정판 7/11 (이름없음, 2023/07/12 02:56)

h1. Install Utils for Myd-Data-Server 

 h2. Git 설치 

 Git repository로부터 서버 구성 요소를 다운로드 받기 위해 git을 설치해야 합니다. 


 <pre><code class="shell"> 
 sudo apt install git 
 </code></pre> 



 h2. Docker 설치 

 Linux 상에서 docker container 를 구동하기 위해 docker engine 을 설치해야 합니다. 
 Ubuntu 기준으로는 아래와 같이 진행할 수 있습니다. 


 <pre><code class="shell"> 
 sudo apt-get update 
 sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin 
 </code></pre> 

 Ref: https://docs.docker.com/engine/install/ubuntu/ 

 docker-ce 패키지를 찾을 수 없다는 에러가 나오는 경우 아래의 명령어를 입력해 줍니다. 

 <pre><code class="shell"> 
 $ sudo apt-get update 
 $ sudo apt-get install ca-certificates curl gnupg lsb-release  
 $ 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 $(lsb_release -cs) stable" 
 $ apt-get update 
 $ sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin 
 </code></pre> 

 h2. docker-compose 설치 

 Linux 내에 container 배포를 위해서는 docker-compose 설치가 필요합니다. 


 <pre><code class="shell"> 
 $ sudo curl -SL https://github.com/docker/compose/releases/download/v2.20.0/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose 
 ... 
 $ sudo chmod +x /usr/local/bin/docker-compose 
 $ docker-compose --version 
 Docker Compose version v2.20.0 
 </code></pre> 



 Ref: https://docs.docker.com/compose/install/standalone/ https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-compose-on-ubuntu-20-04 

 --- 

 **다음 장으로 이동: [[3 Install Myd-Data-Server]]**
클립보드 이미지 추가 (최대 크기: 97.7 MB)