要先安装NTP(Network Time Protocol)1. 设置主机时间,时区(date -s ; tzselect),需要把TZ那行加入/etc/profile2. vim /etc/ntp.conf在文件最下面加server 127.127.1.0Fudge 127.127.1.0 str...
分类:
系统相关 时间:
2015-07-22 20:21:53
阅读次数:
177
服务器端配置:IP172.16.1.53安装ntp[root@sslinux~]#yuminstallntp或者rpm安装[root@sslinuxPackages]#rpm-ivhntp-4.2.4p8-2.el6.centos.x86_64.rpm[root@sslinux~]#vim/etc/ntp.conf#permitthesourcetoqueryormodifytheserviceonthissystem.#restrictdefaultkodnomodifynotra..
分类:
其他好文 时间:
2015-07-22 11:04:05
阅读次数:
112
方法一、使用命令 ntpdate time-a.nist.gov方法二、本地安装ntpdate客户端 在本地安装ntpdate客户端,更新时用 ntpdate cn.pool.ntp.org 如果你的机子不支持域名,则可以用 ping cn.pool.ntp.org 得到该域名的IP地址。 然后用 ...
分类:
系统相关 时间:
2015-07-21 06:44:58
阅读次数:
219
新装的CentOS系统服务器可能设置了错误的,需要调整时区并调整时间.如下是CentOS系统使用NTP来从一个时间服务器同步把当前时区调整为上海就是+8区,想改其他时区也可以去看看/usr/share/zoneinfo目录:cp /usr/share/zoneinfo/Asia/Shanghai/e...
分类:
其他好文 时间:
2015-07-16 18:13:48
阅读次数:
133
源码目录:package/base-files/files/etc/config/system文件内容如下:config system
option hostname goldsunny
option timezone CST-8
option zonename Asia/Shanghaiconfig timeserver ntp
li...
分类:
其他好文 时间:
2015-07-16 17:02:56
阅读次数:
2660
1、时间同步(手动):
date -s "2015-07-15 22:13:30"
hwclock --systohc (表示系统时间同步到硬件时钟)
hwclock --hctosys (表示硬件时钟同步到系统时间)
2、根据互联网时间同步:
首先查看linux是否有ntp这个软件:
rpm -qa | grep ntp
...
分类:
系统相关 时间:
2015-07-16 09:54:18
阅读次数:
234
NTP服务的搭建1.准备环境服务器系统为redhat6.4两块网卡eth0(连接外网),eth1(连接内网ip:192.168.1.1)。现在搭建一台时间同步服务器,服务器和公网的NTPServer时间同步,然后负责同步局域网的时间2.安装NTP软件包yuminstallntp–y3.编辑配置文件/etc/ntp.conf(1)NTP服?.
分类:
其他好文 时间:
2015-07-15 23:05:10
阅读次数:
190
CentOS:0.centos.pool.ntp.org1.centos.pool.ntp.org2.centos.pool.ntp.org国内可用的ntp.fudan.edu.cn复旦210.72.145.44国家守势中心服务器亚洲地区的ntp服务器Bangladesh—bd.pool.ntp.org(0)China—cn.pool.ntp.org(3)HongKong—hk.pool.ntp.org(1)India—in.pool.ntp.org(..
分类:
其他好文 时间:
2015-07-15 23:02:09
阅读次数:
854
1、配置/etc/ntp.conf文件,添加NTP服务器地址信息(server192.168.1.20)broadcastclientdriftfile/etc/ntp.drifttracefile/etc/ntp.traceserver192.168.1.202、启动xntpd进程方法1:
#startsrc-sxntpd
0513-059ThexntpdSubsystemhasbeenstarted.SubsystemPIDis327788.
方法2..
分类:
其他好文 时间:
2015-07-14 20:42:39
阅读次数:
185
pool.ntp.org是一组授时服务器虚拟集群,在全球有3000多台服务器,只需要这样写就行了,具体哪台服务器提供服务无需关心。time.windows.com 微软asia.pool.ntp.org 台湾time.nist.gov 美国ntp.fudan.edu.cn 复旦timekeeper....
分类:
其他好文 时间:
2015-07-10 10:54:26
阅读次数:
462