一.使用ntpdate命令1.1服务器可链接外网时#crontab-e加入一行:*/1****ntpdate210.72.145.44210.72.145.44为中国国家授时中心服务器地址,这样该机每隔1分重就可以与国家授时中心进行同步了。注意:在使用ntpdate命令时,ntpd服务必须是关闭的,...
分类:
系统相关 时间:
2014-12-11 00:00:27
阅读次数:
590
作者:zhanhailiang 日期:2014-12-06
背景:
谈WEB机器时间同步的重要性
定时任务:
###[时间同步,每隔30分钟同步一次,确认同步时间]
*/30 * * * * /usr/sbin/ntpdate time.nist.gov; clock -w
推荐文章:
ntpdate linux时间同步命令...
分类:
系统相关 时间:
2014-12-06 22:54:47
阅读次数:
180
1、新安装后ifconfig无法使用? yum?install?net-tools 如果提示: 执行: rpm?--import?/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 2、ntpdate time.nist.gov提示命令不存在? yum?install?ntpdate...
分类:
其他好文 时间:
2014-12-03 14:33:42
阅读次数:
96
http://blog.linuxphp.org/archives/567/http://www.dedecms.com/knowledge/servers/linux-bsd/2012/0819/8407.html安装一个小工具:ntpdate,可以从ntp服务器同步时间.apt-get inst...
分类:
其他好文 时间:
2014-11-19 13:56:58
阅读次数:
203
首先 安装nginx.各节点时间同步123[root@nginx ~]# ntpdate 202.120.2.101[root@web1 ~]# ntpdate 202.120.2.101[root@web2 ~]# ntpdate 202.120.2.1016.关闭防火墙与SELinux12345...
分类:
其他好文 时间:
2014-11-18 13:14:13
阅读次数:
304
首先 安装nginx
.各节点时间同步
1
2
3
[root@nginx
~]#
ntpdate 202.120.2.101
[root@web1
~]#
ntpdate 202.120.2.101
[root@web2
~]#
ntpdate 202.120.2.101
6.关闭防火...
分类:
其他好文 时间:
2014-11-17 15:56:32
阅读次数:
334
1、同步时钟自动同步crontab -e输入如下内容 01*** /usr/sbin/ntpdate us.pool.ntp.org2、配置主机名gedit /etc/sysconfig/network 修改主机名如下NETWORKING=yes #启动网络NETWORKING_IPV6=noHOS...
分类:
其他好文 时间:
2014-11-10 21:45:00
阅读次数:
201
故障描述:centos下使用如下命令手动同步服务器时间#/usr/sbin/ntpdatentp.api.bz出现“theNTPsocketisinuse,exiting”错误。如图:8Nov09:57:02ntpdate[4726]:theNTPsocketisinuse,exiting问题分析:出现该错误的原因是系统ntpd服务器正在运行中,通过psaux|grepntpd查看,会..
分类:
其他好文 时间:
2014-11-07 15:08:54
阅读次数:
164
更改时区,时间 执行 tzselect 按照提示进行选择时区 sudo cp /usr/share/zoneinfo/Asia/ShangHai /etc/localtime 执行 sudo ntpdate cn.pool.ntp.org cn.pool.ntp.org是位于中国的公共NTP服务器,用来同步你的时...
分类:
系统相关 时间:
2014-11-06 11:14:22
阅读次数:
246
Linux 时间同步配置 .一. 使用ntpdate 命令1.1 服务器可链接外网时# crontab -e加入一行:*/1 * * * * ntpdate 210.72.145.44210.72.145.44 为中国国家授时中心服务器地址,这样该机每隔1分重就可以与国家授时中心进行同步了。注意: ...
分类:
数据库 时间:
2014-10-29 16:48:48
阅读次数:
283