本章阐述如何实施和执行安装脚本,也提供安装脚本范例。
--source <mirror URL>
/root
目录。若要使用另一目录,使用下列选项:--target <directory-name>
该脚本会在指定的服务器上执行 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'
完成