Ethereum_01.Geth 설치

안녕하세요 카이조쿠BM 입니다. 

 

오늘은 Block Chain 종류 중 하나인 Ethereum을 직접 설치 해보겠습니다.

 

개발 환경은 다음과 같습니다.

 

PC : Ubuntu 16.04 LTS

Ethereum Client : Geth 1.8.23-stable

 

가장 먼저 해야 할 일은 당연히 Ethereum 설치겠죠? 

 

Ethereum을 직접 하기 위해서는 Ethereum Client를 설치해야 합니다.

 

Ethereum Client는 여러가지 언어로 개발되어 많은 Version의 Ethereum Client가 존재합니다.

 

Ethereum Clients

출처 : http://www.ethdocs.org/en/latest/ethereum-clients/choosing-a-client.htm

우리는 테스트용으로 가장 많이 사용되는 Go 언어로 개발된 Geth(Go-Ethereum)을 사용해 봅시다.

 

1. PPA 패키지 설치

 

아래 명령어를 순서대로 실행하면 됩니다.

 

> sudo apt-get install software-properties-common

 

> sudo add-apt-repository -y ppa:ethereum/ethereum

 

우분투 패키지들은 업데이트가 자주 되기 때문에 PPA로 최신 패키지 설치가 가능합니다.

 

 

2.Geth 설치

 

> sudo apt-get install ethereum

 

Ethereum 설치가 완료되면 업데이트를 한번 해줍니다. 

 

> sudo apt-get update

 

그리고 설치한 Ethereum 버전을 확인해 봅시다.

 

> geth version

 

Ethereum 설치 가이드 : https://github.com/ethereum/go-ethereum/wiki/Installation-Instructions-for-Ubuntu

 

ethereum/go-ethereum

Official Go implementation of the Ethereum protocol - ethereum/go-ethereum

github.com

 

오늘은 Geth 설치 방법에 대하여 알아보았습니다. 

 

다음 포스팅에서는 Geth를 위한 디렉터리 설정 및 Genesis Block 설정에 대하여 알아봅시다!!

 

이상 카이조쿠BM 이었습니다.