Skip to content

Latest commit

 

History

History
134 lines (115 loc) · 2.85 KB

File metadata and controls

134 lines (115 loc) · 2.85 KB

Avail Light Node Kurulumu

image

Linkler:

Sistem Gereksinimleri

Bileşenler Minimum Gereksinimler
✔️CPU 2+ vcpu
✔️RAM 4+ GB
✔️Storage 40+ GB SSD
✔️UBUNTU 22

Update

sudo apt update && sudo apt upgrade -y
sudo apt-get install make clang pkg-config libssl-dev build-essential
screen -S alight

Avail Light Client'i yükleyin

cd
wget https://github.com/availproject/avail-light/releases/download/v1.7.2/avail-light-linux-amd64.tar.gz
tar -xvzf avail-light-linux-amd64.tar.gz
mv avail-light-linux-amd64 avail-light
rm -rf avail-light-linux-amd64.tar.gz

Servis dosyasını oluşturalım.

sudo tee /etc/systemd/system/availd.service > /dev/null <<EOF
[Unit]
Description=Avail Light Client
After=network.target
StartLimitIntervalSec=0
[Service]
User=root
ExecStart=/root/avail-light --network biryani
Restart=always
RestartSec=120
[Install]
WantedBy=multi-user.target
EOF

Başlatalım

sudo systemctl daemon-reload
systemctl enable availd
sudo systemctl restart availd

Loglar

journalctl -u availd -fo cat

Son blok görüntüleme

curl "http://localhost:7000/v1/latest_block"

Avail Light Node ubuntu 20

Update

sudo apt update && sudo apt upgrade -y
sudo apt install make clang pkg-config libssl-dev build-essential git screen protobuf-compiler -y

Rust kuralım

curl https://sh.rustup.rs -sSf | sh

Not: 1 seçiyoruz

source $HOME/.cargo/env
rustup update nightly
rustup target add wasm32-unknown-unknown --toolchain nightly
screen -S alight

Dosyaları çekelim

git clone https://github.com/availproject/avail-light.git
cd avail-light
git checkout v1.7.2

Kuralım

cargo build --release

Servis oluşturalım

sudo tee /etc/systemd/system/availd.service > /dev/null <<EOF
[Unit] 
Description=Avail Light Client
After=network.target
StartLimitIntervalSec=0
[Service] 
User=root 
ExecStart= /root/avail-light/target/release/avail-light --network biryani
Restart=always 
RestartSec=120
[Install] 
WantedBy=multi-user.target
EOF

Başlatalım

sudo systemctl daemon-reload
sudo systemctl enable availd.service
sudo systemctl restart availd.service

Loglar

journalctl -u availd -fo cat