如何安装 cPanel

作者:奥利维亚-海夫纳
cpanel icon

什么是 cPanel:

当您在寻找 离岸 VPS 服务器 或 DMCA 忽视专用服务器时,需要考虑的最重要因素之一就是托管面板。托管面板是您用来管理网站的界面。最常用的主机面板是 cPanel。.

cPanel 是最受欢迎的主机面板,因为它易于使用且功能强大。使用 cPanel,您可以管理网站的数据库、域名、电子邮件账户和文件。cPanel 还包括一个文件管理器,因此您可以轻松上传和下载文件到您的网站。.

请按照本快速教程开始使用 cPanel 和 WHM。.

cPanel 和 WHM 要求:

在开始使用 cPanel 和 WHM 之前,首先要仔细检查系统的先决条件。您必须具备以下条件。.

1- 硬件要求:

  •  兼容的 64 位 CentOS、CloudLinux 或 RHEL 操作系统版本。.
  •  至少需要 1 GB 内存。最好是 2 GB 内存。.
  •  存储容量至少 20 GB,建议 40 GB。.

2- 网络要求:

  • 您的主机名必须是一个完全合格的域名 (FQDN),例如 server.webcare360.net,它与您的任何服务器的域名都不匹配。在这种情况下,您服务器的一个有效 IPv4 或 IPv6 地址就可以进行 FQDN 解析。.
  •  为网络接口配置的静态 IP 地址。.
  • 应禁用服务器上的网络管理员服务。.
  • cPanel 与 SELinux 不兼容,因此在继续运行之前,请禁用 SELinux。完成后重新启动服务器。.

安装:

  1. 登录 以根用户身份登录服务器。.

  2.  我们建议使用此命令更新服务器软件包。.

yum 更新

  3.  cPanel 是用 Perl 编写的;首先在虚拟主机服务器上使用以下命令运行它(如果尚未安装);;

yum install perl curl

  4.  运行以下命令在 cPanel 中调出 WHM。.

cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest

  5.  完成安装过程后(可能需要 10-12 分钟),你会看到如下图所示的确认界面。.

Congratulations! Your installation of cPanel & WHM 11.80 is now complete. The next step is to configure your server.
Before you configure your server, ensure that your firewall allows access on port 2087.
After ensuring that your firewall allows access on port 2087, you can configure your server.
1. Open your preferred browser
2. Navigate to the following url using the address bar and enter this one-time autologin url:
https://1.2.3.4:2087/cpsess2088094483/login/?session=root%3ajja2wE_GT2ndEFdT%3acreate_user_session%2ce78ec6c6754e9dda90efec96091ac8c9
After the login url expires you generate a new one using the 'whmlogin' command or manually login at:
https://1.2.3.4:2087
Visit https://go.cpanel.net/whminit for more information about first-time configuration of your server.
Visit http://support.cpanel.net or https://go.cpanel.net/allfaq for additional support
Thank you for installing cPanel & WHM 11.80!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Your system kernel may have been updated.
Current kernel (3.10.0-957.12.2.el7.x86_64) has been changed to: 3.10.0-957.21.3.el7.x86_64
Before rebooting the system, please ensure that the installed kernel version is compatible with your deployment.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Removing /root/installer.lock.

  6.  恭喜您!您已成功安装 cPanel/WHM 控制面板。.

相关博客

cPanel and Linux Security Advisory

CVE-2026-29201、29202、29203 和 Dirty Frag

  新的 cPanel 和 Linux 内核安全公告:网站所有者和服务器管理员应立即采取的措施 已发布:2026 年 5 月咨询重点:cPanel 和 WHM、WP

连接

保持联系