ntpdate time.windows.com && hwclock -w 连网更新时间,如果成功,将系统时间,写入BOIShwclock -w 或 hwclock --systohc可以做到crontab里
分类:
其他好文 时间:
2015-03-03 13:08:07
阅读次数:
130
装完系统后的初始化操作:配置ip:禁用selinux:清空iptables:同步时间ntpdate:关于时间同步:确定你在装系统的时候修改了时区的,不然更新的时间会不正确,如果你刚开始没选择亚太地区的时区,现在又要改,你就要执行下面一步,cp/usr/share/zoneinfo/Asia/Shanghai/etc/local..
分类:
其他好文 时间:
2015-02-09 18:37:42
阅读次数:
151
time.nist.govntp.fudan.edu.cn[复旦]timekeeper.isi.edusubitaneous.cpsc.ucalgary.causno.pa-x.dec.comtime.twc.weather.comswisstime.ethz.chntp0.fau.dentp3.fau.detime-a.nist.govtime-b.nist.govtime-nw.nist.govnist1-sj.glassey.com210.72.145.44
分类:
系统相关 时间:
2015-02-06 17:01:25
阅读次数:
173
crontab -l0 */1 * * * /usr/sbin/ntpdate time.tvmining.com && /sbin/hwclock -w >/dev/null 2>&1*/1 * * * * /opt/script/clear_file.sh 7 >/dev/null 2>&115...
分类:
其他好文 时间:
2015-02-06 16:32:51
阅读次数:
317
新装的CentOS系统服务器可能设置了错误的时间,在做集群的时候时间是十分重要的,很有可能因为时间而导致集群发生故障,因此需要调整时区并调整时间。如下是CentOS系统使用NTP来从一个时间服务器同步时间,使时间定时同步一次。NTP:Network Time Protocol的简写,即网络时间协议,是用于互联网中时间同步的标准互联网协议。NTP的用途是把计算机的时间同步到某些时间标准。目前采用的时间标准是世界协调时UTC(Universal Time Coordinated)。...
分类:
系统相关 时间:
2015-02-06 09:38:19
阅读次数:
211
用于和NTP服务器同步时间。sudo service ntp stopsudo ntpdate -s time.nist.govsudo service ntp start
分类:
其他好文 时间:
2015-02-04 07:05:49
阅读次数:
178
Mysql的ssl主从复制+半同步主从复制 准备工作 1、主从服务器时间同步 [root@localhost ~]# crontab -e */30 * * * * /usr/sbin/ntpdate 172.16.0.1 &>/dev/null MariaDB(10以上版本)的编译安装 部署配置 ...
分类:
数据库 时间:
2015-02-03 22:34:49
阅读次数:
531
前期准备: 同步时间 (两个节点) 节点一(172.16.21.6) [root@stu21 heartbeat2]# ntpdate 172.16.0.1 31 Dec 20:59:25 ntpdate[6950]: adjust time server 172.16.0.1 offset 0.3...
分类:
其他好文 时间:
2015-02-03 21:16:12
阅读次数:
522
1. 安装ntpdate工具 # sudo apt-get install ntpdate 2. 设置系统时间与网络时间同步 # ntpdate cn.pool.ntp.org 或者sudontpdatetime.stdtime.gov.tw cn.pool.ntp.org是位于中国的公共N...
分类:
系统相关 时间:
2015-01-24 15:43:10
阅读次数:
136
1.安装ntpdate#yum install ntpdate2.#cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime#ntpdate us.pool.ntp.org3.如果用了cacti,记得修改cacti所在主机的php的timezone#vi...
分类:
其他好文 时间:
2015-01-19 12:25:33
阅读次数:
193