Is ardán nuálach é Story Protocol chun maoin intleachtúil a chruthú agus a bhainistiú ar an blockchain. Tá infheistíocht déanta sa tionscadal ag cistí móra ar nós a16z, Polychain Capital agus Samsung Next, agus tá os cionn $134 milliún bailithe acu. Tá an deis agat anois a bheith i do bhailíochtóir sa líonra tástála nua Story.
Próiseálaí: 4 chroílár
RAM: 8 GB
Stóráil: 200GB
Faighimid freastalaí ar cíos ó sholáthraí óstála iontaofa (ó THE.Hosting ar ndóigh, agus leis an gcód promo TAXI gníomhaíonn tú lascaine 15% ar do chéad ordú)
Ceanglaímid leis an bhfreastalaí trí MobaXterm faoi rochtain fréimhe.
Déanaimid na pacáistí riachtanacha a nuashonrú agus a shuiteáil:
sudo apt update && sudo apt upgrade -y sudo apt install curl git make jq build-essential gcc unzip wget lz4 aria2 -y
Íoslódáil agus suiteáil Story-Geth:
wget https://story-geth-binaries.s3.us-west-1.amazonaws.com/geth-public/geth-linux-amd64-0.9.2-ea9f0d2.tar.gz tar -xzvf geth-linux-amd64-0.9.2-ea9f0d2.tar.gz [ ! -d "$HOME/go/bin" ] && mkdir -p $HOME/go/bin if ! grep -q "$HOME/go/bin" $HOME/.bash_profile; then echo 'export PATH=$PATH:$HOME/go/bin' >> $HOME/.bash_profile fi sudo cp geth-linux-amd64-0.9.2-ea9f0d2/geth $HOME/go/bin/story-geth source $HOME/.bash_profile story-geth version
Íoslódáil an Scéal agus an Iontach.
wget https://story-geth-binaries.s3.us-west-1.amazonaws.com/story-public/story-linux-amd64-0.9.11-2a25df1.tar.gz tar -xzvf story-linux-amd64-0.9.11-2a25df1.tar.gz [ ! -d "$HOME/go/bin" ] && mkdir -p $HOME/go/bin if ! grep -q "$HOME/go/bin" $HOME/.bash_profile; then echo 'export PATH=$PATH:$HOME/go/bin' >> $HOME/.bash_profile fi sudo cp story-linux-amd64-0.9.11-2a25df1/story $HOME/go/bin/story source $HOME/.bash_profile story version
Monaróir Inishial agus Zadaem:
story init --network iliad --moniker MONIKER
Создаем сервисный файл для Story-Geth:
sudo tee /etc/systemd/system/story-geth.service > /dev/null <<EOF
[Unit] Description=Story Geth Client After=network.target [Service] User=root ExecStart=/root/go/bin/story-geth --iliad --syncmode full Restart=on-failure RestartSec=3 LimitNOFILE=4096 [Install] WantedBy=multi-user.target EOF
Создаем сервисный файл для Scéal:
sudo tee /etc/systemd/system/story.service > /dev/null <<EOF [Unit] Description=Story Consensus Client After=network.target [Service] User=root ExecStart=/root/go/bin/story run Restart=on-failure RestartSec=3 LimitNOFILE=4096 [Install] WantedBy=multi-user.target EOF
Atosaigh agus seol seirbhísí:
sudo systemctl daemon-reload && sudo systemctl start story-geth && sudo systemctl enable story-geth && sudo systemctl start story && sudo systemctl enable story && sudo systemctl status story-geth && sudo systemctl status story
Seiceáil stádas sioncrónaithe an nóid:
curl localhost:26657/status | jq
Sna chéad 5-10 nóiméad, is gnách an stádas "fíor" agus is é 0 block_height an gnáth. Ina dhiaidh sin, tosóidh na bloic ag fás, agus athróidh an stádas go "bréagach".
Ag stopadh an nóid:
sudo systemctl stop story sudo systemctl stop story-geth
Íoslódáil agus suiteáil pictiúr den phictiúr chun luas a chur leis an sioncrónú:
cd $HOME aria2c -x 16 -s 16 https://vps5.josephtran.xyz/Story/Geth_snapshot.lz4 -o Geth_snapshot.lz4 aria2c -x 16 -s 16 https://vps5.josephtran.xyz/Story/Story_snapshot.lz4 -o Story_snapshot.lz4
Scriosaimid seanshonraí agus bainimid sonraí nua amach:
rm -rf ~/.story/story/data rm -rf ~/.story/geth/iliad/geth/chaindata sudo mkdir -p /root/.story/story/data lz4 -d Story_snapshot.lz4 | pv | sudo tar xv -C /root/.story/story/ sudo mkdir -p /root/.story/geth/iliad/geth/chaindata lz4 -d Geth_snapshot.lz4 | pv | sudo tar xv -C /root/.story/geth/iliad/geth/
Atosaigh an nód agus seiceáil an stádas:
sudo systemctl start story sudo systemctl start story-geth curl localhost:26657/status | jq
Easpórtáil sonraí an bhailíochtaitheora:
story validator export
Faighimid an eochair phríobháideach:
sudo cat /root/.story/story/config/private_key.txt story validator export --export-evm-ke
Iarr comharthaí tástála $IP ón sconna agus cruthaigh bailíochtóir:
story validator create --stake 1000000000000000000 --private-key "your_private_key"
Ag stopadh nód:
sudo systemctl stop story sudo systemctl stop story-geth
Atosú an nóid:
sudo systemctl start story sudo systemctl start story-get
Ag seiceáil stádas:
curl localhost:26657/status | jq
Féach ar logaí:
sudo journalctl -u story-geth -f -o cat sudo journalctl -u story -f -o cat
Tá an nód Scéalphrótacail suiteáilte agus cumraithe agat go rathúil anois. Is féidir leat a oibriú a mhonatóiriú agus bailíochtóirí a chruthú chun páirt a ghlacadh sa líonra tástála.