Giter Club home page Giter Club logo

guide-avail-project's Introduction

GUIDE-AVAIL-PROJECT

#GUIDE SYSTEMD: #UPDATE HE THONG: apt update && apt upgrade -y apt install curl iptables build-essential git wget jq make gcc nano tmux htop nvme-cli pkg-config libssl-dev libleveldb-dev libgmp3-dev tar clang bsdmainutils ncdu unzip llvm libudev-dev make protobuf-compiler -y

#TAO THU MUC:

mkdir -p $HOME/.avail && cd $HOME/.avail

#TAI AVAIL VE THU MUC:

wget https://github.com/availproject/avail/releases/download/v1.8.0.3/x86_64-ubuntu-2204-data-avail.tar.gz tar -xvf x86_64-ubuntu-2204-data-avail.tar.gz mv data-avail /usr/bin/avail

#CHECK VERSION

avail --version

#TAI JSON:

wget -O $HOME/.avail/chainspec.raw.json "https://goldberg.avail.tools/chainspec.raw.json" chmod 744 ~/.avail/chainspec.raw.json sha256sum $HOME/.avail/chainspec.raw.json

#TAO SYSTEMD

yourname=DADID_NHT tee /etc/systemd/system/avail.service > /dev/null << EOF [Unit] Description=Avail Validator Node After=network-online.target StartLimitIntervalSec=0 [Service] User=$USER Restart=always RestartSec=3 LimitNOFILE=65535 ExecStart=/usr/bin/avail
--base-path $HOME/.avail/data/
--chain $HOME/.avail/chainspec.raw.json
--port 30333
--rpc-port 9933
--prometheus-port 9615
--validator
--name '$yourname' [Install] WantedBy=multi-user.target EOF

#RUN SYSTEMD: systemctl daemon-reload systemctl enable avail systemctl restart avail && journalctl -u avail -f -o cat

#STOP NODE AVAIL: sudo systemctl stop avail sudo systemctl disable avail sudo rm /etc/systemd/system/avail.service sudo systemctl daemon-reload cd rm -r .avail

#TAO HEX KEY FOR VALIDATOR: curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "author_rotateKeys", "params":[]}' http://localhost:9944

**#GUIDE DOCKER: ** #CHAY DOCKER sudo docker pull availj/avail:v1.8.0.3

Hoặc: cd avail sudo docker run -v $(pwd)/state:/da/state:rw -v $(pwd)/keystore:/da/keystore:rw --network host -d --restart unless-stopped availj/avail:v1.8.0.3 --chain goldberg --validator --name "DADID_VN" -d /da/state

#CHECK LOGS: docker logs avail -f

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.