1. Go 설치하기 https://bitkunst.tistory.com/entry/Ethereum이더리움-개발-환경-세팅
sudo apt update
sudo apt install golang

sudo apt install -y libgmp3-dev tree make build-essential
  1. Go 버전 업그레이드
git clone https://github.com/udhos/update-golang
cd update-golang
sudo ./update-golang.s

  1. geth 다운로드
cd ~
mkdir Ethereum
cd Ethereum

git clone https://github.com/ethereum/go-ethereum
sudo apt-get update
sudo apt-get -y upgrade

cd go-ethereum
make geth

  1. geth 실행
cd go-ethereum

cd ./build/bin

./geth version

./geth
  1. geth 환경 변수 설정
pwd 
결과로 나온 값 복사

vi ~/.bash_profile

export PATH=$PATH:(아까 나온값)

source ~/.bash_profile
  1. 방화벽 열기

sudo ufw allow ssh
sudo ufw allow 30305/tcp
sudo ufw allow 30305/udp
sudo ufw allow 30306/tcp
sudo ufw allow 30306/udp
sudo ufw allow 30307/tcp
sudo ufw allow 30307/udp
sudo ufw allow 8551/tcp
sudo ufw allow 8551/udp
sudo ufw allow 8552/tcp
sudo ufw allow 8552/udp
sudo ufw allow 3334/tcp
sudo ufw allow 3334/udp
sudo ufw enable

  1. 노드 실행
bootnode -nodekey boot.key -addr :30305 

./node1.sh

./node2.sh

echo 'export PATH=$PATH:/home/ubuntu/Ethereum/go-ethereum/build/bin' >> ~/.bashrc
http://j9c110.p.ssafy.io:3334