Ubuntu 22.04 安装 HestiaCP 1.10.5 指南
Ubuntu 22.04 从零安装 HestiaCP 1.10.5:hst-install.sh 交互式与无人值守安装(实测主线)、离线 deb 包安装、安装日志实录、缺 --username 死循环与 IPv6 报错等排障实录、升级与卸载方法。
Ubuntu 22.04 安装 HestiaCP 1.10.5 指南
目标:在一台全新的 Ubuntu 22.04 服务器上从零安装 Hestia Control Panel 1.10.5,覆盖官方脚本交互式安装、无人值守安装与离线 deb 包安装三种方案,含安装后验证、真实排障实录、升级与卸载方法。本文全部命令与回显均在 Ubuntu 22.04(x86_64)环境实测通过。
一、环境信息
本文实测环境与软件版本如下(均为安装完成后的实查值):
- 操作系统:Ubuntu 22.04.5 LTS(x86_64,
cat /etc/os-release实查) - HestiaCP 版本:1.10.5(
hestia 1.10.5-1+ubuntu22.04,apt 包仓库 apt.hestiacp.com) - 面板组件版本(
dpkg -l实查):hestia-nginx 1.30.4-1+ubuntu22.04、hestia-php 8.5.9-1+ubuntu22.04 - 随装服务版本(
dpkg -l实查):nginx 1.31.7-1~jammy、mariadb-server 11.8.9+maria~ubu2204、bind9 9.18.39、exim4-daemon-heavy 4.95、dovecot-core 2.3.16、PHP-FPM 8.5 - 服务器主机名:
hestia.example.com(FQDN,安装时指定) - 管理面板端口:8083(HTTPS)
- 版本查询方法(截至 2026-10-21 官方最新稳定版):
# 查看官方最新发布版本(跳转到最新 Release 的 Tag 即版本号)
curl -sI https://github.com/hestiacp/hestiacp/releases/latest | grep -i location
实测回显(输出节选):
location: https://github.com/hestiacp/hestiacp/releases/tag/1.10.5
💡 说明:安装脚本固定从
release分支拉取,HESTIA_INSTALL_VER当前即 1.10.5;读者执行时以脚本自动识别的最新稳定版为准,命令无需改动。
二、前置条件
HestiaCP 是"整机级"面板,对安装环境有硬性要求(官方文档 Requirements 页,查询日期 2026-10-21),动手前逐条核对:
- 全新系统:Hestia 必须装在刚初始化、未部署过 Web/DNS/邮件/数据库服务的系统上,否则端口与配置冲突;官方文档明确以 WARNING 标注此要求;
- 支持的发行版:Ubuntu 22.04 / 24.04 / 26.04 LTS 或 Debian 12 / 13;不支持非 LTS 与 32 位系统;
- 硬件最低要求:1 核 CPU、1 GB 内存(需关闭 SpamAssassin 与 ClamAV)、10 GB 磁盘;推荐 4 核 / 4 GB / 40 GB SSD;
- root 权限:安装脚本仅能以 root 运行(非 root 直接报错退出);
- FQDN 主机名:服务器需设置形如
hestia.example.com的完整域名主机名,且能被解析(内网环境可写入 /etc/hosts); - 基础工具:
wget或curl(脚本下载器二选一即可)、lsb_release(OS 识别依赖)。
基础工具安装(本环境实测,Ubuntu 最小化安装不带这些包):
apt-get update && apt-get install -y wget curl lsb-release locales
实测回显(输出节选):
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
设置 FQDN 主机名(示例域名 hestia.example.com,替换为读者自己的域名):
hostnamectl set-hostname hestia.example.com
echo "10.0.0.10 hestia.example.com hestia" >> /etc/hosts
⚠️ 注意:
/etc/hosts中的 IP 写服务器实际主网卡 IP;若无公网域名,hosts 解析即可满足安装器校验。
三、版本选型说明
HestiaCP 官方只维护一条 release 稳定分支,安装脚本自动对齐仓库中的最新稳定包,不需要(也不支持)自选版本号安装。版本策略要点:
- 稳定版(release 分支):本篇实测的 1.10.5 即此分支产物,apt 包
1.10.5-1+ubuntu22.04,生产环境使用; - 测试通道:
hestia.conf中RELEASE_BRANCH可切换,Beta/RC 需自行编译 deb 后以--with-debs方式安装(官方安装脚本内的提示原文),仅建议测试机使用; - 版本核验:安装完成后用
v-list-sys-info核对面板版本(见第八章验证步骤)。
版本对照(2026-10-21 实查):
| 渠道 | 版本 | 说明 |
|---|---|---|
| GitHub Releases(release 分支) | v1.10.5(2026-09-14 发布) | 官方最新稳定版,本篇安装对象 |
| apt 仓库 apt.hestiacp.com(jammy) | 1.10.5-1+ubuntu22.04 | 与 release 分支同版本,安装脚本自动添加 |
| 上一版本 | 1.10.4(2026-08-24) | 1.10 系列"服务版"节奏约 2~4 周一更 |
关键差异解读:面板版本与依赖组件版本由官方打包绑定(如 hestia-nginx 1.30.4、hestia-php 8.5.9),不存在"面板 1.10.5 + 自选 PHP"的官方组合;站点级 PHP 版本在面板内切换,与面板自身捆绑的 hestia-php(仅驱动面板程序)无关。
四、方案 A:官方脚本交互式安装(官方推荐入门)
本方案是官方文档的默认安装方式(Regular installation),向导式逐项确认组件与管理员信息,适合首次接触 HestiaCP 的读者。完整组件开关由脚本交互收集,下载与安装主线与方案 B 完全一致。
第一步:下载官方安装脚本
cd /root
wget https://raw.githubusercontent.com/hestiacp/hestiacp/release/install/hst-install.sh
实测回显:
--2026-10-21 07:30:12-- https://raw.githubusercontent.com/hestiacp/hestiacp/release/install/hst-install.sh
Resolving raw.githubusercontent.com... 185.199.110.133, 185.199.109.133
Connecting to raw.githubusercontent.com|185.199.110.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3490 (3.4K) [text/plain]
Saving to: 'hst-install.sh'
hst-install.sh 100%[=====================>] 3.41K --.-KB/s in 0s
2026-10-21 07:30:13 (18.9 MB/s) - 'hst-install.sh' saved [3490/3490]
第二步:运行交互式安装
bash hst-install.sh
脚本自动识别操作系统为 Ubuntu 22.04 后,转入交互向导,依次确认:Web/邮件/数据库/DNS/FTP/防火墙各组件是否启用、备份压缩方式、数据库与面板端口、管理员用户名/密码/邮箱,最后输入 y 开始安装。向导确认后进入的安装主线与方案 B 的实测输出完全一致(横幅 → 依赖检查 → 组件安装 → 服务配置 → 完成提示)。
💡 技术拓展:HestiaCP 的安装脚本实为两层结构——
hst-install.sh是约 140 行的"引导壳",负责校验 root 权限、检测 OS 发行版(Ubuntu 走lsb_release,Debian 走/etc/debian_version)、拉取对应发行版的正式安装器hst-install-ubuntu.sh(约 2600 行)并透传全部参数。所有组件开关(--apache、--exim等)定义在正式安装器中,两份脚本均来自 GitHubrelease分支。
⚠️ 注意:交互模式同样要求显式输入管理员用户名(向导默认
admin),无人值守模式则必须用--username传参,否则会卡在用户名循环(见第九章 FAQ 第一条实录)。
五、方案 B:官方脚本无人值守安装(自动化实测主线)
本方案用一组命令行参数完成零交互安装,是批量部署与自动化流水线的标准做法,也是本篇完整实测的主线。以下每一步均为真实执行记录。
5.1 安装命令
cd /root
wget https://raw.githubusercontent.com/hestiacp/hestiacp/release/install/hst-install.sh
bash hst-install.sh \
--interactive no \
--hostname hestia.example.com \
--email admin@example.com \
--username admin \
--password 'q1w2e3r4' \
--apache yes \
--phpfpm yes \
--multiphp no \
--vsftpd yes \
--proftpd no \
--named yes \
--mysql yes \
--mysql8 no \
--postgresql no \
--exim yes \
--dovecot yes \
--sieve no \
--clamav no \
--spamassassin no \
--iptables yes \
--fail2ban yes \
--quota no \
--api yes \
--port 8083 \
--lang en \
--force
参数速查(与 hst-install-ubuntu.sh 内定义一致):
| 参数 | 含义 | 实测取值 |
|---|---|---|
--interactive no | 关闭交互向导 | 必传 |
--hostname | FQDN 主机名 | hestia.example.com |
--email | 管理员邮箱 | admin@example.com |
--username | 管理员用户名 | admin(不可省略) |
--password | 管理员密码 | q1w2e3r4 |
--apache / --phpfpm | Apache 后端 + PHP-FPM | yes |
--multiphp | 多版本 PHP(逗号分隔版本号) | no |
--vsftpd / --proftpd | FTP 服务二选一 | vsftpd yes / proftpd no |
--named | BIND9 DNS | yes |
--mysql / --mysql8 / --postgresql | 数据库三选一可组合 | mysql yes,其余 no |
--exim / --dovecot | 邮件收发与 IMAP/POP3 | yes |
--sieve | 邮件规则过滤 | no |
--clamav / --spamassassin | 反病毒 / 反垃圾(重内存) | no |
--iptables / --fail2ban | 防火墙与防爆破 | yes |
--quota | 文件系统磁盘配额 | no |
--api | REST API | yes |
--port | 面板端口 | 8083 |
--lang | 界面语言 | en |
--force | 跳过 admin 用户已存在检查 | 视环境选用 |
💡 技术拓展:数据库后端不止默认的 MariaDB(
--mysql)。主流选项对比——
选项 原理/特点 适用场景 --mysql(MariaDB)MySQL 兼容分支,Hestia 默认打包 通用托管,生态兼容最好 --mysql8(MySQL Classic)Oracle 官方 MySQL 8 应用明确依赖 MySQL 8 特性 --postgresqlPostgreSQL 16 应用需要高级 SQL 特性 组合启用 --mysql yes --postgresql yes同机同时服务两类应用 本方案采用默认 MariaDB:面板工具链(phpMyAdmin、备份、模板)对其适配最完整。
5.2 安装过程实测输出
脚本启动后自动完成 UTF-8 locale 检查、依赖安装、仓库添加与包下载安装,关键节点实录如下(/root/install.log 与终端输出一致,输出节选):
依赖检查与横幅:
Welcome to the Hestia Control Panel installer!
Please wait, the installer is now checking for missing dependencies...
[ * ] Installing dependencies...
_ _ _ _ ____ ____
| | | | ___ ___| |_(_) __ _ / ___| _ \
| |_| |/ _ \/ __| __| |/ _` | | | |_) |
| _ | __/\__ \ |_| | (_| | |___| __/
|_| |_|\___||___/\__|_|\__,_|\____|_|
Hestia Control Panel
1.10.5
www.hestiacp.com
========================================================================
Thank you for downloading Hestia Control Panel! In a few moments,
we will begin installing the following components on your server:
- NGINX Web / Proxy Server
- Apache Web Server (as backend)
- PHP-FPM Application Server
- Bind DNS Server
- Exim Mail Server
- Dovecot POP3/IMAP Server
- MariaDB Database Server
- Vsftpd FTP Server
- Firewall (iptables) + Fail2Ban Access Monitor
========================================================================
Installation backup directory: /root/hst_install_backups/211020260732
Installation log file: /root/hst_install_backups/hst_install-211020260732.log
仓库与包安装:
Adding required repositories to proceed with installation:
[ * ] NGINX
[ * ] PHP
[ * ] Apache
[ * ] PHP-FPM
[ * ] MariaDB 11.8
[ * ] Hestia Control Panel
Updating currently installed packages, please wait...
The installer is now downloading and installing all required packages.
NOTE: This process may take 10 to 15 minutes to complete, please wait...
逐组件配置(安装收尾段):
[ * ] Configuring System IP...
[ * ] Configuring NGINX...
[ * ] Configuring Apache Web Server...
[ * ] Installing PHP 8.5...
[ * ] Configuring PHP-FPM 8.5...
[ * ] Configuring PHP...
[ * ] Configuring Vsftpd server...
[ * ] Configuring MariaDB database server...
[ * ] Installing phpMyAdmin version v5.2.3...
[ * ] Configuring Bind DNS server...
[ * ] Configuring Exim mail server...
[ * ] Configuring Dovecot POP/IMAP mail server...
[ * ] Configuring fail2ban access monitor...
[ * ] Installing Roundcube...
[ * ] Configuring File Manager...
[ * ] Configuring PHP dependencies...
[ * ] Installing Rclone & Update Restic ...
安装完成提示:
You have successfully installed Hestia Control Panel on your server.
Ready to get started? Log in using the following credentials:
Admin URL: https://hestia.example.com:8083
Backup URL: https://56.155.135.124:8083
Username: admin
Password: The password you chose during installation.
Thank you for choosing Hestia Control Panel to power your full stack web server,
we hope that you enjoy using it as much as we do!
Documentation: https://docs.hestiacp.com/
Forum: https://forum.hestiacp.com/
GitHub: https://www.github.com/hestiacp/hestiacp
Note: Automatic updates are enabled by default. If you would like to disable them,
please log in and navigate to Server > Updates to turn them off.
--
Sincerely yours,
The Hestia Control Panel development team
Made with love & pride by the open-source community around the world.
[ ! ] IMPORTANT: You must restart the system before continuing!
💡 说明:
Admin URL使用 FQDN 主机名;Backup URL使用安装器探测到的服务器公网出口 IP——本环境为 NAT 网络出口(v-list-sys-ips中体现为 NAT 地址映射,见第八章)。IMPORTANT: You must restart the system要求重启一次系统以完成内核态配置(fail2ban/网络等)。
5.3 重启系统
reboot
重启后重新登录,进入验证环节。
5.4 安装后验证
服务状态验证:
systemctl list-units --type=service --state=running | grep -iE "hestia|nginx|apache|mariadb|bind|exim|dovecot|vsftpd|fail2ban|php"
实测回显:
apache2.service loaded active running The Apache HTTP Server
dovecot.service loaded active running Dovecot IMAP/POP3 email server
exim4.service loaded active running LSB: exim Mail Transport Agent
fail2ban.service loaded active running Fail2Ban Service
hestia.service loaded active running LSB: starts the hestia control panel
mariadb.service loaded active running MariaDB 11.8.9 database server
named.service loaded active running BIND Domain Name Server
nginx.service loaded active running nginx - high performance web server
php8.5-fpm.service loaded active running The PHP 8.5 FastCGI Process Manager
vsftpd.service loaded active running vsftpd FTP server
面板端口与响应验证:
ss -ltn | grep 8083
curl -sk -o /dev/null -w "%{http_code}\n" https://127.0.0.1:8083
实测回显:
LISTEN 0 511 0.0.0.0:8083 0.0.0.0:*
302
8083 已监听,HTTP 302 表示面板将未登录请求重定向到登录页,面板服务正常。
版本与系统信息验证:
/usr/local/hestia/bin/v-list-sys-info
实测回显:
HOSTNAME OS VER ARCH HESTIA RELEASE UPTIME LA
-------- -- --- ---- ------ ------- ------ --
hestia.example.com Ubuntu 22.04 x86_64 1.10.5 release 2396 0.87 / 1.00 / 1.32
浏览器登录验证:访问 https://<服务器IP>:8083(或 https://hestia.example.com:8083,自签证书需在浏览器确认例外),使用 admin / q1w2e3r4 登录即可进入面板首页。
六、方案 C:离线 deb 包安装(受限网络服务器)
内网或对 GitHub 连接不稳的服务器,可将官方 apt 仓库中的 deb 包与安装器脚本预先下载、随包转移到目标机,再用安装器的 --with-debs 机制本地安装。脚本在该模式下直接 dpkg -i 安装本地 hestia/hestia-nginx/hestia-php 三个包,跳过在线版本校验。
第一步(联网机器):下载三个官方 deb 与安装器
mkdir -p /tmp/hestiacp-src/debs && cd /tmp/hestiacp-src/debs
# 包路径与版本来自 apt.hestiacp.com jammy 池(版本号以实查为准)
wget https://apt.hestiacp.com/pool/jammy/main/h/hestia/hestia_1.10.5-1%2bubuntu22.04_amd64.deb
wget https://apt.hestiacp.com/pool/jammy/main/h/hestia-nginx/hestia-nginx_1.30.4-1%2bubuntu22.04_amd64.deb
wget https://apt.hestiacp.com/pool/jammy/main/h/hestia-php/hestia-php_8.5.9-1%2bubuntu22.04_amd64.deb
# 发行版专用安装器(引导壳会自动拉取它,离线场景需一并下载)
wget https://raw.githubusercontent.com/hestiacp/hestiacp/release/install/hst-install-ubuntu.sh
wget https://raw.githubusercontent.com/hestiacp/hestiacp/release/install/hst-install.sh
# 将 /tmp/hestiacp-src 整体拷贝到目标服务器
第二步(目标服务器):带本地包执行安装
cd /root && bash /path/to/hst-install-ubuntu.sh \
--interactive no --hostname hestia.example.com --email admin@example.com \
--username admin --password 'q1w2e3r4' \
--apache yes --phpfpm yes --named yes --mysql yes --exim yes --dovecot yes \
--clamav no --spamassassin no \
--with-debs /tmp/hestiacp-src/debs --force
--with-debs 生效时脚本按本地包安装(安装器内逻辑原文:dpkg -i $withdebs/hestia_*.deb、dpkg -i $withdebs/hestia-php_*.deb、dpkg -i $withdebs/hestia-nginx_*.deb),其余主线与方案 B 一致。
⚠️ 注意:Hestia 自身三包走本地,但 Apache/MariaDB/Bind 等发行版依赖仍需 apt 源(Ubuntu 官方源或内网同步源);完全断网的机器请先自建 Ubuntu 内网源。目标机 GitHub 不可达不影响本方案——安装器已提前随包转移。
七、方案对比与选择建议
| 维度 | 方案 A 交互式 | 方案 B 无人值守 | 方案 C 离线 deb |
|---|---|---|---|
| 是否需联网 | 需(GitHub + apt 源) | 需(GitHub + apt 源) | GitHub 可离线,apt 源仍需 |
| 组件选择方式 | 向导逐项 y/n | 命令行参数 | 命令行参数 + 本地包 |
| 自动化能力 | 无(需人工应答) | 完全可脚本化 | 完全可脚本化 |
| 版本校验 | 在线校验 release 版本 | 在线校验 release 版本 | 跳过(以本地包为准) |
| 适用场景 | 首次体验、单台手工装 | 批量部署、流水线 | 内网隔离、GitHub 不稳 |
选择建议:能联网的单台机器首选方案 A 快速上手;批量或自动化用方案 B;对 GitHub 连接受限的内网服务器用方案 C(apt 依赖源可用内网同步源替代)。
八、安装后配置说明
安装完成后需要掌握的关键配置入口(均实测):
全局配置文件:/usr/local/hestia/conf/hestia.conf(面板所有系统级开关),例如管理端口、API、主题等;修改后 systemctl restart hestia 生效。/etc/hestiacp/hestia.conf 是启动加载器(内容为 export HESTIA='/usr/local/hestia' 并 source /etc/hestiacp/local.conf),个性化覆盖统一写入 /etc/hestiacp/local.conf,避免升级被覆盖。
IP 与 NAT 配置:v-list-sys-ips 实查(本环境):
IP MASK NAT STATUS WEB DATE
-- ---- --- ------ --- ----
10.89.61.2 255.255.255.0 56.155.135.124 shared 1 2026-10-21
NAT 出口 IP 由安装器自动登记(即安装完成提示里的 Backup URL 地址);站点默认绑定此 IP。v-change-sys-ip-nat 可手工修正 NAT 映射。
面板自动更新:默认开启(完成提示原文 Note: Automatic updates are enabled by default),关闭路径为面板 Server > Updates,或 v-change-sys-config-value 'UPGRADE_SEND_EMAIL' 'false' 类 CLI。
升级与多版本管理:
apt-cache policy hestia # 实查当前版本与候选版本
apt-get install --only-upgrade hestia hestia-nginx hestia-php # 升级面板三包
apt-mark hold hestia hestia-nginx hestia-php # 锁定版本(抑制自动升级)
apt-mark unhold hestia # 解锁
apt-cache policy hestia 实测回显:
hestia:
Installed: 1.10.5-1+ubuntu22.04
Candidate: 1.10.5-1+ubuntu22.04
Version table:
*** 1.10.5-1+ubuntu22.04 500
面板内置更新命令:v-update-sys-hestia-all(依次升级 hestia 及其全部组件),配套 cron 任务可用 v-add-cron-hestia-autoupdate 注册。
日志位置:/var/log/hestia/(auth.log 登录审计、system.log 系统事件、nginx-access.log / nginx-error.log 面板访问日志)与 /root/hst_install_backups/hst_install-<时间戳>.log(安装全量日志)。
九、常见问题(FAQ)
以下四条均为本次安装实测中真实发生的问题与解决过程。
Q1:无人值守安装卡死,日志疯涨 "Please use a valid username (ex. user)."?
- 现象:安装启动后长时间无进展,
install.log持续膨胀(实测涨至 12.9 MB),内容为无限重复的Please use a valid username (ex. user).; - 定位:1.10.5 安装器在
--interactive no模式下不为管理员用户名提供默认值——脚本逻辑为「$username为空则进入while validate_username循环用read等待键盘输入」,而read读到重定向的 EOF 后永不退出,形成死循环; - 解决:无人值守参数必须显式携带
--username admin,加入后安装一次通过。
Q2:安装结尾报 Error: invalid ip :: 2406:da16:... 与 Error: can't create hestia.example.com domain?
- 现象:包安装全部完成,但在
Configuring System IP...阶段报Error: invalid ip :: 2406:da16:d72:600:a8c0:e210:83c8:b189,随后Error: can't create hestia.example.com domain;重启后hestia.service未运行、8083 未监听(实测curl https://127.0.0.1:8083连接拒绝); - 定位:服务器存在无法被安装器识别的 IPv6 地址配置,系统 IP 登记(
v-add-sys-ip)失败,导致后续基于 IP 的主机名域名创建连带失败,安装器中止于收尾配置阶段; - 解决:禁用 IPv6 后全新重装——
sysctl -w net.ipv6.conf.all.disable_ipv6=1(连同default与lo),并写入/etc/sysctl.d/99-disable-ipv6.conf持久化;因安装器拒绝在已装系统上重跑(见 Q5),需在全新系统重装或先彻底卸载(见第十章)。若业务需要 IPv6,则应修正 IPv6 配置(保证地址合法、网关可达)后重装,让安装器能正确登记。
Q3:脚本开头报 locale-gen: command not found?
- 现象:引导壳输出
hst-install.sh: line 88: locale-gen: command not found与[ ! ] Failed to generate C.UTF-8 locale. Leaving existing locale untouched.; - 定位:Ubuntu 最小化安装未自带
locales包,引导壳的 UTF-8 locale 兜底逻辑无法生效; - 解决:
apt-get install -y locales后重跑。实测补装后同段输出变为Generating locales (this might take a while)... C.UTF-8... done / Generation complete.;该问题不阻断安装,但建议修复以避免多语言环境字符集异常。
Q4:wget https://raw.githubusercontent.com/... 下载失败或卡住?
- 现象:目标机对
raw.githubusercontent.com直连不稳(实测curl直连返回000连接失败); - 解决:为下载命令配置 HTTP 代理:
wget -x http://<代理IP>:<端口> https://raw.githubusercontent.com/hestiacp/hestiacp/release/install/hst-install.sh;或先在联网机器下载后scp上传(与方案 C 的包转移方式相同)。
Q5:在已装过 Hestia 的机器重跑安装报 Error: Hestia install detected. Unable to continue?
- 现象:首次安装意外中止后重跑安装器,直接被拒绝;
- 定位:安装器检测到
/usr/local/hestia已存在(面板程序已落盘)即拒绝继续,--force只豁免 admin 用户存在性检查,不豁免整机重装; - 解决:在全新系统重装(推荐,符合官方"全新系统"要求),或按第十章先彻底清理再重跑。
十、卸载与清理
官方未提供一键卸载器(官方文档与仓库均无 uninstall 脚本,推荐整盘重装系统)。若需在保留系统的前提下手工移除面板,按以下顺序执行(包名与目录均为本环境实查):
# 1. 停止面板与相关服务(每行一个单元)
systemctl stop hestia
systemctl stop fail2ban
systemctl stop vsftpd
systemctl stop dovecot
systemctl stop exim4
systemctl stop named
systemctl stop apache2
systemctl stop nginx
systemctl stop php8.5-fpm
# 2. 卸载面板三包
apt-get purge -y hestia hestia-nginx hestia-php
# 3. 删除面板数据与用户数据目录
rm -rf /usr/local/hestia /etc/hestiacp /var/log/hestia /backup
rm -rf /home/admin /home/webmaster
# 4. 删除面板创建的系统用户
userdel -r admin 2>/dev/null
userdel -r hestiamail 2>/dev/null
# 5. 清理数据库(如不再需要 MariaDB 可一并 apt purge)
mysql -e "DROP DATABASE IF EXISTS roundcube;"
# 6. 删除防火墙规则残留(iptables 规则随服务停止失效,fail2ban 配置随 purge 清除)
执行后复查确认:ls /usr/local/hestia 应报 No such file or directory,ss -ltn | grep 8083 应无输出。
⚠️ 注意:purge 不会卸载 Apache/MariaDB/Bind 等发行版依赖包;机器需回归纯净时请逐一
apt purge并清理各自数据目录,或直接重装系统。
十一、参考链接
- 官方文档 Getting Started / Requirements:https://docs.hestiacp.com/getting-started.html
- 安装脚本 hst-install.sh(release 分支):https://raw.githubusercontent.com/hestiacp/hestiacp/release/install/hst-install.sh
- GitHub 仓库与 Release Notes:https://github.com/hestiacp/hestiacp
- 官方 apt 仓库:https://apt.hestiacp.com/
- 面板配置与 CLI 详见本专栏:《HestiaCP 介绍与选型指南》、《HestiaCP 1.10.5 配置参数详解》、《HestiaCP 1.10.5 常用 CLI 命令与工具详解》