提供的产品配置

在 DigitalOcean 上可实现以下 Plesk 配置。

Plesk 组件组
Plesk Web Admin Edition SE (Ubuntu 20.04) 推荐组合 *(默认安装 Fail2Ban、ModSecurity、Plesk Firewall 和 **WordPress Toolkit) 另外默认会安装 DigitalOcean DNS 扩展。
Plesk Web Admin Edition SE (CentOS 7) 推荐组合 *(默认安装 Fail2Ban、ModSecurity、Plesk Firewall 和 **WordPress Toolkit) 另外默认会安装 DigitalOcean DNS 扩展。

注解:推荐 组件组包括 web 主机所需的所有组件(包括 web 服务器、邮件服务器、数据库服务器,等等),外加最流行和最常用的功能。欲了解更多有关 Plesk Web Admin Edition SE 的信息,请参阅 Plesk Web Admin SE 部分。

注解: ** Plesk Web Admin Edition SE 中的 WordPress Toolkit 只提供基本的功能。若要使用 WordPress 高级功能,请将您的 Plesk 许可证升级为 Web Pro 或 Web Host Edition

在 DigitalOcean 上安装Plesk

  1. 登录现有的 DigitalOcean 帐户或创建一个帐户

  2. Click Marketplace (under “DISCOVER” in the left navigation bar), type Plesk in the search bar, and then click the desired Plesk image: “Plesk” (which is Plesk on Ubuntu 18.04) or “Plesk (CentOS)”.

    image 79869

  3. Click Create Plesk (CentOS) Droplet/Create Plesk Droplet.

  4. 选择三个方案中的一个然后选择一个 droplet,注意其附带的内存容量。

    您可以选择标准的 droplet 注意所带的内存容量。

    The more websites you intend to host and the more traffic the hosted websites generate, the more memory you will need. Estimate the amount of memory your setup will require.

    如果你想在 DigitalSea 上试用 Plesk,你可以选择足够测试的最小的 droplet (标准方案下的 1 GB/1 vCPU)。如果之后您发现资源不够了, 您可以升级您的 droplet

    image 79872

  5. (Optional) Adding block storage is not necessary for Plesk to operate. You can skip this option and go to the next step.

  6. 选择数据中心区域。如果您计划托管小型企业网站,我们建议您选择最靠近其地理位置的区域,这样有利于降低本地访客访问时的页面加载时间。

  7. 对于大多数 Plesk 用户来说,不需要其他选项,例如 专用网络IPv6用户数据监控 。您可以跳过它们进入到下一步。

  8. 选择登录您的 droplet 的方式。

    The easiest way is by using the root username and password. To log in this way, select Password and type your root password.

    注解: Keep your password safe. You will not see it again after the droplet is created.

    image ssh password screen

    To log in to your droplet, you can also use SSH keys and SSH clients (for example, PuTTY, iTerm2, or Terminal). SSH keys are more secure than passwords but using them is slightly more complicated.

  9. 选择要部署多少 Plesk 实例,并为每个实例提供一个可识别的名称。

    image 79878

  10. (备选)此时,您的 Plesk 实例已经准备好部署。如果您计划部署多个实例,您可能想要通过以下方式将其分组:

    您可以标记 droplet 或在 droplet 创建后的任何时候为其选择一个项目。

    image 79881

  11. (Optional) Adding backups is not necessary for Plesk to operate. You can skip this option and go to the next step.

  12. Click Create Droplet.

您的 Plesk 实例正在部署。一旦部署完成,您可以在 Plesk 中开始操作。

Accessing Plesk for the First Time

The fastest way to log in to Plesk on DigitalOcean is by using the root username and password.

To log in to Plesk on DigitalOcean for the first time using a root password:

  1. Locate your Plesk droplet and copy the IPv4 address next to it.

    image login 1

  2. Open the https://<your-droplet-IPv4> link in your browser.

  3. Ignore the “Your connection is not private” warning in your browser and proceed. It is safe to do so because the connection to your Plesk server is actually secure and encrypted with a self-signed SSL/TLS certificate.

  4. On the Plesk login page, specify the root username, the root password you have created earlier, and then click Log in.

    image login 2

  5. You will be redirected to the Plesk welcome screen. Provide your contact name and email address; read and accept the End-User License Agreement; set an administrator password.

    注解: To log in to Plesk next time, use that password and the admin username.

  6. Click Enter Plesk to log in to Plesk.

    image login 3

To log in to Plesk on DigitalOcean for the first time using SSH keys:

  1. Locate your Plesk droplet and copy the IPv4 address next to it.

    image login 1

  2. Access the droplet command line via SSH. You can do so using your own SSH client, for example PuTTY on Windows or Terminal on Linux and macOS.

    PuTTY is a free popular SSH client for Windows. However, PuTTY does not work with the standard .pem format of SSH keys. If you use PuTTY, you will need to convert your SSH key to the PuTTY-specific format.

    Unlike Windows, Linux and macOS have the command-line Terminal application available by default. If you use Terminal, you will need to set the specific permissions for the key downloaded from DigitalOcean and place the key in the designated folder.

  3. Run the following command to generate one-time login links:

    sudo plesk login
    
  4. Plesk will generate two login links: one with the droplet hostname and the other one with the droplet IPv4 address. Open the link with the hostname in your browser (for example, https://eloquent-ishizaka.192-0-2-1.plesk.page/login?secret=KgG2POCJYtWoBc2EHoJzV6ThQpxkMjwuj7hv-9LP8LLbSc-J).

    注解: If the link with the hostname does not work for any reason, open the second link with the IP address (for example, https://192.0.2.1/login?secret=hlHH450sx%2FAlSJHj1VWJC2qKxK6gqVxtsMkYG6bf6wc%3D). In this case, you will see the “Your connection is not private” warning in your browser. Ignore the warning and proceed. It is safe to do so because the connection to your Plesk server is actually secure and encrypted with a self-signed SSL/TLS certificate.

  5. You will be redirected to the Plesk welcome screen. Provide your contact name and email address; read and accept the End-User License Agreement; set an administrator password.

    注解: To log in to Plesk next time, use that password and the admin username.

  6. Click Enter Plesk to log in to Plesk.

    image login 3

注解: 如果您登录到仍在部署的 Plesk 实例,您将看到维护屏幕。一旦部署完成,维护屏幕消失,您将能够开始使用 Plesk。

image 79882

Congratulations! Your Plesk is completely ready to work and you can start adding your first domain. We also recommend that you make the following steps:

设置 DNS 主机

若要将您的网站在网上开通,可选择如何设置您的 DNS 主机:在 Plesk 中内部实现或使用第三方 DNS 服务外部实现,例如 DigitalOcean DNS。我们强力建议您使用 DigitalOcean DNS,因为具备以下优势:

  • 无需设置和维护从属 DNS 服务器。DigitalOcean DNS 提供免费的 DNS 主机和三个不同的域名服务器。这将降低您的 Plesk 服务器的负载并提高 DNS 主机的可靠性。
  • No need to configure DNS settings manually. DNS zones will be automatically synced between Plesk and DigitalOcean DNS by the DigitalOcean DNS extension (installed by default with Plesk on DigitalOcean).

Learn how to set up DNS hosting in DigitalOcean DNS.

您可以在将域名添加到 Plesk 之前或之后设置 DNS 主机。两种方式下,新的和现有的域名都将自动与 DigitalOcean DNS 同步。

注解: 如果域名与已经在 DigitalOcean DNS 中托管的网站的名称匹配,则无法在 Plesk 中创建该域名。

If you want to use Plesk as a DNS server, refer to this topic.

If you want to use an external DNS service other than DigitalOcean DNS, you need to configure this external DNS service and also point the domain name to your Plesk server. To configure an external DNS service, refer to its documentation.

If you have already configured the external DNS service and it supports DomainConnect, use the Domain Connect extension, which is shipped with Plesk by default, to automatically point the domain name to your Plesk server.

分配浮动 IP 地址

创建 droplet 后,DigitalOcean 会自动给其分配一个静态公共 IP 地址。此 IP 地址足够用于使用临时网站或试用 Plesk。您可以重启 droplet,将其打开或关闭,或将其重建 - 只有破坏 droplet 该静态 IP 地址才会丢失。

但是,对于主机生产性网站,我们建议给您的 droplet  分配一个浮动 IP 地址 并`备份您的 droplet <https://www.digitalocean.com/docs/images/backups/>`__ 。不像静态 IP 地址,浮动 IP 地址可在 droplet 之间移动。

如果您的 droplet 破坏了,或者您不小心破坏了它,您的网站将不可用,直到您修复了该 droplet 或者创建一个新的droplet。避免宕机的最简单的方式是移动浮动 IP 以备份 droplet。这将立即使您的网站备份,而无需更改 DNS 设置。

发送邮件的问题

如果您无法从 Plesk 发送电子邮件,请检查 TCP 端口 25 上的传入连接是否被阻。如果被阻,请 联系 DigitalOcean 支持