Polygon PoS 호스트 설치 가이드
Ubuntu 22.04 기준 heimdall + bor 소스 빌드·실행 개요입니다.
- 공식 문서: https://docs.polygon.technology/pos/how-to/full-node-deployment/
- Launch 저장소: https://github.com/maticnetwork/launch
시스템 요구사항 (Sentry)
| 항목 | 권장 |
|---|---|
| CPU | 8+ vCPU |
| RAM | 32 GB+ |
| Disk | 2.5 TB NVMe |
| Network | 1 Gbps |
빌드
Heimdall
git clone https://github.com/maticnetwork/heimdall.git
cd heimdall
git checkout v2.0.3
make install
heimdalld version
Bor
git clone https://github.com/maticnetwork/bor.git
cd bor
git checkout v2.0.6
make bor
sudo cp build/bin/bor /usr/local/bin/
bor version
초기화 / Genesis
# Heimdall
heimdalld init --chain=mainnet --home $HOME/.heimdalld
# launch 저장소의 heimdall-config.toml 복사
cp /path/to/launch/mainnet-v1/sentry/sentry/heimdall/config/heimdall-config.toml $HOME/.heimdalld/config/
# Bor
bor server --chain=mainnet --init
# launch 저장소의 config.toml 복사
systemd 서비스 (두 개 유닛)
# /etc/systemd/system/heimdalld.service
[Unit]
Description=Polygon Heimdall
After=network-online.target
[Service]
User=polygon
ExecStart=/usr/local/bin/heimdalld start --home /home/polygon/.heimdalld
Restart=on-failure
LimitNOFILE=65535
# /etc/systemd/system/bor.service
[Unit]
Description=Polygon Bor
After=heimdalld.service
Requires=heimdalld.service
[Service]
User=polygon
ExecStart=/usr/local/bin/bor server --chain=mainnet
Restart=on-failure
LimitNOFILE=65535