環境描述:
OS: CentoOS6.6_X64
Node1:172.16.10.1
Node2:172.16.10.2
VIP:172.16.10.10
1、配置主機互信
Node1:
<code>[root@node1 ~]</code><code># ifconfig eth0</code>
<code>eth0 Link encap:Ethernet HWaddr 00:0C:29:11:21:56 </code>
<code> </code><code>inet addr:172.16.100.1 Bcast:172.16.100.255 Mask:255.255.255.0</code>
<code> </code><code>inet6 addr: fe80::20c:29ff:fe11:2156</code><code>/64</code> <code>Scope:Link</code>
<code> </code><code>UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1</code>
<code> </code><code>RX packets:144 errors:0 dropped:0 overruns:0 frame:0</code>
<code> </code><code>TX packets:114 errors:0 dropped:0 overruns:0 carrier:0</code>
<code> </code><code>collisions:0 txqueuelen:1000 </code>
<code> </code><code>RX bytes:14467 (14.1 KiB) TX bytes:11961 (11.6 KiB)</code>
<code>[root@node1 ~]</code><code># ntpdate 172.16.100.30</code>
<code>25 Jul 11:34:52 ntpdate[2123]: step </code><code>time</code> <code>server 172.16.100.30 offset -28852.934223 sec</code>
<code>[root@node1 ~]</code><code># crontab -e</code>
<code>15 5 * * * </code><code>/usr/bin/crontab</code> <code>172.16.100.30</code>
本文轉自灬落魄灬 51CTO部落格,原文連結:http://blog.51cto.com/smoke520/1830113,如需轉載請自行聯系原作者