---
title: "Cài đặt wazuh server trên Almalinux 9"
description: "Đang cập nhật"
featured_image: "https://legiang360.com/wp-content/uploads/2026/07/wazuh.jpg"
url: "https://legiang360.com/cai-dat-wazuh-server-tren-almalinux-9/"
date_modified: "2026-07-18T16:27:08+07:00"
---

# Cài đặt wazuh server trên Almalinux 9

![](https://legiang360.com/wp-content/uploads/2026/07/wazuh.jpg)

# Cài đặt wazuh server trên Almalinux 9

- [sieunhim](https://legiang360.com/author/sieunhim/)
- 18.07.2026
- [Tút](https://legiang360.com/category/vps/tut/)

## Giới thiệu về Wazuh

Đang cập nhật

## Cài đặt Wazuh trên Almalinux 9

Có. Với AlmaLinux 9, tôi sẽ đi theo nhánh `RHEL 9+` trong docs Wazuh. Đây là suy luận thực dụng vì AlmaLinux 9 tương thích RHEL 9; Wazuh docs thì nêu rõ RHEL 9 và lệnh repo cho hệ RHEL-compatible 9+.

**Quy trình chuẩn**

1. Dựng 1 VPS riêng làm Wazuh central node.
    - Khuyến nghị tối thiểu: `4 vCPU / 8 GiB RAM / 50 GB` nếu khoảng `1-25 agents`.
    - Nếu nhiều hơn, nên tăng tài nguyên hoặc tách cụm.
      Nguồn: [Wazuh Quickstart](https://documentation.wazuh.com/current/quickstart.html)
2. Chuẩn bị hệ thống.
    - Set `hostname`/FQDN.
    - Update OS.
    - Đồng bộ thời gian.
    - Mở firewall:
        - `443/tcp` cho dashboard
        - `1514/tcp` cho agent traffic
        - `1515/tcp` cho enrollment
        - `55000/tcp` cho API
        - `9200/tcp` chỉ internal giữa các component, không nên public
          Nguồn: [Architecture](https://documentation.wazuh.com/current/getting-started/architecture.html), [Agent enrollment requirements](https://documentation.wazuh.com/current/user-manual/agent/agent-enrollment/requirements.html), [Dashboard install](https://documentation.wazuh.com/current/installation-guide/wazuh-dashboard/installation-assistant.html)
3. Cài nhanh theo kiểu all-in-one trên 1 VPS.

```
curl -sO https://packages.wazuh.com/4.14/wazuh-install.sh
sudo bash ./wazuh-install.sh -a
```

```
curl -sO https://packages.wazuh.com/4.14/wazuh-install.sh
sudo bash ./wazuh-install.sh -a
```

Cách này cài luôn `wazuh-server`, `wazuh-indexer`, `wazuh-dashboard`.
Nguồn: [Quickstart](https://documentation.wazuh.com/current/quickstart.html)

1. Lấy mật khẩu và đăng nhập dashboard.

```
sudo tar -O -xvf wazuh-install-files.tar wazuh-install-files/wazuh-passwords.txt
```

```
sudo tar -O -xvf wazuh-install-files.tar wazuh-install-files/wazuh-passwords.txt
```

Sau đó vào `https://<IP_WAZUH_DASHBOARD>` bằng user `admin`.
Nguồn: [Dashboard install](https://documentation.wazuh.com/current/installation-guide/wazuh-dashboard/installation-assistant.html)

1. Cài agent lên các VPS khác.

```
WAZUH_MANAGER="IP_WAZUH_SERVER" dnf install wazuh-agent
sudo systemctl enable --now wazuh-agent
```

```
WAZUH_MANAGER="IP_WAZUH_SERVER" dnf install wazuh-agent
sudo systemctl enable --now wazuh-agent
```

Hoặc deploy từ dashboard tại `Agents management > Summary`.
Nguồn: [Linux agent deployment](https://documentation.wazuh.com/current/installation-guide/wazuh-agent/wazuh-agent-package-linux.html), [Agent install](https://documentation.wazuh.com/current/installation-guide/wazuh-agent/index.html)

1. Tắt repo Wazuh sau khi cài xong nếu bạn thêm repo thủ công.

```
sudo sed -i 's/^enabled=1/enabled=0/' /etc/yum.repos.d/wazuh.repo
```

```
sudo sed -i 's/^enabled=1/enabled=0/' /etc/yum.repos.d/wazuh.repo
```

Nguồn: [Wazuh server assisted install](https://documentation.wazuh.com/current/installation-guide/wazuh-server/installation-assistant.html)

**Gợi ý thực tế**

- Nếu mới triển khai: dùng `-a` trước.
- Nếu sau này cần scale: tách `indexer` và `dashboard` sang máy khác, còn `server` giữ riêng.

Tôi có thể viết luôn một script Bash cho AlmaLinux 9 theo đúng quy trình này.

Nguồn: Codex

4.3/5 - (9 bình chọn)

#### Bài viết liên quan

[!\[Adguard\](https://legiang360.com/wp-content/uploads/2025/06/adguard-768x432.webp)](https://legiang360.com/cu-phap-viet-lai-adguard-home-dns/)

#### [Cú pháp viết lại AdGuard Home DNS](https://legiang360.com/cu-phap-viet-lai-adguard-home-dns/)

[!\[Image\](https://legiang360.com/wp-content/uploads/2026/01/image-1-768x403.png)](https://legiang360.com/cai-dat-monarx-trinh-bao-mat-vps-mien-phi/)

#### [Cài đặt Monarx – Trình bảo mật VPS miễn phí](https://legiang360.com/cai-dat-monarx-trinh-bao-mat-vps-mien-phi/)

[!\[Good website security plan\](https://legiang360.com/wp-content/uploads/2026/01/good-website-security-plan.jpg)](https://legiang360.com/mot-so-lenh-co-ban-kiem-tra-server-khi-bi-ddos/)

#### [Một số lệnh cơ bản kiểm tra server khi bị DDoS](https://legiang360.com/mot-so-lenh-co-ban-kiem-tra-server-khi-bi-ddos/)

[!\[CSF\](https://legiang360.com/wp-content/uploads/2026/01/CSF-768x396.png)](https://legiang360.com/%f0%9f%93%96-huong-dan-day-du-chan-truy-cap-theo-quoc-gia-bang-csf-tren-directadmin-su-dung-db-ip/)

#### [📖 Hướng dẫn đầy đủ: Chặn truy cập theo quốc gia bằng CSF trên DirectAdmin (sử dụng DB-IP)](https://legiang360.com/%f0%9f%93%96-huong-dan-day-du-chan-truy-cap-theo-quoc-gia-bang-csf-tren-directadmin-su-dung-db-ip/)

[!\[Setup caddy web server on ubuntu zlj795\](https://legiang360.com/wp-content/uploads/2025/12/setup-caddy-web-server-on-ubuntu_zlj795-768x384.jpg)](https://legiang360.com/cai-dat-wordpress-bang-web-server-caddy-giai-phap-hien-dai-thay-the-nginx/)

#### [Cài đặt WordPress bằng web server Caddy – Giải pháp hiện đại thay thế Nginx](https://legiang360.com/cai-dat-wordpress-bang-web-server-caddy-giai-phap-hien-dai-thay-the-nginx/)

[!\[Test vps\](https://legiang360.com/wp-content/uploads/2025/11/test-vps.webp)](https://legiang360.com/huong-dan-kiem-tra-thong-so-vps-va-test-hieu-nang-o-cung/)

#### [Hướng Dẫn Kiểm Tra Thông Số VPS và Test Hiệu Năng Ổ Cứng](https://legiang360.com/huong-dan-kiem-tra-thong-so-vps-va-test-hieu-nang-o-cung/)

![](https://legiang360.com/wp-content/uploads/2026/05/photo_2026-05-27_01-59-38-630x630.jpg)
