2 Install Myd-Data-Server » 이력 » 버전 10
이름없음, 2023/07/25 07:45
| 1 | 8 | 이름없음 | h1. Install Myd-Data-Server |
|---|---|---|---|
| 2 | 1 | 이름없음 | |
| 3 | h2. Git 설치 |
||
| 4 | |||
| 5 | Git repository로부터 서버 구성 요소를 다운로드 받기 위해 git을 설치해야 합니다. |
||
| 6 | |||
| 7 | |||
| 8 | <pre><code class="shell"> |
||
| 9 | sudo apt install git |
||
| 10 | </code></pre> |
||
| 11 | |||
| 12 | |||
| 13 | |||
| 14 | 8 | 이름없음 | h2. Git을 통해 Repository 받기 |
| 15 | 1 | 이름없음 | |
| 16 | <pre><code class="shell"> |
||
| 17 | 8 | 이름없음 | $ git clone https://gitlab.com/snplab1/myd-data-server.git |
| 18 | $ cd myd-data-server |
||
| 19 | 1 | 이름없음 | </code></pre> |
| 20 | 5 | 이름없음 | |
| 21 | 9 | 이름없음 | h2. DB password 설정 |
| 22 | 1 | 이름없음 | |
| 23 | 8 | 이름없음 | Database 는 사용자의 자산이므로, password역시 사용자가 설정해야 합니다. |
| 24 | 10 | 이름없음 | 만약 비밀번호를 바꾸고 싶다면, 다시 아래의 명령어를 입력하여 비밀번호를 변경해 주십시오. |
| 25 | 1 | 이름없음 | |
| 26 | 8 | 이름없음 | > *중요* : 한번 설정된 password 는 변경할 때, database 내부의 데이터를 읽지 못하게 될 수 있으므로 신중히 기억하거나, 안전하게 보관해야 합니다 |
| 27 | 1 | 이름없음 | |
| 28 | 6 | 이름없음 | <pre><code class="shell"> |
| 29 | 8 | 이름없음 | $ bash dbpassword.sh |
| 30 | 1 | 이름없음 | |
| 31 | 8 | 이름없음 | Enter DB Password: _여기에 DB 비밀번호를 입력해 주십시오._ |
| 32 | Enter DB Password again: _한번 더 입력해 주십시오._ |
||
| 33 | </code></pre> |
||
| 34 | 1 | 이름없음 | |
| 35 | --- |
||
| 36 | |||
| 37 | 10 | 이름없음 | h2. Docker container 시작하기 |
| 38 | |||
| 39 | 아래의 명령어를 입력하여 컨테이너를 동작합니다. |
||
| 40 | 사용할 도메인과 담당자의 이메일, 서버 IP 를 준비하여 주십시오. |
||
| 41 | |||
| 42 | <pre><code class="shell"> |
||
| 43 | $ bash dockerconf.sh |
||
| 44 | |||
| 45 | docker container start... |
||
| 46 | b2b.on-premise start |
||
| 47 | b2b.on-premise.db start |
||
| 48 | data-analysis start |
||
| 49 | |||
| 50 | Enter domain: 여기에 사용할 도메인을 입력해 주십시오. |
||
| 51 | |||
| 52 | docker container start... |
||
| 53 | b2b.on-premies.web start |
||
| 54 | |||
| 55 | Saving debug log to /var/log/letsencrypt/letsencrypt.log |
||
| 56 | Plugins selected: Authenticator standalone, Installer None |
||
| 57 | Enter email address (used for urgent renewal and security notices) |
||
| 58 | (Enter 'c' to cancel): 여기에 관련 정보를 받을 이메일을 입력해 주십시오. |
||
| 59 | |||
| 60 | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
||
| 61 | Please read the Terms of Service at |
||
| 62 | https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf. You must |
||
| 63 | agree in order to register with the ACME server. Do you agree? |
||
| 64 | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
||
| 65 | (Y)es/(N)o: Y |
||
| 66 | |||
| 67 | # 약관 동의에 Yes 를 해야 진행이 가능합니다. |
||
| 68 | |||
| 69 | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
||
| 70 | Would you be willing, once your first certificate is successfully issued, to |
||
| 71 | share your email address with the Electronic Frontier Foundation, a founding |
||
| 72 | partner of the Let's Encrypt project and the non-profit organization that |
||
| 73 | develops Certbot? We'd like to send you email about our work encrypting the web, |
||
| 74 | EFF news, campaigns, and ways to support digital freedom. |
||
| 75 | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
||
| 76 | (Y)es/(N)o: N |
||
| 77 | |||
| 78 | # 이메일을 통해 Let's Encrypt 프로젝트 정보를 안받도록 설정합니다. |
||
| 79 | |||
| 80 | Successfully received certificate. |
||
| 81 | Certificate is saved at: /etc/letsencrypt/live/도메인/fullchain.pem |
||
| 82 | Key is saved at: /etc/letsencrypt/live/도메인/privkey.pem |
||
| 83 | This sertificate expires on 2023-08-29 |
||
| 84 | These files will be updated when the certificate renews. |
||
| 85 | ... |
||
| 86 | |||
| 87 | Enter server ip: 여기에 서버 IP 주소를 입력해 주십시오. |
||
| 88 | |||
| 89 | docker container down... |
||
| 90 | b2b.on-premise.web |
||
| 91 | |||
| 92 | docker container start... |
||
| 93 | b2b.on-premise.web start |
||
| 94 | </code></pre> |
||
| 95 | |||
| 96 | --- |
||
| 97 | |||
| 98 | **다음 장으로 이동: [[3]]** |