DirectAdmin 是輕量級的主機管理控制面板,僅支援 Linux/Unix/FreeBSD 作業系統(不支援 Windows)。本文記錄在 CentOS/Debian 上透過官方安裝腳本快速部署的完整流程,包含前置編譯工具安裝、授權資訊輸入、服務驗證與首次登入設定。
# CentOS / RHEL / AlmaLinux / Rocky
yum install -y gcc gcc-c++ make automake
# Debian / Ubuntu
apt-get update && apt-get install -y gcc g++ make automake
# 以 root 登入
wget -O setup.sh https://www.directadmin.com/setup.sh
chmod 755 setup.sh
./setup.sh
腳本將提示輸入:
The following information has been set:
Admin username: admin
Admin password: ********
Admin email: admin@hostname
Server IP: xxx.xxx.xxx.xxx
Server Hostname: your.own.host.name
To login now, follow this link: https://serverIP:2222
請立即截圖或記錄上述資訊,並修改預設密碼!
| 現象 | 排查方向 |
|---|---|
| 安裝卡在編譯階段 | 檢查記憶體是否足夠(建議 ≥2GB),swap 是否啟用;dmesg | grep -i kill 確認 OOM。 |
| 無法存取 2222 埠 | 確認 iptables/firewalld/security group 已放行;netstat -ntlp | grep 2222 確認 directadmin 進程監聽。 |
| 授權驗證失敗 | 確認 Client ID/License ID 正確、IP 授權匹配、系統時間同步(ntpdate)。 |