在目的服务器配置 迁移与传输管理器

重要提示: 只有您对 迁移与传输代理 配置做了相应的修改才能修改 迁移与传输管理器和 迁移与传输代理 的连接设置。

要更改 迁移与传输代理 和 迁移与传输管理器 的连接参数:

  1. 打开用于编辑的%plesk_dir%\PMM\Migration\migrmng.exe.config文件并找到"/configuration/appSettings"部分。

    %plesk_dir%是定义 PPP 安装的文件夹的系统变量。

  2. 若要更改端口号,需在<add key="Port" value="6489" />而不是6489里输入所需值。

    例如,如果您需使用端口 7788,那么此字符串应为<add key="Port" value="7788" />

  3. 若要更改 迁移与传输代理 URI,需在<add key="ObjectUri" value="WinAgentURI" />而不是 WinAgentURI里输入所需值。

    例如,如果您需使用 "MigrationAgent325" 作为迁移 URI,那么此字符串应为<add key="ObjectUri" value="MigrationAgent325" />

  4. 若要更改信道类型,需在<add key="ChannelType" value="HTTP" />字符串而不是HTTP里输入所需值。

    例如,如果您需使用TCP,那么此字符串应为<add key="ChannelType" value="TCP" />

  5. 保存文件。
migrmng.exe 配置文件的默认内容
<?xml version="1.0" encoding="utf-8"?>
<configuration>
 <configSections>
 <section name="Platforms" type="ForeignMigratorEngineCore.Configuration.PlatformsSectionHandler,ForeignMigratorEngineCore"/>
 </configSections>
 <startup>
 <supportedRuntime version = "v2.0.50727" />
 <supportedRuntime version = "v1.1.4322" />
 </startup>

<!-- These are the settings you may reconfigure -->
 <appSettings>
 <add key="Port" value="6489" />
 <add key="ObjectUri" value="WinAgentURI" />
 <add key="ChannelType" value="HTTP" />

 <!-- The dump file location and file name defined in Plesk GUI override settings in this configuration file -->
 <add key="DumpDirectory" value="" />
 <add key="DumpName" value="" />
 <add key="UnixDumpDirectory" value="/usr/local" />
 <add key="LogUseDefaultCulture" value="false" />
 </appSettings>
<!-- End of the settings you may reconfigure -->

 <Platforms>
 ...
 </Platforms>
 </configuration>