> For the complete documentation index, see [llms.txt](https://archive-vn.docs.klaytn.foundation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://archive-vn.docs.klaytn.foundation/content/getting-started/quick-start/launch-an-en.md).

# Khởi chạy nút điểm cuối

## Tải xuống và khởi chạy nút điểm cuối (EN) <a href="#download-and-initialize-an-endpoint-node-en" id="download-and-initialize-an-endpoint-node-en"></a>

Giải nén [gói nhị phân ken](/content/installation-guide/deployment/download.md#get-the-packages) và sao chép các tập tin vào thư mục klaytn.\
**Lưu ý**: Hãy tải về gói phù hợp có tên bắt đầu bằng `ken`.

Đối với người dùng Mac, hãy giải nén tập tin đã tải về bằng lệnh sau.

```bash
$ tar zxf ken-baobab-vX.X.X-X-darwin-amd64.tar.gz
$ export PATH=$PATH:$PWD/ken-darwin-amd64/bin
```

Đối với người dùng Linux, hãy giải nén tập tin đã tải về bằng lệnh sau.

```bash
$ tar zxf ken-baobab-vX.X.X-X-linux-amd64.tar.gz
$ export PATH=$PATH:$PWD/ken-linux-amd64/bin
```

Bạn nên tạo một thư mục dữ liệu để lưu trữ dữ liệu chuỗi khối. Trong phần hướng dẫn này, chúng ta sẽ tạo một thư mục `kend_home` trong thư mục chính.

```bash
$ mkdir -p ~/kend_home
```

## Cấu hình EN <a href="#configuring-the-en" id="configuring-the-en"></a>

Tập tin cấu hình, `kend.conf`, trong `ken-xxxxx-amd64/conf/`. Để biết thêm thông tin về các tham số có thể định cấu hình, bạn có thể xem phần [Hướng dẫn cấu hình EN](/content/operation-guide/configuration.md). Để khởi chạy một EN của mạng thử nghiệm Baobab, hãy cập nhật tập tin `kend.conf` phù hợp như sau.

```
# cypress, baobab is only available if you don't specify NETWORK_ID.
NETWORK="baobab"
# if you specify NETWORK_ID, a private network is created.
NETWORK_ID=
...
RPC_API="klay,net" # net module should be opened for truffle later on.
...
DATA_DIR=~/kend_home
```

## Khởi chạy EN <a href="#launching-the-en" id="launching-the-en"></a>

Để khởi chạy EN, hãy thực thi lệnh sau.

```bash
$ kend start
 Starting kend: OK
```

## Kiểm tra EN <a href="#checking-the-en" id="checking-the-en"></a>

Để kiểm tra xem EN có đang chạy hay không, hãy thực thi lệnh sau.

```bash
$ kend trạng thái
kend is running
```

## Kiểm tra bản ghi của EN <a href="#checking-the-log-of-the-en" id="checking-the-log-of-the-en"></a>

Để kiểm tra bản ghi của EN, hãy thực thi lệnh sau.

```bash
$ tail -f ~/kend_home/nhật ký/kend.out
...
INFO[03/26,15:37:49 +09] [5] Imported new chain segment                blocks=1    txs=0  mgas=0.000  elapsed=2.135ms   mgasps=0.000    number=71340 hash=f15511…c571da cache=155.56kB
...
```

## Khắc phục sự cố <a href="#troubleshooting" id="troubleshooting"></a>

Xem phần mục [Khắc phục sự cố](/content/operation-guide/errors-and-troubleshooting.md) nếu bạn gặp vấn đề trong việc khởi chạy Nút điểm cuối Klaytn.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://archive-vn.docs.klaytn.foundation/content/getting-started/quick-start/launch-an-en.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
