windchill Cluster 集群安装注意事项(10.2M030为例)

新型冠状病毒疫情期间,实在无聊。学习了些文档,发现集群与windchill 9还是有些区别,做一些简要注意事项。

同时综合多个文档做了下实践。

1.直接先上效果如下:

2. 过程

   以上方式采用PSI安装,基于安装过程中设置集群。虚拟机采用windows server 2012

   前提: 切记所有虚拟机关闭防火墙(简单做法)

   a. 首先在pdmdb虚拟机上安装数据库,以及ocu。数据库保持独立,切合实际。注意:改计算机名字,windows推荐设置pdmdb.ptc.com,  unix推荐设置pdmdb。 反正意思就是不要与其他虚拟机机器名一样,如果一样,异常可能看不出来。

修改host文件添加(固定虚拟机的IP为192.168.158.129):

192.168.158.129    pdmdb.ptc.com   

建议实际情况把app的其他机器也加入进来,可直接不必域名解析,提高速度。

   b. 在master上通过PSI安装,此处参考其他常见的文档即可。注意:改计算机名字,windows推荐设置master.ptc.com,  unix推荐设置master

修改host文件添加(固定虚拟机的IP为192.168.158.130):

127.0.0.1  pdm.ptc.com
192.168.158.129  pdmdb.ptc.com
192.168.158.130  master.ptc.com
192.168.158.131 slave1.ptc.com
192.168.158.132 slave2.ptc.com

安装完成后确保能访问windchill。然后关机拷贝虚拟机形成slave1,slave2。

c. slave1改计算机名字,windows推荐设置slave1.ptc.com,  unix推荐设置slave1;修改固定ip192.168.158.131

d. slave2改计算机名字,windows推荐设置slave2.ptc.com,  unix推荐设置slave2;修改固定ip192.168.158.132

e. 查看master这台机器site.xconf,  修改如下(有则改之,无则加之,此处为其中一种方式):

   <Property name="wt.cache.master.slaveHosts" overridable="true"
             targetFile="codebase/wt.properties"
             value="master.ptc.com slave1.ptc.com  slave2.ptc.com 192.168.158.130 192.168.158.131 192.168.158.132"/>
    <Property name="java.rmi.server.hostname" overridable="true"
             targetFile="codebase/wt.properties"
             value="master.ptc.com"/>
    <Property name="wt.cache.master.hostname" overridable="true"
             targetFile="codebase/wt.properties"
             value="master.ptc.com"/>

f. 查看slave1这台机器site.xconf,  修改如下:

  <Property name="wt.cache.master.slaveHosts" overridable="true"
             targetFile="codebase/wt.properties"
             value="master.ptc.com slave1.ptc.com  slave2.ptc.com 192.168.158.130 192.168.158.131 192.168.158.132"/>
    <Property name="java.rmi.server.hostname" overridable="true"
            targetFile="codebase/wt.properties"
            value="slave1.ptc.com"/>
    <Property name="wt.cache.master.hostname" overridable="true"
            targetFile="codebase/wt.properties"
            value="master.ptc.com"/>

g.查看slave1这台机器site.xconf,  修改如下:

   <Property name="wt.cache.master.slaveHosts" overridable="true"
             targetFile="codebase/wt.properties"
             value="master.ptc.com slave1.ptc.com  slave2.ptc.com 192.168.158.130 192.168.158.131 192.168.158.132"/>
    <Property name="java.rmi.server.hostname"  overridable="true"
            targetFile="codebase/wt.properties"
            value="slave2.ptc.com"/>
    <Property name="wt.cache.master.hostname" overridable="true"
            targetFile="codebase/wt.properties"
            value="master.ptc.com"/>

完毕!

希望疫情尽快结束!

  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值