If you want to select specific Plesk components for installation, install Plesk using the interactive console. Follow these steps to begin:

  1. 下载安装程序脚本:

    wget https://autoinstall.plesk.com/plesk-installer
    
  2. Make the downloaded installer script executable:

    chmod +x ./plesk-installer
    
  3. (Optional) During the installation, Plesk configures firewalld, at which time runtime firewalld rules are lost. To preserve the currently configured firewalld runtime rules, run the following command:

    env PLESK_INSTALLER_SKIP_FIREWALLD=1
    

    但是,在此情况下,必须手动打开 Plesk 正常运行所需的端口 。您可以通过 firewalld 或 Plesk 防火墙扩展来实现。

  4. (备选)当您在配有 512 MB 或更少的 RAM 内存的服务器上安装 Plesk 时,可创建 1 GB的交换文件来提高 Plesk 的性能。如果您不想要 Plesk 创建该文件(例如,如果您有 SSD 硬盘并且想要避免由持续的 I/O 操作所造成的磨损),请增加服务器上的 RAM 内存容量或者运行以下命令:

    env PLESK_SWAP=disable
    
  5. Launch the Plesk interactive installer. Depending on the Plesk version you want to install, do one of the following:

    • To install the latest stable Plesk version, run the following command:

      sh ./plesk-installer
      
    • To install another Plesk version, first view the list of all versions available for installing. Add the --all-versions option, and then run the command:

      sh ./plesk-installer --all-versions
      

      Select a Plesk version and type its sequential number:

      image 77211

    In the course of installation, you will be asked a series of questions. You will be able to choose suitable options as well as go back to correct already selected options if necessary.

    image 77210

    To learn more about the installation script, run the following command:

    ./plesk-installer --help
    

When the installation process is completed, follow the few simple steps to configure Plesk for work as described here: Plesk Single Server Post-install Configuration.