linux集群时间同步
来源:互联网 发布:忾乎天下 编辑:程序博客网 时间:2024/06/05 04:24
1: (时间同步用 ntp)
查看是否安装了ntp:sudo rpm -qa|grep ntp
vi /etc/ntp.conf
server 127.127.1.0
Fudge 127.127.1.0 stratum 10
找一台机器作为【时间服务器】
bigdata-cdh01.ibeifeng.com
修改 vi /etc/sysconfig/ntpd,
首行加上 SYNC_HWCLOCK=yes
sudo service ntpd status
sudo service ntpd start
定时任务(另外2台机器上)
crontab -l(查看是否有定时任务)
crontab -e
查看是否安装了ntp:sudo rpm -qa|grep ntp
vi /etc/ntp.conf
server 127.127.1.0
Fudge 127.127.1.0 stratum 10
找一台机器作为【时间服务器】
bigdata-cdh01.ibeifeng.com
修改 vi /etc/sysconfig/ntpd,
首行加上 SYNC_HWCLOCK=yes
sudo service ntpd status
sudo service ntpd start
定时任务(另外2台机器上)
crontab -l(查看是否有定时任务)
crontab -e
0-59/10 * * * * /usr/sbin/ntpdate bigdata-cdh01.ibeifeng.com
2:修改 vi /etc/ntp.conf
3:然后
修改 vi /etc/sysconfig/ntpd,
首行加上 SYNC_HWCLOCK=yes
4:service ntpd status 查看服务是否启动,
没有启动就 service ntpd start
chkconfig ntpd on(永久启动,重启后仍然生效)
查看:
此时,主机服务端就做好了。
5:客户端同步
crontab -e
0-59/10 * * * * /usr/sbin/ntpdate bigdata-cdh01.ibeifeng.com
(先临时同步一下 /usr/sbin/ntpdate bigdata-cdh01.ibeifeng.com)
最后重启一下reboot.
阅读全文
0 0
- linux集群时间同步
- Linux集群时间同步
- linux集群时间同步
- linux集群时间同步
- linux集群时间同步
- linux集群时间同步
- linux集群时间同步搭建
- Linux下集群时间同步
- Linux集群时间同步设置
- linux集群服务器时间同步
- linux hadoop本地集群时间同步
- linux集群时间同步,ntpd、ntpdate
- 集群时间同步
- cendos集群时间同步
- 集群时间同步
- 集群服务器同步时间
- 集群机器时间同步
- hadoop集群时间同步
- google三大论文之--MapReduce:超大机群上的简单数据处理
- google三大论文这 --Google File System(中文翻译)
- C++PRIMER第九章练习
- 谷歌三大论文之--Bigtable:一个分布式的结构化数据存储系统
- 大数据平台cloudera manager安装
- linux集群时间同步
- cloudera manager中界面
- 费马素数(费马质数)
- sql查询每科成绩最高的人和分数
- XCODE9 跳过的那些坑儿
- abstract static final区别
- C#中利用正则表达式检测文件路径的合法性
- 理解Java中的引用传递和值传递
- 煎饼排序 (Stacks of Flapjacks, Uva 120)