# Pag-update ng Teku

## Pag-update ng Teku

### Mag-download ng pinakabagong bersyon

[I-Download](https://github.com/ConsenSys/teku/releases) ang pinakabagong bersyon ng Teku at patakbuhin ang proseso ng pag-verify ng checksum upang tiyakin na ang in-download na file ay hindi nababago.

```bash
cd
curl -LO <URL_of_download_link>
echo "<checksum> <downloaded_file_name>" | sha256sum --check
```

**Inaasahang output**: Kumpirmahin ang output ng checksum verification.

```
teku-<version>.tar.gz: OK
```

Itigil ang mga serbisyo ng Teku beacon node at validator client.

```bash
sudo systemctl stop tekubeacon.service tekuvalidator.service
```

I-extract ang mga file, burahin ang nakaraang bersyon, at ilipat ang bagong bersyon sa (`/usr/local/bin`) na direktoryo. Pagkatapos, linisin ang mga kopya ng nakalipas.

```bash
tar xvf teku-<version>.tar.gz
sudo rm -r /usr/local/bin/teku
sudo cp -a teku-<version> /usr/local/bin/teku
rm -r teku-<version>.tar.gz teku-<version>
```

### I-restart ang mga serbisyo ng Teku

```bash
sudo systemctl start tekubeacon.service tekuvalidator.service
sudo systemctl status tekubeacon.service tekuvalidator.service
```

Subaybayan ang mga journal logs gamit ang

```bash
sudo journalctl -fu tekubeacon -o cat | ccze -A
sudo journalctl -fu tekuvalidator -o cat | ccze -A
```

## Pagbabalat ng Teku

Ang mga consensus client ay umaangkin ng isang maliit na halaga ng espasyo sa disk kumpara sa mga execution client. Gayunpaman, maaari kang makapagpalaya ng \~200GB sa pamamagitan ng pagbabalat nito kung ang iyong validator node ay tumatakbo na ng matagal.

Upang magbalat ng mga consensus client, simpleng burahin lamang ang umiiral na database at i-restart ang beacon service na may `checkpoint sync` na pinagana.

```sh
sudo systemctl stop tekubeacon.service
sudo rm -r /var/lib/teku_beacon/*
sudo systemctl start tekubeacon.service
sudo systemctl status tekubeacon.service
```

Subaybayan ang mga logs para sa mga error.

```sh
sudo journalctl -fu tekubeacon -o cat | ccze -A
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://bitskwela.gitbook.io/bitskwela-x-lido-cs-fleet-eth-home-staking-guide/pagpapanatili-at-pag-update/pag-update-ng-teku.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
