My naver Blog : 손지가 쌓고 쌓아가는 블로그 : 네이버 블로그
Validator
하드웨어
CPU :
8코어 16쓰레드
2.8GHz 이상
Intel Xeon Skylake 이상
메모리 : 32GB RAM.
도커 설치
1.
cd …
apt update -y && apt upgrade -y
apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
add-apt-repository “deb [arch=amd64] Index of linux/ubuntu/ $(lsb_release -cs) stable”
apt-get update && sudo apt-get install docker-ce docker-ce-cli containerd.io
도커 컴포즈
1.
curl -L “https://github.com/docker/compose/releases/download/v2.6.0/docker-compose-$(uname -s)-$(uname -m)” -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
CLI 설치
1.
mkdir ~/test
cd ~/test
apt install unzip
unzip aptos-cli-0.3.1-Ubuntu-x86_64.zip
chmod +x aptos
mv aptos /bin
aptos
(버전 확인 : aptos 0.3.1 이라면 다음 진행)
Docker버전 밸리데이터 설치 시작
1.
wget https://raw.githubusercontent.com/aptos-labs/aptos-core/main/docker/compose/aptos-node/docker-compose.yaml
wget https://raw.githubusercontent.com/aptos-labs/aptos-core/main/docker/compose/aptos-node/validator.yaml
aptos genesis generate-keys --output-dir ~/test/keys
aptos genesis set-validator-configuration
–local-repository-dir ~/test
–username 이곳에 디스코드 아이디 넣어주기!!
–owner-public-identity-file ~/test/keys/public-keys.yaml
–validator-host 149.28.55.41:6180
–full-node-host 45.63.1.25:6182
–stake-amount 100000000000000
nano layout.yaml
root_key: “D04470F43AB6AEAA4EB616B72128881EEF77346F2075FFE68E14BA7DEBD8095E”
users: [“여기에 디스코드 아이디 입력!!”]
chain_id: 43
allow_new_validators: false
epoch_duration_secs: 7200
is_test: true
min_stake: 100000000000000
min_voting_threshold: 100000000000000
max_stake: 100000000000000000
recurring_lockup_duration_secs: 86400
required_proposer_stake: 100000000000000
rewards_apy_percentage: 10
voting_duration_secs: 43200
voting_power_increase_limit: 20
wget https://github.com/aptos-labs/aptos-core/releases/download/aptos-framework-v0.3.0/framework.mrb
aptos genesis generate-genesis --local-repository-dir ~/test --output-dir ~/test
밸리데이터 시작
docker-compose up -d
로그보기
docker-compose up logs -f --tail 100
밸리데이터 정상 여부 확인
curl 127.0.0.1:9101/metrics 2> /dev/null | grep “aptos_state_sync_version”
+fullnode
하드웨어
CPU :
8코어 16쓰레드
2.8GHz 이상
Intel Xeon Skylake 이상
메모리 : 32GB RAM.
도커 설치
1.
cd …
apt update -y && apt upgrade -y
apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
add-apt-repository “deb [arch=amd64] Index of linux/ubuntu/ $(lsb_release -cs) stable”
apt-get update && sudo apt-get install docker-ce docker-ce-cli containerd.io
도커 컴포즈
1.
curl -L “https://github.com/docker/compose/releases/download/v2.6.0/docker-compose-$(uname -s)-$(uname -m)” -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
CLI 설치
1.
mkdir ~/test
cd ~/test
apt install unzip
unzip aptos-cli-0.3.1-Ubuntu-x86_64.zip
chmod +x aptos
mv aptos /bin
aptos
(버전 확인 : aptos 0.3.1 이라면 다음 진행)
Docker버전 밸리데이터 설치 시작
1.
wget https://raw.githubusercontent.com/aptos-labs/aptos-core/main/docker/compose/aptos-node/docker-compose.yaml
wget https://raw.githubusercontent.com/aptos-labs/aptos-core/main/docker/compose/aptos-node/validator.yaml
aptos genesis generate-keys --output-dir ~/test/keys
aptos genesis set-validator-configuration
–local-repository-dir ~/test
–username 이곳에 디스코드 아이디 넣어주기!!
–owner-public-identity-file ~/test/keys/public-keys.yaml
–validator-host 149.28.55.41:6180
–full-node-host 45.63.1.25:6182
–stake-amount 100000000000000
nano layout.yaml
root_key: “D04470F43AB6AEAA4EB616B72128881EEF77346F2075FFE68E14BA7DEBD8095E”
users: [“여기에 디스코드 아이디 입력!!”]
chain_id: 43
allow_new_validators: false
epoch_duration_secs: 7200
is_test: true
min_stake: 100000000000000
min_voting_threshold: 100000000000000
max_stake: 100000000000000000
recurring_lockup_duration_secs: 86400
required_proposer_stake: 100000000000000
rewards_apy_percentage: 10
voting_duration_secs: 43200
voting_power_increase_limit: 20
wget https://github.com/aptos-labs/aptos-core/releases/download/aptos-framework-v0.3.0/framework.mrb
aptos genesis generate-genesis --local-repository-dir ~/test --output-dir ~/test
+풀노드 설치시작
1.
wget https://raw.githubusercontent.com/aptos-labs/aptos-core/main/docker/compose/aptos-node/docker-compose-fullnode.yaml
wget https://raw.githubusercontent.com/aptos-labs/aptos-core/main/docker/compose/aptos-node/fullnode.yaml
nano fullnode.yaml
이부분에서 >addresses:
- “/ip4//tcp/6181/noise-ik/f0274c2774519281a8332d0bb9d8101bd58bc7bb154b38039bc9096ce04e1237/handshake/0”
role: “Validator”
변경 본인 벨리데이터 IP 넣기
3.
벨리데이터에 깔려있는 아래 파일지우고 복사해주기
validator-full-node-identity.yaml
genesis.blob
waypoint.txt
풀노드 시작하기
docker-compose -f docker-compose-fullnode.yaml up -d
풀노드 로그보기
docker-compose -f docker-compose-fullnode.yaml logs -f --tail 100