多播测试(是否可用)

Test the Default Multicast Address

Use this procedure to test if you can use the default multicast address. The run script uses a multicast address, either the default address or an alternative address supplied by your network administrator.

The first part of the test may succeed, but subsequent parts of this test may fail. Therefore, perform full testing in different directions to determine the reliability of multicast for your installation.

Follow these steps:

Install JBoss or WildFly and the JDK on the computer.

#或者是从网上下载jgroups-3.2.7.Final-redhat-1.jar,这个包,前提条件是java环境

Run sender on first node as follows:

Navigate to the main folder.

app server-home\modules\system\layers\base\org\jgroups\main.

Run the following command:

java -cp jgroups-3.2.7.Final-redhat-1.jar org.jgroups.tests.McastSenderTest -mcast_addr 224.10.10.10 -port 5555

Run receivers on other nodes in the cluster as follows:

Navigate to the lib folder.

Navigate to appserver_home\modules\system\layers\base\org\jgroups\main.

Run the following command:

java -cp jgroups-3.2.7.Final-redhat-1.jar org.jgroups.tests.McastReceiverTest -mcast_addr 224.10.10.10 -port 5555

Send a message from the first node as follows:

On the console of the first node, enter any text and press enter.

Confirm that a reply appears, to acknowledge the text was sent.

Confirm that the message appears on the console of all other nodes in the cluster.

If either the send or receive test fails, ask your network administrator to provide a multicast address that works and repeat this test.

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • **2014真题Directions:Read the following text. Choose the be...
    又是夜半惊坐起阅读 9,939评论 0 23
  • 战友打卡中断的事情在我身上也发生过。两个月前我在专栏连续打卡139天时,因为太累看完专栏,写点感受时就睡着了。第二...
    水中望我阅读 115评论 0 2
  • MySQL select…for update的Row Lock与Table Lock使用select…for u...
    那谁319阅读 154评论 0 0
  • 朱元十年,天下大乱,诸多势力崛起,纷争不断,民不聊生,志在复国的皇族后裔九秦带着女儿九段苼向的楚玉知求一臂之力。 ...
    言子木三阅读 1,110评论 8 5
  • 冰凌 你走来时 我只是个透明的冰凌 你远去时 我的心满满登登 雪夜 我总会想起,多年前的雪夜 路灯裹住两个身影 我...
    一张机阅读 291评论 3 1