Skip to content

NCP server initial script

younguna edited this page Nov 24, 2019 · 2 revisions

설정내용

  • apt-get 업데이트
  • locale 설정
  • docker 설치
  • docker-compose 설치

Script

# root user의 경우 (NCP server는 root user로 시작)

## apt-get 업데이트
apt-get update

## set locale
yes | apt-get install language-pack-ko
locale-gen ko_KR.UTF-8
# sudo -i (root 아닐시)
cat << 'EOF' > /etc/default/locale
LANG="ko_KR.UTF-8"
LANGUAGE="ko_KR:ko:en_US:en"
EOF

## install docker
apt-get install docker.io

## install docker-compose
curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
Clone this wiki locally