Hestia 满足从个人开发者到托管服务提供商等各类用户的服务器管理需求,提供高效便捷的管理体验。其具备的主要功能如下:(1)多用户,与其他用户共享对您服务器的访问权限并限制他们的资源;(2)快速部署 Web 网站,支持添加管理无限域并在其上快速安装应用程序;(3)自定义DNS和服务器集群,构建高效安全的权威DNS集群:高可用、负载均衡与实时监控;(4)自建Mail系统,自定义您自己的网站电子邮件系统,无需向商业邮件提供商付费!支持入站和出站邮件服务的每个邮箱域 TLS 证书(Exim 4、Dovecot、Webmail配置)。
项目官方网址:https://github.com/hestiacp/hestiacp
项目说明文档:https://hestiacp.com/docs/introduction/getting-started.html
项目中文文档(非官方):https://hestiamb.org/docs/introduction/getting-started.html
Hestia 必须安装在全新操作系统安装之上,以确保正常功能。 如果在 VPS/KVM 上,并且已有管理员帐户, 请删除该默认管理员 ID,或使用--force继续安装。(如:Ubuntu) 有关更多详细信息,请参阅下面的自定义安装。
| 组件 | 最低配置 | 推荐配置 |
|---|---|---|
| CPU | 1 核 64 位处理器 | 4 核 64 位处理器 |
| 内存 | 1 GB (不安装 SpamAssassin 和 ClamAV) | 4 GB |
| 存储 | 10 GB HDD | 40 GB SSD |
| 操作系统 | Debian 11/12/Ubuntu 22.04/24.04 LTS/RHEL 9 | Debian 最新稳定版/Ubuntu 最新 LTS/RHEL 9.x 系列 |
警告
Hestia 仅运行在 AMD64 / x86_64 和 ARM64 / aarch64 处理器上。 它还需要64位操作系统!我们目前不支持基于 i386 或 ARM7 的处理器。
支持的操作系统
- Debian 11 or 12 or 13
- Ubuntu 22.04 or 24.04
Hestia 不支持非 LTS 操作系统。 例如,如果您将其安装在 Ubuntu 21.10 上,您将不会获得我们的支持。
第一步:如果是国内服务器,安装前需要对服务器进行软件包更新,否则这一步跳过
使用以下命令对服务器终端进行语言切换
localectl set-locale LANG=zh_CN.UTF-8
如切换重启后显示还是英文字符请参考设置系统环境变量进行设置更新后即可显示中文
使用中科大debian12源
echo -e "deb https://mirrors.ustc.edu.cn/debian bookworm main contrib non-free non-free-firmware\ndeb-src https://mirrors.ustc.edu.cn/debian bookworm main contrib non-free non-free-firmware\ndeb https://mirrors.ustc.edu.cn/debian bookworm-updates main contrib non-free non-free-firmware\ndeb-src https://mirrors.ustc.edu.cn/debian bookworm-updates main contrib non-free non-free-firmware\ndeb https://mirrors.ustc.edu.cn/debian bookworm-backports main contrib non-free non-free-firmware\ndeb-src https://mirrors.ustc.edu.cn/debian bookworm-backports main contrib non-free non-free-firmware\ndeb https://mirrors.ustc.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware\ndeb-src https://mirrors.ustc.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware" | sudo tee /etc/apt/sources.list
然后使用reboot对服务器进行重启后使用以上命令进行软件源更新替换
reboot
使用一键交互更换源命令对服务器进行换源(可选:推荐中国科学技术大学)
bash <(curl -sSL https://linuxmirrors.cn/main.sh)
以下是交互式更换源需进行选择的项(注: 14 是中国科学技术大学源)
1.请选择并输入你想使用的软件源 [ 1-15 ]:14
2.软件源是否使用 HTTP 协议? [Y/n] n
3.是否跳过更新软件包? [Y/n] n
4.是否清理已下载的软件包缓存? [Y/n] y
完毕后使用以下命令对服务器终端进行最后更新后即可安装 Hestia 服务器管理面板
apt update -y && apt upgrade -y
推荐去面板安装配置进行配置后快速安装!免去在终端输入需要的信息!
Ubuntu系统请勾选 强制安装 选项!
第二步:正常安装hestiacp
安装hestaicp
Interactive installer that will install the default Hestia software configuration.
Step 1: Download
Download the installation script for the latest release:
wget https://raw.githubusercontent.com/hestiacp/hestiacp/release/install/hst-install.sh
If the download fails due to an SSL validation error, please be sure you've installed the ca-certificate package on your system - you can do this with the following command:
apt-get update && apt-get install ca-certificates
Step 2: Run
To begin the installation process, simply run the script and follow the on-screen prompts:
bash hst-install.sh
You will receive a welcome email at the address specified during installation (if applicable) and on-screen instructions after the installation is completed to log in and access your server.
Custom installation
If you want to customise which software gets installed, or want to run an unattended installation, you will need to run a custom installation.
To view a list of available options, run
bash hst-install.sh -h
List of installation options
TIP
An easier way to choose your installation options is by using the Install script generator.
To choose what software gets installed, you can provide flags to the installation script. You can view the full list of options below.
-a, --apache Install Apache [yes | no] default: yes
-w, --phpfpm Install PHP-FPM [yes | no] default: yes
-o, --multiphp Install MultiPHP [yes | no] default: no
-v, --vsftpd Install VSFTPD [yes | no] default: yes
-j, --proftpd Install ProFTPD [yes | no] default: no
-k, --named Install BIND [yes | no] default: yes
-m, --mysql Install MariaDB [yes | no] default: yes
-M, --mysql8 Install MySQL 8 [yes | no] default: no
-g, --postgresql Install PostgreSQL [yes | no] default: no
-x, --exim Install Exim [yes | no] default: yes
-z, --dovecot Install Dovecot [yes | no] default: yes
-Z, --sieve Install Sieve [yes | no] default: no
-c, --clamav Install ClamAV [yes | no] default: yes
-t, --spamassassin Install SpamAssassin [yes | no] default: yes
-i, --iptables Install iptables [yes | no] default: yes
-b, --fail2ban Install Fail2Ban [yes | no] default: yes
-q, --quota Filesystem Quota [yes | no] default: no
-W, --webterminal Web Terminal [yes | no] default: no
-d, --api Activate API [yes | no] default: yes
-r, --port Change Backend Port default: 8083
-l, --lang Default language default: en
-y, --interactive Interactive install [yes | no] default: yes
-s, --hostname Set hostname
-e, --email Set admin email
-u, --username Set admin user
-p, --password Set admin password
-D, --with-debs Path to Hestia debs
-f, --force Force installation
-h, --help Print this help
TIP
Option --multiphp (Multi PHP) also accepts a comma seperated list of PHP versions. For example: --multiphp 8.3,8.4 will install PHP8.3 and PHP8.4
Example
bash hst-install.sh \
--interactive no \
--hostname host.domain.tld \
--email email@domain.tld \
--password p4ssw0rd \
--lang fr \
--apache no \
--named no \
--clamav no \
--spamassassin no \
--multiphp '8.2,8.3,8.4'
This command will install Hestia in French with the following software:
- Nginx Web Server
- PHP-FPM Application Server (PHP version 8.2, 8.3 and 8.4)
- MariaDB Database Server
- IPtables Firewall + Fail2Ban Intrusion prevention software
- Vsftpd FTP Server
- Exim Mail Server
- Dovecot POP3/IMAP Server
输入相关的信息后程序开始下载安装,等待约5-15分钟即可安装完成。如果您的服务器位于中国大陆境内则需要20-60分钟左右才能安装完成.完成后提示你按回车键重启。等待约1-3分钟即可重启完毕。
重新连接你的服务器即可登录Hestia的控制面板啦!安装完成后默认账户名为 admin 密码为你设置的密码!
如你没有设置请查看在根目录下/root/hst_install的文件夹默认安装配置文件名称为 hst_install-安装日期和随机编码.log的文件或者浏览ssh窗口里面有显示默认生成的密码。
发表回复