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