在 Windows 平台上,mqfailover 命令要求按 Ctrl+C 组合键才能退出挂起进程。必须重新运行 setup-one-machine-cluster 进程。
从 install_dir\samples\ee-samples\failover\apps\mqfailover\docs\index.html 运行以下命令:
控制台 1
cd install_dir\samples\ee-samples asant start-mq-master-broker1 |
控制台 2
cd install_dir\samples\ee-samples asant start-mq-cluster-broker1 |
控制台 3
cd install_dir\samples\ee-samples asant start-mq-cluster-broker2 |
控制台 4
cd install_dir\samples\ee-samples asadmin start-domain domain1 |
如果已对任何其他 Enterprise Edition 样例执行 asant setup-one-machine-cluster-without-ha 或 asant setup-one-machine-cluster-with-ha,请执行 asant configure-mq。否则,请执行 asant setup-one-machine-cluster-and-configure-mq。在这种情况下,命令显示为成功:
start_nodeagent: [echo] Start the node agent cluster1-nodeagent [exec] Command start-node-agent executed successfully. |
但随后系统将无限期挂起。
无。此问题同样会影响在 Windows 上使用此 ant 目标的所有 Enterprise Edition 样例。一个解决方法是按 Ctrl+C 组合键退出挂起的进程,然后重新运行它。