# Cài đặt Sigma Media Server

Sử dụng hướng dẫn bên dưới để cài đặt Sigma Media Server:

### Khởi tạo Sigma Media Server trên vMarketplace

**Bước 1:** Truy cập vào <https://marketplace.console.vngcloud.vn/>

**Bước 2:** Tại màn hình chính, thực hiện tìm kiếm **Sigma**, tại dịch vụ **Sigma Stream**, chọn **Launch**.

**Bước 3:** Lúc này, bạn cần thiết lập cấu hình cho **Sigma.** Cụ thể, bạn cần chọn:

* **Loại Instance (CPU, RAM, GPU).**
* **Loại và kích cỡ Volume, IOPS**
* **Network:**
  * **VPC**
  * **Security Group**

mà bạn mong muốn sử dụng cho server của bạn. Ngoài ra bạn cũng cần chọn Một Server Group đã tồn tại hoặc chọn **Dedicated SOFT ANTI AFFINITY group** để chúng tôi tự động tạo một server group mới.

**Bước 4:** Tiến hành **thanh toán** như các tài nguyên bình thường trên GreenNode.

Lúc này, hệ thống **vServer** sẽ khởi tạo một Server tương ứng với cấu hình mà bạn lựa chọn. Hãy chờ đợi tới khi việc tạo server hoàn thành và tiếp tục các bước sau đây.

<figure><img src="https://3672463924-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB0NrrrdJdpYOYzRkbWp5%2Fuploads%2Fgit-blob-9731c3367f96b02103f4ef14953949e7b4fb4b2e%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

### Cấu hình thông số cho Sigma Media Server

**Bước 1:** Sau khi khởi tạo Sigma từ **vMarketPlace** theo hướng dẫn bên trên, bạn có thể truy cập vào giao diện **vServer** tại [đây](https://hcm-3.console.vngcloud.vn/vserver/v-server/cloud-server) để kiểm tra server chạy Sigma đã được khởi tạo xong chưa. <mark style="color:red;">**Tiếp theo, bạn cần mở các sau trên Security Group cho server Sigma vừa tạo.**</mark>

* 4000 (TCP): Portal
* 8080 (TCP): HTTP origin (nginx)
* 1935 (TCP): RTMP
* 10080 (UDP): optional cho SRT protocol

<figure><img src="https://3672463924-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB0NrrrdJdpYOYzRkbWp5%2Fuploads%2Fgit-blob-5fcf79153a08ef97cba7bf0a66a93374057c99b7%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

**Bước 2:** Sau khi server chạy Sigma được khởi tạo thành công. Để vào GUI của Sigma, bạn cần sử dụng địa chỉ IP của External Interface và truy cập tại link: ***<http://VM\\_External\\_IP:4000>***

**Bước 3:** Tại GUI của Sigma, bạn chọn nút **Register Server**

<figure><img src="https://3672463924-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB0NrrrdJdpYOYzRkbWp5%2Fuploads%2Fgit-blob-dc19eed5330c7769f4a4d94b307a3ded2a1c9082%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

**Bước 4:** Bạn nhập **Email/ Password** nếu có hoặc chọn **Đăng nhập nhanh** với **Github** hoặc **Google**. Ở đây, tôi lựa chọn đăng nhập với tài khoản Google

<figure><img src="https://3672463924-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB0NrrrdJdpYOYzRkbWp5%2Fuploads%2Fgit-blob-9059602a898a44db715d703fcaa59f685c577401%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

**Bước 5**: Sau khi hệ thống thực hiện **authentiation** thành công, bạn cần nhập các thông tin cơ bản cho Sigma bao gồm:

* **Name**
* **Phone Number**
* **Role**
* **Company**

<figure><img src="https://3672463924-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB0NrrrdJdpYOYzRkbWp5%2Fuploads%2Fgit-blob-cb4e82bd94d8511d457ca3e3c0d7257357f8b18a%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

**Bước 6:** Nhập **server name**. Server name này bạn có thể lấy từ portal GreenNode. Ví dụ bên dưới tôi dùng server Demo\_Sigma đã tạo trước đó.

<figure><img src="https://3672463924-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB0NrrrdJdpYOYzRkbWp5%2Fuploads%2F0M8ZMPrOMBLt7GIOz5MT%2Fimage.png?alt=media&#x26;token=4bf2afc8-8bc0-4c86-9f5b-2d130f3a827c" alt=""><figcaption></figcaption></figure>

**Bước 7**: Bạn có thể điều chỉnh bật/ tắt các configuration bao gồm:

* Bật/ Tắt sử dụng **Ingest App** bằng cách chọn vào biểu tượng ON, OFF
* Bật/ Tắt sử dụng **Origin App** bằng cách chọn vào biểu tượng ON, OFF
* Cài đặt **Data Dir** bằng cách chọn vào nút Pick
* Chọn **Submit**.

<figure><img src="https://3672463924-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB0NrrrdJdpYOYzRkbWp5%2Fuploads%2F0M8ZMPrOMBLt7GIOz5MT%2Fimage.png?alt=media&#x26;token=4bf2afc8-8bc0-4c86-9f5b-2d130f3a827c" alt=""><figcaption></figcaption></figure>

**Bước 8**: Tại màn hình cảnh báo việc deploy server, bạn chọn **Yes**

**Bước 9:** Tiếp tục chọn **Done**, lúc này màn hình sẽ hiển thị như sau, bạn hãy tiếp tục bấm chọn **App Editor.**

<figure><img src="https://3672463924-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB0NrrrdJdpYOYzRkbWp5%2Fuploads%2Fgit-blob-599b7bfb38bb2cbf12991be61a8a253596e57c3b%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

Sau khi truy cập vào **Portal Sigma Media**, bạn sẽ thấy thông tin server đã tạo trước đó từ **vMarketplace** và thông tin **License** tương ứng.

<figure><img src="https://3672463924-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB0NrrrdJdpYOYzRkbWp5%2Fuploads%2Fgit-blob-09791e39cd91926487ec19b9350be65d875ceae1%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>


---

# 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://docs.vngcloud.vn/vng-cloud-document/vn/vcdn/loai-hinh-dich-vu/transcoding/cai-dat-sigma-media-server.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.
