Bỏ qua để đến nội dung
Cài agent Yêu cầu hệ thống, lệnh cài, và cách agent xác thực với control plane.

Cài agent

Agent là một binary Go tĩnh (~10–15MB), idle ~15MB RAM. Không phụ thuộc runtime, cross-compile cho amd64/arm64.

  • Ubuntu 24.04 LTS
  • 1 CPU / 1GB RAM tối thiểu
  • Outbound HTTPS:443 mở (không cần inbound)
Terminal window
curl -fsSL https://get.mzpanel.com | bash -s -- --token=<install-token>

Script tải binary, tạo systemd unit mzagent.service, rồi đăng ký với control plane bằng install-token (TTL 1 giờ).

Giai đoạnToken
Đăng ký lần đầuinstall-token (one-time, 1h TTL)
Hoạt độngagent token dài hạn (rotate khi license đổi)

Verdict license được cache ở /etc/mzagent/license.json với offline grace 7 ngày — agent vẫn chạy nếu control plane tạm mất kết nối.

Terminal window
mz agent uninstall