在目的伺服器配置 遷移與傳輸管理器
重要提示: 只有您對 遷移與傳輸代理 配置做了相應的修改才能修改 遷移與傳輸管理器和 遷移與傳輸代理 的連接設定。
要更改 遷移與傳輸代理 和 遷移與傳輸管理器 的連接參數:
- 打開用於編輯的
%plesk_dir%\PMM\Migration\migrmng.exe.config
檔並找到"/configuration/appSettings"
部分。%plesk_dir%
是定義 PPP 安裝的資料夾的系統變數。 - 若要更改埠號,需在
<add key="Port" value="6489" />
而不是6489
裡輸入所需值。例如,如果您需使用埠 7788,那麼此字串應為
<add key="Port" value="7788" />
。 - 若要更改 遷移與傳輸代理 URI,需在
<add key="ObjectUri" value="WinAgentURI" />
而不是WinAgentURI
裡輸入所需值。例如,如果您需使用 "MigrationAgent325" 作為遷移 URI,那麼此字串應為
<add key="ObjectUri" value="MigrationAgent325" />
。 - 若要更改通道類型,需在
<add key="ChannelType" value="HTTP" />
字串而不是HTTP
裡輸入所需值。例如,如果您需使用TCP,那麼此字串應為
<add key="ChannelType" value="TCP" />
。 - 保存檔。
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>