Connect a VPS
Nội dung này hiện chưa có sẵn bằng ngôn ngữ của bạn.
Connecting a server means installing the agent on a VPS you already own. MZPanel does not create VPSes for you — you bring your own, and the agent dials home.
Prerequisites
Section titled “Prerequisites”- A VPS running Ubuntu 24.04 LTS (1 CPU / 1 GB RAM minimum)
- Root or sudo access over SSH
- Outbound HTTPS:443 open (the default on almost every host)
- Free plan quota for 1 VPS (more on higher tiers — see Tiers & quotas)
1. Get the install command
Section titled “1. Get the install command”In the dashboard choose Add server. You’ll get a one-line command with a short-lived install token (valid for 1 hour):
curl -fsSL https://get.mzpanel.com | bash -s -- --token=<install-token>2. Run the one-liner
Section titled “2. Run the one-liner”SSH into your VPS and run it. The script:
- Downloads the agent binary and sanity-runs it.
- Registers with the control plane, swapping the install token for a long-lived one.
- Installs and starts the
mzagent.servicesystemd unit.
3. Verify it’s online
Section titled “3. Verify it’s online”Back in the dashboard the server appears with a live online dot within seconds. From here you can create sites, run backups, issue SSL, and open monitoring.
Troubleshooting
Section titled “Troubleshooting”- Stays offline? Confirm the VPS can reach
https://ws.mzpanel.comon 443 (curl -I https://ws.mzpanel.com). Outbound 443 must be open. - Token expired? Install tokens last 1 hour — generate a fresh command from Add server.
- Re-running install? The installer guards against accidental re-install; pass
--forceonly if you intend to re-provision.
See also Install the agent and Troubleshooting.