Nodes/algorand/localhost

algorand

Algorand 호스트 설치 가이드

3분 읽기 · localhost

list목차(7)

Algorand 호스트 설치 가이드

Ubuntu 22.04 기준 algod 설치·실행 개요입니다. 공식 문서: https://developer.algorand.org/docs/run-a-node/setup/install/.

시스템 요구사항

항목 권장 (Relay)
CPU 4+ vCPU
RAM 8 GB+
Disk 200 GB SSD
Network 100 Mbps+

패키지 설치 (Debian/Ubuntu)

# APT 저장소 추가
curl -o - https://releases.algorand.com/key.pub | sudo tee /etc/apt/keyrings/algorand.asc > /dev/null
echo "deb [signed-by=/etc/apt/keyrings/algorand.asc] https://releases.algorand.com/deb/ stable main" \
  | sudo tee /etc/apt/sources.list.d/algorand.list

sudo apt update
sudo apt install -y algorand

algod -v

네트워크 설정

# Data 디렉토리 준비
ALGORAND_DATA=/var/lib/algorand
sudo mkdir -p $ALGORAND_DATA
sudo chown -R algorand:algorand $ALGORAND_DATA

# Mainnet genesis 파일 복사 (패키지에 포함되어 있음)
sudo cp /var/lib/algorand/genesis/mainnet/genesis.json $ALGORAND_DATA/

# Fast catchup (권장)
goal node start -d $ALGORAND_DATA
goal node catchup $(curl -s https://algorand-catchpoints.s3.us-east-2.amazonaws.com/channel/mainnet/latest.catchpoint) -d $ALGORAND_DATA

systemd 서비스

패키지 설치 시 algorand.service가 자동 등록됩니다.

sudo systemctl enable --now algorand
journalctl -u algorand -f

상태 조회

goal node status -d $ALGORAND_DATA

Participation (검증자) 키 생성

# Consensus 참여 키 (첫 라운드 ~ 마지막 라운드)
goal account addpartkey \
  -a <YOUR_ADDRESS> \
  --roundFirstValid=$(goal node status -d $ALGORAND_DATA | grep "Last committed block" | awk '{print $4}') \
  --roundLastValid=<future_round> \
  -d $ALGORAND_DATA

# 온라인으로 등록
goal account changeonlinestatus -a <YOUR_ADDRESS> --online=true -d $ALGORAND_DATA

참고

algorand 다른 챕터