在无人值守模式下升级 Plesk for Windows。
-
通过 RDP 登录到服务器。
-
下载 Plesk 安装程序 。
-
通过必要选项启动安装程序
要想实现不需要用户进行任何输入即可安装 Plesk,则需要在运行安装程序脚本时通过以下相应选项提供所有必要信息:
plesk-installer.exe <OPTIONS> --upgrade-installed-components <OTHER_OPTIONS>
以下安装程序选项是自动化升级 Plesk 时常用的选项。
选项 | 用法 | 详解 |
---|---|---|
--source |
--source <URL> or --source <PATH> |
程序包来源选项定义安装程序应获取并安装或升级 Plesk 程序包的位置。您可以使用 欲了解有关管理本地镜像 repositories 的信息,请参阅 镜像 Plesk Autoinstall 服务器 。 |
--select-release-id |
--select-release-id <ID> |
This option defines what version Plesk will be upgraded to.
运行以下命令可查看公开发行版本的所有版本 ID: plesk-installer.exe --show-releases 运行以下命令可查看包括预览和测试版本在内的所有可用版本 ID: plesk-installer.exe --show-releases --skip-branch-filter |
--installation-type |
--installation-type <TYPE> |
选择安装预定义的一套组件:推荐、全部或自定义。 运行以下命令可查看可用的安装类型: plesk-installer.exe --select-release-id <ID> --show-installation-types |
--install-component |
--install-component <COMPONENT_1> ^ [--install-component <COMPONENT_2> ^ [... [--install-component <COMPONENT_N>]]] (The caret |
除了 运行以下命令可查看某个版本可安装的所有组件: plesk-installer.exe --select-release-id <ID> --show-components |
若要查看安装程序的所有选项,请运行:
plesk-installer.exe --help
示例 1:从默认的更新服务器升级 Plesk
The following command performs the upgrade to the Plesk 17.0.17 release
version (ID is PANEL_17_0_17
) from the Plesk updates server. All
installer output is redirected to an XML file.
plesk-installer.exe --select-release-id PANEL_17_0_17_WIN ^
--upgrade-installed-components --enable-xml-output
示例 2:从镜像升级 Plesk,安装指定的组件
The following command upgrades Plesk to the 17.0.17 release version (ID
is PANEL_17_0_17_WIN
) from the mirror set up on the server
‘mirror.example.com’ available via HTTP. Installation files will
temporarily be stored in the %SystemDrive%\Parallels\
folder, and the
installation status will be reported to the email ‘admin@example.com’.
The Bind name server component is additionally installed.
plesk-installer.exe --source http://mirror.example.com/ ^
--target %SystemDrive%\Parallels ^
--select-release-id PANEL_17_0_17_WIN ^
--upgrade-installed-components ^
--install-component dns ^
--notify-email admin@example.com
(The caret ^
character splits a single long command into multiple lines to make it more readable.)