설치하기

OS 구성

표준 64bit Linux 배포판에서 동작한다.

  • RHEL/CentOS 9

  • RHEL/CentOS 8

  • RHEL/CentOS 7

  • Rocky 9

  • Rocky 8

  • Ubuntu 22.04

  • Ubuntu 20.04

  • Ubuntu 18.04

설치시 yum 등 외부 패키지 관리자에 대한 의존성이 있어 외부 통신이 가능해야 한다.

AWS 환경구성

AWS 환경이라면 CDN 서비스로 CloudFront 를 이용하는 경우가 많다. 때문에 AWS환경이라면 M2는 콘텐츠 서비스를 담당하는 경우가 많다.

이런 경우 다음 환경을 권장한다.

  • OS 지원
  • 인스턴스
    • c61.2xlarge 이상

    • m6i.2xlarge 이상

    • r6i.2xlarge 이상

    • c61.xlarge 분산전용 구성Child Layer

  • 디스크
    • 루트(/) 디스크 - 100GB 이상 (메모리가 128GB이상인 경우 200GB 이상 권장)

    • 로그 저장 디스크 - 100GB 이상

인스턴스

시간당 요금

vCPU

메모리(GiB)

인스턴스 스토리지(GiB)

네트워킹 성능(Gbps)

c6i.xlarge PoC

0.192 USD

4

8

EBS 전용

최대 12,500메가비트

c6i.2xlarge

0.384 USD

8

16

EBS 전용

최대 12,500메가비트

c6i.4xlarge 권장

0.768 USD

16

32

EBS 전용

최대 12,500메가비트

c6i.8xlarge

1.536 USD

32

64

EBS 전용

최대 12,500메가비트

m6i.xlarge PoC

0.236 USD

4

16

EBS 전용

최대 12,500메가비트

m6i.2xlarge

0.472 USD

8

32

EBS 전용

최대 12,500메가비트

m6i.4xlarge

0.944 USD

16

64

EBS 전용

최대 12,500메가비트

r6i.xlarge PoC

0.304 USD

4

32

EBS 전용

최대 12,500메가비트

r6i.2xlarge

0.608 USD

8

64

EBS 전용

최대 12,500메가비트

r6i.4xlarge

1.216 USD

16

128

EBS 전용

최대 12,500메가비트

Note

  • 비용은 서울 리젼, 23년 3월 기준이며 서비스 규모와 사용기능 및 workload의 크기에 따라 변동이 됩니다.

  • 일반적으로 PoC 는 4vCPU, SMB 프로덕션은 8vCPU, Enterprise 프로덕션은 16vCPU를 권장합니다.

라이선스 발급

발급받은 라이선스 파일 license.xml 은 반드시 /usr/local/m2 에 존재해야 M2가 정상적으로 구동된다.

트라이얼 라이선스 발급

신규 고객의 경우 다음 절차를 통해 라이선스를 발급한다.

Warning

트라이얼 라이선스 주의사항

  • 트라이얼 라이선스는 유효기간이 만료되면 서비스가 종료된다. 때문에 절대로 실서비스에 투입해서는 안된다.

  • 향후 정식 라이선스로 교체해야 하는 경우 license.xml 을 덮어 씌우고 반드시 솔루션을 재시작해야 한다.

설치

설치는 반드시 root 로 진행하며 다음 단계를 따른다.

  1. 최신버전의 M2 를 다운로드 받는다.

    [root@localhost ~]# wget https://example.com/m2fw/production/m2.1.0.0.rhel.2.6.32.x64.tar.gz
    --2022-06-17 13:29:14--  https://example.com/m2fw/production/m2.1.0.0.rhel.2.6.32.x64.tar.gz
    Resolving foobar.com... 10.10.10.10
    Connecting to foobar.com|10.10.10.10|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 71340645 (68M) [application/x-gzip]
    Saving to: “https://example.com/m2fw/production/m2.1.0.0.rhel.2.6.32.x64.tar.gz”
    
    100%[===============================================>] 71,340,645  42.9M/s   in 1.6s
    
    2022-06-17 13:29:15 (42.9 MB/s) - m2.1.0.0.rhel.2.6.32.x64.tar.gz” saved [71340645/71340645]
    
  2. 압축을 해지한다.

    [root@localhost ~]# tar -zxf m2.1.0.0.rhel.2.6.32.x64.tar.gz
    
  3. 설치 스크립트를 실행한다.

    [root@localhost ~]# ./m2fw_v1.0.0/install.sh
    
  4. 설치과정은 /usr/local/m2/install.log 에 기록된다. 로그를 통해 설치 중 발생하는 문제를 알 수 있다.

    # Date: 2022.06.21 12:22:40
    # Target: M2 v1.0.0
    # Install-Path: /usr/local/m2
    # Installing M2-CORE Environments
    # Registing M2-CORE Service
    # Installing M2-RT
    # Installing M2-RT files
    ‘/root/m2fw_v1.0.0/rt/start-stop-daemon’ -> ‘/usr/sbin/start-stop-daemon’
    ‘/root/m2fw_v1.0.0/rt/fuse.conf’ -> ‘/etc/fuse.conf’
    ‘/root/m2fw_v1.0.0/rt/libfuse.so.2’ -> ‘/usr/local/m2/rt/libfuse.so.2’
    ‘/root/m2fw_v1.0.0/rt/libtbbmalloc_proxy.so’ -> ‘/usr/local/m2/rt/libtbbmalloc_proxy.so’
    ‘/root/m2fw_v1.0.0/rt/libtbbmalloc_proxy.so.2’ -> ‘/usr/local/m2/rt/libtbbmalloc_proxy.so.2’
    ‘/root/m2fw_v1.0.0/rt/libtbbmalloc.so’ -> ‘/usr/local/m2/rt/libtbbmalloc.so’
    ‘/root/m2fw_v1.0.0/rt/libtbbmalloc.so.2’ -> ‘/usr/local/m2/rt/libtbbmalloc.so.2’
    ‘/root/m2fw_v1.0.0/rt/libtbb.so’ -> ‘/usr/local/m2/rt/libtbb.so’
    ‘/root/m2fw_v1.0.0/rt/libtbb.so.2’ -> ‘/usr/local/m2/rt/libtbb.so.2’
    ‘/root/m2fw_v1.0.0/rt/libMagickCore-6.Q16.so.6’ -> ‘/usr/local/m2/rt/libMagickCore-6.Q16.so.6’
    ‘/root/m2fw_v1.0.0/rt/libMagickWand-6.Q16.so.6’ -> ‘/usr/local/m2/rt/libMagickWand-6.Q16.so.6’
    ‘/root/m2fw_v1.0.0/rt/libfreetype.so.6’ -> ‘/usr/local/m2/rt/libfreetype.so.6’
    ‘/root/m2fw_v1.0.0/rt/libwebp.so.7’ -> ‘/usr/local/m2/rt/libwebp.so.7’
    ‘/root/m2fw_v1.0.0/rt/libwebpmux.so.3’ -> ‘/usr/local/m2/rt/libwebpmux.so.3’
    ‘/root/m2fw_v1.0.0/rt/libtiff.so.5’ -> ‘/usr/local/m2/rt/libtiff.so.5’
    ‘/root/m2fw_v1.0.0/rt/libcares.so.2’ -> ‘/usr/local/m2/rt/libcares.so.2’
    ‘/root/m2fw_v1.0.0/rt/libcrypto.so.1.1’ -> ‘/usr/local/m2/rt/libcrypto.so.1.1’
    ‘/root/m2fw_v1.0.0/rt/libev.so.4’ -> ‘/usr/local/m2/rt/libev.so.4’
    ‘/root/m2fw_v1.0.0/rt/libnghttp2.so.14’ -> ‘/usr/local/m2/rt/libnghttp2.so.14’
    ‘/root/m2fw_v1.0.0/rt/libssl.so.1.1’ -> ‘/usr/local/m2/rt/libssl.so.1.1’
    ‘/root/m2fw_v1.0.0/rt/m2rtd’ -> ‘/usr/local/m2/rt/m2rtd’
    ‘/root/m2fw_v1.0.0/rt/m2rtx’ -> ‘/usr/local/m2/rt/m2rtx’
    ‘/root/m2fw_v1.0.0/rt/m2rtr’ -> ‘/usr/local/m2/rt/m2rtr’
    ‘/root/m2fw_v1.0.0/rt/m2rttop’ -> ‘/usr/local/m2/rt/m2rttop’
    ‘/root/m2fw_v1.0.0/rt/m2rty’ -> ‘/usr/local/m2/rt/m2rty’
    ‘/root/m2fw_v1.0.0/rt/m2rtapi’ -> ‘/usr/local/m2/rt/m2rtapi’
    ‘/root/m2fw_v1.0.0/rt/server.xml.default’ -> ‘/usr/local/m2/rt/server.xml.default’
    ‘/root/m2fw_v1.0.0/rt/vhosts.xml.default’ -> ‘/usr/local/m2/rt/vhosts.xml.default’
    ‘/root/m2fw_v1.0.0/rt/m2rt_diskinfo.sh’ -> ‘/usr/local/m2/rt/m2rt_diskinfo.sh’
    ‘/root/m2fw_v1.0.0/rt/LICENSE-3RD-PARTY.txt’ -> ‘/usr/local/m2/rt/LICENSE-3RD-PARTY.txt’
    ‘/root/m2fw_v1.0.0/rt/server.xml.default’ -> ‘/usr/local/m2/rt/server.xml’
    ‘/root/m2fw_v1.0.0/rt/vhosts.xml.default’ -> ‘/usr/local/m2/rt/vhosts.xml’
    # Registing M2-RT Service
    ‘/root/m2fw_v1.0.0/rt/fonts/EBGaramond-Bold.ttf’ -> ‘/usr/local/m2/common/fonts/EBGaramond-Bold.ttf’
    ‘/root/m2fw_v1.0.0/rt/fonts/EBGaramond-Regular.ttf’ -> ‘/usr/local/m2/common/fonts/EBGaramond-Regular.ttf’
    ‘/root/m2fw_v1.0.0/rt/fonts/Lato-Bold.ttf’ -> ‘/usr/local/m2/common/fonts/Lato-Bold.ttf’
    ‘/root/m2fw_v1.0.0/rt/fonts/Lato-Regular.ttf’ -> ‘/usr/local/m2/common/fonts/Lato-Regular.ttf’
    ‘/root/m2fw_v1.0.0/rt/fonts/Montserrat-Bold.ttf’ -> ‘/usr/local/m2/common/fonts/Montserrat-Bold.ttf’
    ‘/root/m2fw_v1.0.0/rt/fonts/Montserrat-Regular.ttf’ -> ‘/usr/local/m2/common/fonts/Montserrat-Regular.ttf’
    ‘/root/m2fw_v1.0.0/rt/fonts/NanumBrush.ttf’ -> ‘/usr/local/m2/common/fonts/NanumBrush.ttf’
    ‘/root/m2fw_v1.0.0/rt/fonts/NanumGothic-Bold.ttf’ -> ‘/usr/local/m2/common/fonts/NanumGothic-Bold.ttf’
    ‘/root/m2fw_v1.0.0/rt/fonts/NanumGothic-ExtraBold.ttf’ -> ‘/usr/local/m2/common/fonts/NanumGothic-ExtraBold.ttf’
    ‘/root/m2fw_v1.0.0/rt/fonts/NanumGothic-Regular.ttf’ -> ‘/usr/local/m2/common/fonts/NanumGothic-Regular.ttf’
    ‘/root/m2fw_v1.0.0/rt/fonts/NanumMyeongjo-Bold.ttf’ -> ‘/usr/local/m2/common/fonts/NanumMyeongjo-Bold.ttf’
    ‘/root/m2fw_v1.0.0/rt/fonts/NanumMyeongjo-ExtraBold.ttf’ -> ‘/usr/local/m2/common/fonts/NanumMyeongjo-ExtraBold.ttf’
    ‘/root/m2fw_v1.0.0/rt/fonts/NanumMyeongjo-Regular.ttf’ -> ‘/usr/local/m2/common/fonts/NanumMyeongjo-Regular.ttf’
    ‘/root/m2fw_v1.0.0/rt/fonts/NanumPen.ttf’ -> ‘/usr/local/m2/common/fonts/NanumPen.ttf’
    ‘/root/m2fw_v1.0.0/rt/fonts/OpenSans-BoldItalic.ttf’ -> ‘/usr/local/m2/common/fonts/OpenSans-BoldItalic.ttf’
    ‘/root/m2fw_v1.0.0/rt/fonts/OpenSans-Bold.ttf’ -> ‘/usr/local/m2/common/fonts/OpenSans-Bold.ttf’
    ‘/root/m2fw_v1.0.0/rt/fonts/OpenSans-Italic.ttf’ -> ‘/usr/local/m2/common/fonts/OpenSans-Italic.ttf’
    ‘/root/m2fw_v1.0.0/rt/fonts/OpenSans-Regular.ttf’ -> ‘/usr/local/m2/common/fonts/OpenSans-Regular.ttf’
    ‘/root/m2fw_v1.0.0/rt/fonts/Oswald-Bold.ttf’ -> ‘/usr/local/m2/common/fonts/Oswald-Bold.ttf’
    ‘/root/m2fw_v1.0.0/rt/fonts/Oswald-Regular.ttf’ -> ‘/usr/local/m2/common/fonts/Oswald-Regular.ttf’
    ‘/root/m2fw_v1.0.0/rt/fonts/Raleway-Bold.ttf’ -> ‘/usr/local/m2/common/fonts/Raleway-Bold.ttf’
    ‘/root/m2fw_v1.0.0/rt/fonts/Raleway-Regular.ttf’ -> ‘/usr/local/m2/common/fonts/Raleway-Regular.ttf’
    ‘/root/m2fw_v1.0.0/rt/fonts/Roboto-Bold.ttf’ -> ‘/usr/local/m2/common/fonts/Roboto-Bold.ttf’
    ‘/root/m2fw_v1.0.0/rt/fonts/Roboto-Regular.ttf’ -> ‘/usr/local/m2/common/fonts/Roboto-Regular.ttf’
    ‘/root/m2fw_v1.0.0/rt/fonts/SeoulHangangB.ttf’ -> ‘/usr/local/m2/common/fonts/SeoulHangangB.ttf’
    ‘/root/m2fw_v1.0.0/rt/fonts/SeoulHangangM.ttf’ -> ‘/usr/local/m2/common/fonts/SeoulHangangM.ttf’
    ‘/root/m2fw_v1.0.0/rt/fonts/SeoulNamsanB.ttf’ -> ‘/usr/local/m2/common/fonts/SeoulNamsanB.ttf’
    ‘/root/m2fw_v1.0.0/rt/fonts/SeoulNamsanM.ttf’ -> ‘/usr/local/m2/common/fonts/SeoulNamsanM.ttf’
    ‘/root/m2fw_v1.0.0/rt/fonts/SourceSansPro-Bold.ttf’ -> ‘/usr/local/m2/common/fonts/SourceSansPro-Bold.ttf’
    ‘/root/m2fw_v1.0.0/rt/fonts/SourceSansPro-Regular.ttf’ -> ‘/usr/local/m2/common/fonts/SourceSansPro-Regular.ttf’
    # Installing sub-packages
    curl installed.
    libjpeg installed.
    libgomp installed.
    rrdtool installed.
    # Complete
    M2 installed.