今天有点麻烦了。 竟然服务器的时间不一致致使个人数据同步时 ,少了不少的log日志。api
因此嘛。仍是先弄下时间的服务器再说吧。bash
开始:服务器
第一方法: 简单 高效 没烦恼 一条命令解决单台server-time ide
#ntpdate -u ntp.api.bzspa
第二方法:时间服务器: 1) #yum install ntp 2)# vi /etc/ntp.conf 注释一行 restrict default ignore 加入一行 restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap #服务器的地址 3). # vi /etc/ntp/step-tickers 加入一行(也能够在原有基础上改写) pool.ntp.org 这样每次ntpd启动时,会自动链接该国际标准时间服务器; 4). # systemctl restart ntpd 5). # ss -an |grep 123 确保该端口以udp方式开放 6)# systemctl enable ntpdate.service (加入开机自启动) 7)# date (检测时间是否靠谱) 2016年 01月 18日 星期一 00:43:55 CST
这样的话就能够解决多台机器的时间同步问题了。rest