• Hệ Sinh Thái
    • Ethereum
      • Polygon
      • Arbitrum
    • Aptos
    • Sui
    • BNB Chain
    • Polkadot
    • Solana
    • Celo
    • Near
    • Terra
    • Avalanche
    • Cosmos
  • Web3
  • NFTs
    • Metaverse
    • Game AAA
  • Infrastructure
  • Kiến Thức Crypto
  • Tạp Chí
  • AMA
  • Tuyển Dụng

CryptoViet Analytics

In Tech We Trust

Social

You are here: Home / Hệ Sinh Thái / Step-by-Step Guide to Running a Shardeum Node with Source Code
Step-by-Step Guide to Running a Shardeum Node with Source Code

Step-by-Step Guide to Running a Shardeum Node with Source Code

Tháng Hai 17, 2023 by Đạt

Nội dung bài viết ẩn
1. Step 1: Updates & setup ENV
2. Step 2: Install docker
3. Step 3: install docker-compose
4. Step 4: Download and install validator
5. Step 5: Config firewall
6. Step 6: Run the node
7. Step 7: Stake SHM
8. Step 8: Setup Crontab

Step 1: Updates & setup ENV

sudo apt update && apt upgrade

sudo apt-get install curl

Step 2: Install docker

sudo apt install docker.io
docker ‐‐version

Step 3: install docker-compose

sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

sudo chmod +x /usr/local/bin/docker-compose

docker-compose ‐‐version

Step 4: Download and install validator

curl -O https://gitlab.com/shardeum/validator/dashboard/-/raw/main/installer.sh && chmod +x installer.sh && ./installer.sh

Press Y

Set passwork and save notes

Next

– Press 8080

– Press 9001

– Press 10001

– Press ENTER

It’s should show display here

Step 5: Config firewall

ufw allow ssh
ufw allow 8080
ufw allow https
ufw allow http
ufw allow 443
ufw allow 4000
ufw allow 4001
ufw enable

Press Y

Step 6: Run the node

Move to Directory

cd .shardeum

Start Script

./shell.sh

Start GUI

operator-cli gui start

Dashboard

Open Browser and enter your address according to the example below:

https://<localhost>:8080

Example : your ip : 143.233.4.5
Then you must insert ip correct : https:// 143.233.4.5:8080

Start Validator

Refresh the page and look at time validator parameter, Connet wallet and Stake:

Step 7: Stake SHM

Access the Maintenance Tab and perform the Stake SHM token step:

 

Step 8: Setup Crontab

sudo su

–

sudo apt-get install cron

cd && echo '*/5 * * * * root cd && /usr/bin/sh shardeum_check.sh' >> /etc/crontab && /etc/init.d/cron restart

–

cat <<EOF > shardeum_check.sh
docker exec shardeum-dashboard operator-cli status | grep stopped
if [ \$? -eq 0 ]; then
echo "START SHARDEUM"
docker exec shardeum-dashboard operator-cli start
fi
EOF

–

chmod +x shardeum_check.sh
pm2 list

If you get the following error, then proceed to the next step:

cd ~/.shardeum
./shell.sh
//get your node's external IP:
curl https://ipinfo.io/ip
export APP_IP="<external IP>"

Chia sẻ
Disclaimer: Giao dịch tiền điện tử có mức độ rủi ro cao và có thể không phù hợp với tất cả các nhà đầu tư. CryptoViet sẽ không chịu trách nhiệm pháp lý đối với bất kỳ tổn thất hoặc thiệt hại nào có thể phát sinh trực tiếp hoặc gián tiếp từ việc sử dụng hoặc phụ thuộc vào những thông tin trên. Tất cả các ý kiến ​​được bày tỏ trên trang web này thuộc sở hữu của người viết và không bao giờ được coi là lời khuyên dưới bất kỳ hình thức nào.

Lượt xem: 81

Bài viết liên quan

CyberConnect-la-gi
CyberConnect là gì? Social Graph tiếp theo trên BNB Chain
BTCFi là gì? Giải thích về DeFi trên Bitcoin?
Toàn cảnh hệ sinh thái Aptos tháng 02/2023
Previous Post: « Hướng dẫn sử dụng Lens Protocol – Cơ hội nhận Airdrop trong tương lai
Next Post: Caldera là gì? Giải pháp hàng đầu để phát triển Blockchain Layer 2 »

Primary Sidebar

Theo Dõi Chúng Tôi

  • Email
  • Facebook
  • Twitter

Bài Viết Đọc Nhiều

  • Hướng dẫn chạy node Sui blockchain bằng source code – Testnet Wave 2 (671)
  • Hướng dẫn chạy node Celestia bằng source code (410)
  • Node là gì? Cơ hội nhận Retroactive thông qua việc chạy node? (381)
  • Hướng dẫn chạy node Aptos bằng source code (347)
  • Hướng dẫn chạy node Sui blockchain bằng source code (232)

Copyright © 2023 · CryptoViet Analytics · CryptoViet.com