1.ssh上传hazelcast-2.1.zip到/opt/data
2.解压安装
[root@GNCloud0002 /]# unzip /opt/data/hazelcast-2.1.zip
3.配置hazelcast
[root@GNCloud0002 /]# vi /opt/data/hazelcast-2.1/bin/hazelcast.xml
----------------------------------------------------------------------------------------------------------
<tcp-ip enabled="true">
<interface>10.8.5.127</interface>
<interface>10.8.5.128</interface>
</tcp-ip>
----------------------------------------------------------------------------------------------------------
4.配置环境变量
[root@GNCloud0002 /]# vi /etc/profile
----------------------------------------------------------------------------------------------------------
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:/opt/hazelcast-2.1/lib/hazelcast-2.1.jar
----------------------------------------------------------------------------------------------------------
5.Hazelcast测试
5.1 运行hazelcast(hazelcast中所有配置机执行以下命令)
[root@GNCloud0001 /]# cd /opt/data/hazelcast-2.1/bin
[root@GNCloud0001 bin]# ./run.sh