Skip to content

Commit

Permalink
Update Light-node.md
Browse files Browse the repository at this point in the history
  • Loading branch information
molla202 authored Nov 5, 2023
1 parent d43f1c9 commit 6f47acb
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions Light-node.md
Original file line number Diff line number Diff line change
@@ -70,3 +70,62 @@ journalctl -u availd -fo cat
```
curl "http://localhost:7000/v1/latest_block"
```


--------------------------------------------

## <h1 align="center">Avail Light Node ubuntu 20</h1>

## 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
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

0 comments on commit 6f47acb

Please sign in to comment.