1.安装ntp并配置ntp服务器来完成时间同步安装:yum-yinstallntp配置:vim/etc/ntp.conf将文件的21-24行注释掉,并在25行添加serverasia.pool.ntp.org启动并设置开机自启动:systemctlstartntpdsystemctlenablentpd查看当前时间;date(与网络时间相同即可)在客户机端同样安装ntp..
分类:
其他好文 时间:
2016-10-12 23:14:06
阅读次数:
296
一: 在一台可以连接外网的服务器A上配置ntp: 配置 /etc/ntp.conf 文件: server 202.120.2.101 # local clock (LCL) //该机器同步的ntp服务器 restrict 192.168.1.0 mask 255.255.255.0 nomodify ...
分类:
其他好文 时间:
2016-09-10 16:11:43
阅读次数:
161
Core-Switch-1#showclockCore-Switch-1#showntpstatusCore-Switch-1#conftCore-Switch-1(config)#clocktimezoneGMT+8Core-Switch-1(config)#servicetimestampsdebugdatetimemseclocaltimeshow-timezoneCore-Switch-1(config)#servicetimestampslogdatetimemseclocaltimeshow-ti..
分类:
系统相关 时间:
2016-09-07 23:15:57
阅读次数:
1094
1、检查是否已安装ntp[root@localhost~]#rpm-qantp2、安装ntp以及ntpdateyum-yinstallntpntpdate3、修改ntp配置文件vim/etc/ntp.conf#restrict192.168.1.0mask255.255.255.0nomodifynotraprestrict192.168.1.0/24mask255.255.255.0nomodifynotrap加入的这行允许哪些client能够..
分类:
其他好文 时间:
2016-07-15 17:33:55
阅读次数:
133
NTP服务搭建实验环境ntp服务器:主机名:tianzhao操作系统:Centos6.4ip地址:192.168.2.117ntp客户机:主机名:zhaotian操作系统:Centos6.4ip地址:192.168.2.143服务端配置一、在tianzhao机器上安装ntp服务yum-yinstallntpntpdate二、备份ntp配置文件cp/etc/ntp.conf/etc/nt..
分类:
其他好文 时间:
2016-07-06 18:33:55
阅读次数:
198
配置文件server127.127.1.0fudge127.127.1.0stratum10driftfile/var/lib/ntp/drift
分类:
其他好文 时间:
2016-07-06 10:27:22
阅读次数:
127
基本的配置文件
想配置本地时间服务器server 127.127.1.0 必须这样写
# --- GENERAL CONFIGURATION ---
server aaa.bbb.ccc.ddd
server 127.127.1.0
fudge 127.127.1.0 stratum 10# Drift file.driftfile /etc/ntp/drift
我的例子
restr...
分类:
其他好文 时间:
2016-05-12 23:02:22
阅读次数:
264
1,安装NTP [root@localhost ~]# yum install ntp Loaded plugins: product-id, subscription-manager This system is not registered to Red Hat Subscription Man
分类:
其他好文 时间:
2016-02-18 13:37:38
阅读次数:
566
1、添加普通用户,通过sudo授权管理添加普通用户,通过sudo授权管理2、添加普通用户,通过sudo授权管理port52113UseDNSnoPermitRootLoginnoPermitEmptyPasswordsnoGSSAPIAuthenticationno3、ntp配置(时间同步)/usr/sbin/ntpdatetime.nist.govecho‘*/5****/usr/sbin/ntpdatetime..
分类:
系统相关 时间:
2015-09-10 17:43:11
阅读次数:
185
在Linux系统中,为了避免主机时间因为在长时间运行下所导致的时间偏差,进行时间同步(synchronize)的工作是非常必要的。Linux系统下,一般使用ntp服务来同步不同机器的时间。NTP 是网络时间协议(Network Time Protocol)的简称,干嘛用的呢?就是通过网络协议使计算机...
分类:
系统相关 时间:
2015-08-20 14:41:27
阅读次数:
279