このセクションでは、インストールスクリプトの導入と実行について説明し、インストールスクリプトのサンプルを紹介します。
--source <ミラー URL>
/root
ディレクトリに保存されます。別のディレクトリを使用する場合は、以下のオプションを使用します。--target <ディレクトリ名>
このスクリプトは、指定したサーバに最新の Plesk バージョンを標準インストールします。
#!/bin/sh
SERVERS_LIST="node1.example.com node2.example.com"
for current_server in $SERVERS_LIST; do
ssh -f root@$current_server 'wget https://installer.plesk.com/plesk-installer -O - | sh /dev/stdin --source https://installer.plesk.com/ --target /tmp/plesk-installation --select-product-id plesk --select-release-latest --installation-type "Typical" --notify-email admin@example.com'
done