Como faço para configurar um nó de Tezos via linha de comando no Ubuntu?
2 respostas
- votos
-
- 2019-11-15
Aquiestão asinstruçõespasso-a-passo atualizadas sobre como construir umnó de Tezos (instalação de Ubuntufresco)
Torne-se superusuário
sudo su
Sistema de atualização
sudo su sudo apt update & amp; & amp; sudo apt upgrade -y
Install Curl
sudo apt-getinstall curl
Diga sim atodos osprompts
Install Docker
sudo aptinstall docker.io Docker Iniciar SystemCTL sudo Sudo SystemCTL Ativar Docker
instalar oencaixe compor
sudo curl -l " https://github .com/Docker/Compose/Comunicados/Download/1.24.1/Docker-Compose- $ (UNAME -S) - $ (UNAME -M) "-O/USR/Local/Compor Local/Docker sudo chmod + x/usr/local/bin/docker-compor sudo ln -s/usr/local/bin/compose/usr/bin/docker-compor sudo apt-get Docker-Compose
Responder Simparatodos ospedidos
Baixe o script Alphanet
wget -omainnet.sh https://gitlab.com/teezos/tezos/raw/master/scripts/alphanet.sh chmod + xmainnet.sh
Iniciar Mainnet
./mainnnet.sh start
(para atualizar onómaistardetipo :) ./mainnet.sh Reiniciar
updatemainnet
./mainnet.sh update_script
Construir defontes
toda uma linha
sudo aptinstall -y rsyncgit m4build-essenciaispatch descompachopegapkg-config libgmp-dev libev-dev libhidapi-dev que wget https://github.com/ocaml/opam/releases/download/2.0.3/opam-2.0.3- x86_64-linux
sudo cp opam-2.0.3-x86_64-linux/usr/local/bin/opam sudo chmod a + x/usr/local/bin/opam git clone https://gitlab.com/tezos/tezos.git CD Tezos. Git checkoutmainnet
digite "sim"para o comando opaminit
opaminit --bare Faça Build-DePs ## Nota: Oprocesso 7 levamuitotempo Eval $ (opamenv) faço Path Exportar=~/Tezos: $ Caminho fonte ./src/bin_client/bash-completion.sh. Exportar Tezos_Client_unsafe_Disable_DisClaimer=y
Instalar JP
sudo aptinstall -yjq
instalar o opam
Faça construir-deps fazer construir-dev-deps ## demora umpouco Eval $ (opamenv) Faça
Gerar Tezos Nó ID ## Se o Tezosnãofoiinstaladoem/Home/~,faça umabuscapor Tezos
cd/home/'username'/tezos/
Baixar Nó Snapshot (economiza horas)
Curl -s https://api.github.com/REPOS/PHLOGI/Tezos-instantâneos/lançamentos/Últimas | JQ -R ".essets []| Select (.nome)| .browser_download_url"| grep completo| Xargs Wget-Q --show-Progresso
Descubra onome do arquivo
ls/
descompactar o arquivo (funciona apenas comeste comando,caso contrário,o arquivo será corrompido)
unxz "nome do arquivo"
renomear o arquivo,tendonota donúmero dobloco,vocêirá usá-lo abaixo (fazerisso via GUIestábem)
Criar aidentidade donó Tezos,para a variável __bloco,use onúmero debloco localizadono
./Identidade donó Tezosgera
Importar oinstantâneo
./tezos-nó snapshotimportmainnet.flock "exampleblockbmetlx2em7q2tbaxcupbuqney4nhrdeztjcqeofvwnywdzb5qgu"
Matar o aplicativo original usando asportas
sudomatam -9 $ (sudo lsof -t -i: 8732)
Inicie onó
./tezos-nó Executar --rpc-addr 127.0.0.1
Observação Use o comando lsof se o arquivoestiverbloqueadoe,em seguida,killallparainterromper oprocesso ou desbloquear o arquivopor RM,o arquivo debloqueiono caminho
aguarde onó sincronizar (observar oprogresso comeste comando
./Tezos-Cliente Bootstrapped
o seu acabado !!!
Here are the updated step-by-step instructions on how to build a Tezos node(fresh Ubuntu install)
become superuser
sudo su
update system
sudo su sudo apt update && sudo apt upgrade -y
install curl
sudo apt-get install curl
say yes to all prompts
install docker
sudo apt install docker.io sudo systemctl start docker sudo systemctl enable docker
install docker compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose sudo apt-get docker-compose
reply yes to all prompts
download the alphanet script
wget -O mainnet.sh https://gitlab.com/tezos/tezos/raw/master/scripts/alphanet.sh chmod +x mainnet.sh
start mainnet
./mainnnet.sh start
(to update node later type:) ./mainnet.sh restart
update mainnet
./mainnet.sh update_script
build from sources
all one line
sudo apt install -y rsync git m4 build-essential patch unzip bubblewrap wget pkg-config libgmp-dev libev-dev libhidapi-dev which wget https://github.com/ocaml/opam/releases/download/2.0.3/opam-2.0.3-x86_64-linux
sudo cp opam-2.0.3-x86_64-linux /usr/local/bin/opam sudo chmod a+x /usr/local/bin/opam git clone https://gitlab.com/tezos/tezos.git cd tezos git checkout mainnet
type "yes" for opam init command
opam init --bare make build-deps ## note: process 7 takes a long time eval $(opam env) make export PATH=~/tezos:$PATH source ./src/bin_client/bash-completion.sh export TEZOS_CLIENT_UNSAFE_DISABLE_DISCLAIMER=Y
install jp
sudo apt install -y jq
install opam
make build-deps make build-dev-deps ##takes a while eval $(opam env) make
generate tezos node ID ## if the tezos wasn't installed in /home/~, do a search for tezos
cd /home/'username'/tezos/
download node snapshot(saves you hours)
curl -s https://api.github.com/repos/Phlogi/tezos-snapshots/releases/latest | jq -r ".assets[] | select(.name) | .browser_download_url" | grep full | xargs wget -q --show-progress
find out the name of the file
ls /
unzip the file(only works with this command, otherwise file will be corrupted)
unxz "name of file"
rename the file, taking note of the block number, you will use it below(do this via Gui is fine)
create the tezos node identity, for the --block variable, use the block number located on the
./tezos-node identity generate
import the snapshot
./tezos-node snapshot import mainnet.full --block "exampleblockBMetLX2em7Q2tbAxcuPbUQNEY4NhRDEZtJCQeoFvWnYwDzb5qGU"
kill original app using the ports
sudo kill -9 $(sudo lsof -t -i:8732)
start the node
./tezos-node run --rpc-addr 127.0.0.1
note use lsof command if file is locked and then killall to stop the process, or unlock the file by rm the lock file in the path
wait for node to sync(watch progress with this command
./tezos-client bootstrapped
Your finished!!!
-
Isso é copiado de http://tezos.gitlab.io/introduction/howtoget.html,o que ébom,mas ospls dão crédito àfonte.E depreferência corrigir os CRLFs.This is copied over from http://tezos.gitlab.io/introduction/howtoget.html, which is fine, but pls give credit to the source. And preferably fix the CRLFs.
- 1
- 2019-12-03
- Gaia
-
https://medium.com/@tezbaker.o/tezos-mainnet-setting-up-home-abak-4bf258a9fd30.https://medium.com/@tezbaker.io/tezos-mainnet-setting-up-home-baking-4bf258a9fd30
- 0
- 2019-12-04
- Mack Baise
-
- 2020-05-25
Tezster-CLI é aferramentaperfeitapara responder à sua consulta.Ele configuraránós locaisno seu sistemaem etapasfáceis.
Pré-requisito: Você deveterinstalado o Dockere Nodejsno seu sistema.
Parainstalar o Docker Executar o seguinte comando: (no Ubuntu)
sudo apt install docker.io sudo groupadd docker sudo usermod -aG docker $USER newgrp docker
instalar opacote Tezster-CLI:
sudo npm install -g tezster@latest --unsafe-perm=true
Nódulos locais de configuração:
tezster setup
Iniciare pararnós local:
tezster start-nodes tezster stop-nodes
Use Guia de Tezster-CLI Para sabermais sobre o uso de Tezster.
Tezster-CLI is the perfect tool to answer for your query. It will setup local nodes on your system in easy steps.
Prerequisite: You must have installed docker and nodejs on your system.
To install docker run the following command: (on ubuntu)
sudo apt install docker.io sudo groupadd docker sudo usermod -aG docker $USER newgrp docker
Install tezster-cli package:
sudo npm install -g tezster@latest --unsafe-perm=true
Setup local nodes:
tezster setup
Start and stop local nodes:
tezster start-nodes tezster stop-nodes
Use Tezster-CLI Guide to learn more about tezster usage.
Euestou querendo saber se alguémpodeme dar um começoparaterminar sobre comofazerissono Ubuntu,apágina Tezos Gitlabestámuito desatualizada.