sh <(curl https://autoinstall.plesk.com/one-click-installer || wget -O - https://autoinstall.plesk.com/one-click-installer)
The installation will begin and may take between 20 and 30 minutes. If it shows a hostname-related error, do not quit the installation. Sometimes Plesk only shows warnings and provides you with instructions on how to fix your problem.