# Cài đặt

Chương này giải thích về việc cài đặt **Nút đồng thuận chuỗi dịch vụ(SCN)**.

## Phân bổ lưu trữ Linux <a href="#linux-archive-distribution" id="linux-archive-distribution"></a>

Tập tin lưu trữ cho nút đồng thuận chuỗi dịch vụ có bố cục thư mục như sau.

| Tên tập tin     | Mô tả tập tin                     |
| --------------- | --------------------------------- |
| bin/kscn        | Tập tin thực thi SCN              |
| bin/kscnd       | Tập tin lệnh bắt đầu/kết thúc SCN |
| conf/kscnd.conf | Tập tin cấu hình SCN              |

Tập tin lưu trữ cho nhị phân homi có bố cục thư mục như sau.

| Tên tập tin | Mô tả tập tin         |
| ----------- | --------------------- |
| bin/homi    | Tập tin thực thi HOMI |

### Cài đặt <a href="#installation" id="installation"></a>

Quá trình cài đặt chính là giải nén gói đã tải xuống.

```
$ tar zxf kscn-vX.X.X-XXXXX-amd64.tar.gz
$ tar zxf homi-vX.X.X-XXXXX-amd64.tar.gz
```

## Phân bổ RPM (RHEL/CentOS/Fedora) <a href="#rpm-rhel-centos-fedora" id="rpm-rhel-centos-fedora"></a>

### Cài đặt <a href="#installation" id="installation"></a>

Bạn có thể cài đặt RPM đã tải về với lệnh `yum` sau đây.

```
$ yum install kscnd-vX.X.X.el7.x86_64.rpm
$ yum install homi-vX.X.X.el7.x86_64.rpm
```

### Vị trí đã cài đặt <a href="#scn-configuration" id="scn-configuration"></a>

Gói Linux Klaytn bao gồm nhị phân thực thi và tập tin cấu hình có cấu trúc như sau.

| Tên tập tin | Vị trí                     |
| ----------- | -------------------------- |
| kscn        | /usr/bin/kscn              |
| kscnd.conf  | /etc/kscnd/conf/kscnd.conf |
| homi        | /usr/bin/homi              |


---

# 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://archive-vn.docs.klaytn.foundation/content/installation-guide/deployment/service-chain/references/scn/installation.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.
