Article ID: 115103, created on Jul 22, 2013, last review on Aug 12, 2014

  • Applies to:
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Windows
  • Plesk 11.0 for Windows
  • Plesk 11.5 for Windows

发行说明

Plesk 迁移前检查器专为检查可能导致迁移失败的问题并在迁移前解决这些问题而设计。
 
请在 Plesk 论坛上的特殊线程中畅谈 Plesk 迁移前检查器

概述

迁移前检查器有两个检查阶段: "在源服务器上"“在目的服务器上”“在源服务器上”的阶段会收集所有必要信息到转储文件,而“在目的服务器上”的阶段来自转储文件的信息将会用于执行检查。 而 Linux 的“在源服务器上”的阶段则是全自动化的,而对于 Windows,您需要在源服务器上使用选项 --source 运行脚本,然后手动复制转储文件到目的服务器并在目的服务器上运行脚本。

更新日志

使用


对于 Windows:
 
在源服务器上:
 
句法:
"%plesk_bin%\php.exe" -d auto_prepend_file="" c:\pre_transfer_checker.php --source
示例:
"%plesk_bin%\php.exe" -d auto_prepend_file="" c:\pre_transfer_checker.php --source

[2013-02-15 06:18:37][INFO] ==> Options parsed

[2013-02-15 06:18:37][INFO] ==> Source created

[2013-02-15 06:18:44][INFO] ==> Info collected

[2013-02-15 06:18:44][INFO] ==> Serialized

[2013-02-15 06:18:44][INFO] ==> Dump saved to C:\/panel_pre_transfer.dump

[2013-02-15 06:18:44][INFO] ==> Exit
在目的服务器上:
 
句法:
"%plesk_bin%\php.exe" -d auto_prepend_file="" c:\pre_transfer_checker.php --dump <path to dump file>
示例:
"%plesk_bin%\php.exe" -d auto_prepend_file="" c:\pre_transfer_checker.php --dump c:\panel_pre_transfer.dump

[2013-02-15 06:23:42][INFO] ==> Options parsed
[2013-02-15 02:13:27][WARNING] System user u89 of domain domain.com already exists on destination server

[2013-02-15 06:23:54][INFO] ==> Done
 
对于 Linux:
 
脚本总是会在目的服务器上执行。 文件 pre_transfer_checker.php 将会自动通过 SSH 连接复制到源服务器上。 结果文件 panel_pre_transfer.dump 将会被复制到目的服务器上。
 
在目的服务器上:
 
句法:
./pre_transfer_checker.php <-s host> <-l login> <-P port>
其中
 
<-s host> - Plesk 源主机
<-l login> - 源主机登录名
<-P port> - 源主机上的 SSH 端口


示例:
# chmod +x pre_transfer_checker.php
# ./pre_transfer_checker.php -s 10.52.30.199 -l root -P 22

[2013-02-15 02:13:14][INFO] ==> Options parsed
The authenticity of host '10.52.30.199 (10.52.30.199)' can't be established.
RSA key fingerprint is 3f:74:be:a8:3f:80:4d:35:a4:c4:30:00:9f:7e:87:c5.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.52.30.199' (RSA) to the list of known hosts.
root@10.52.30.199's password:
[2013-02-15 02:13:25][INFO] Execute: scp -P 22 -o ControlPath=root@10.52.30.199:22.sock /root/pre_transfer_checker.php root@10.52.30.199:/root/pre_transfer_checker.php

[2013-02-15 02:13:26][INFO] ==> Execute on source server: '/root/pre_transfer_checker.php --source'
[2013-02-15 02:13:26][INFO] Execute: scp -P 22 -o ControlPath=root@10.52.30.199:22.sock root@10.52.30.199:/root/panel_pre_transfer.dump /root/panel_pre_transfer.dump
[2013-02-15 02:13:26][WARNING] Your source server has more that 250 domains. Apache may fail to work because of a problem involving the file descriptors limit. Please check article http://kb.sp.parallels.com/en/2066 for more details
[2013-02-15 02:13:26][WARNING] Local MySQL variable 'max_allowed_packet' should be increased up to '26776576' to successfully migrate large blob databases
[2013-02-15 02:13:27][WARNING] Mail lists will not be migrated because Mailing Lists Server is not configured. You can configure Mail Lists Server in Tools & Settings
[2013-02-15 02:13:27][WARNING] PostgreSQL Databases will not be migrated because PostgreSQL Server is not configured or not registered properly. You can configure PostgreSQL Server in Tools & Settings > Database Servers

[2013-02-15 02:13:27][INFO] ==> Done

迁移最佳方案

  • 113586 Parallels Plesk Panel for Linux:迁移最佳实践方案和使用实例

Attachments

56797cefb1efc9130f7c48a7d1db0f0c a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 ed7be2b984f9c27de1d2dc349dc19c6d 85a92ca67f2200d36506862eaa6ed6b8 a766cea0c28e23e978fa78ef81918ab8 514af229ae32522202a910a2649c80fb bd7fc88cf1b01f097749ae6f87272128 46a8e394d6fa13134808921036a34da8 01bc4c8cf5b7f01f815a7ada004154a2 0a53c5a9ca65a74d37ef5c5eaeb55d7f

Email subscription for changes to this article