ntp 服务器 1.输入 rpm -qa|grep ntp 查看是否安装了ntp服务器 2.如果没安装 yum -y install ntp 安装 3.修改 /etc/ntp.conf 将原server加上注释 添加本地server 127.127.1.1 4.重启服务 systemctl rest ...
分类:
系统相关 时间:
2016-10-10 13:48:06
阅读次数:
251
1.yum安装ntpyuminstallntp*2.更新时间ntpdate202.120.2.1013.加入任务计划crontab-e*/10****ntpdate202.120.2.101#每隔10分钟更新一次4.查看任务计划 crontab-l说明: 上海交大ntp服务器:202.120.2.101
分类:
其他好文 时间:
2016-09-22 11:37:32
阅读次数:
113
更改到上海时间cp/usr/share/zoneinfo/Asia/Shanghai/etc/localtime和ntp服务器同步下ntpdatecn.ntp.org.cn链接到本地文件ln-sf/usr/share/zoneinfo/Asia/Shanghai/etc/localtime同步到硬件hwclock-w
分类:
系统相关 时间:
2016-09-20 18:20:47
阅读次数:
224
一、安装ntp服务首先检查服务器上是否已安装ntp服务:[root@centos7/]rpm-qa|grepntpntp-4.2.6p5-22.el7.centos.2.x86_64ntpdate-4.2.6p5-22.el7.centos.2.x86_64如果有上述内容输出,测说明ntp服务已安装;否则需要安装ntp服务[root@centos7/]yuminstall-yntpd安装有yum、rpm..
分类:
其他好文 时间:
2016-09-20 18:16:42
阅读次数:
1064
一: 在一台可以连接外网的服务器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
win:运行--services.msc,开启windowstime自启动。更改日期和时间设置--internet时间-更改设置,选择服务器,windows默认的时间服务器为time.windows.com,这个经常出问题,我们可以选择time.nist.org这台服务器,点击立即更新,确定即可linux:一般通用的做法是通过定时任务实现..
分类:
其他好文 时间:
2016-09-07 16:07:01
阅读次数:
122
$yuminstall-yntp#安装NTP服务包$cd/etc$cpntp.confntp.conf.bak#备份配置文件$vimntp.conf#修改配置文件driftfile/var/lib/ntp/driftrestrictdefaultkodnomodifynotrapnopeernoqueryrestrict-6defaultkodnomodifynotrapnopeernoqueryrestrict127.0.0.1restrict-6::1#注册本地..
分类:
其他好文 时间:
2016-08-31 07:14:50
阅读次数:
165
终于还是要搭建ntp服务器,我的架构是一台服务器可以上公网,其他内网服务器不能。ntp服务器是C/S架构的时间同步服务器。方案:公网服务器搭建ntp服务器端其他服务器为客户端公网服务器:[root@localhost~]#yuminstallntp配置/etc/ntp.conf[root@localhost~]#more/etc/ntp.conf..
分类:
其他好文 时间:
2016-08-30 16:07:48
阅读次数:
162
1、安装前准备高可用集群一般需要配置时间同步、基于主机名互相通信、ssh的互信通信,CorosyncPacemaker仅需要配置时间同步、基于主机名互相通信即可:yuminstallchrony#安装chrony
vim/etc/chrony.conf
server172.16.0.1iburst#设置为可用的ntp服务器
systemctlrestartchronyd#..
分类:
数据库 时间:
2016-08-25 22:01:26
阅读次数:
345
局域网内部由于不能跟外部的时间服务器相连,在NTP服务器设置的时候若将NTP服务器本身作为根时间服务器,则需要进行如下设置:以CentOS7系统为例#>vim/etc/ntp.conf将如下行注释掉#server0.centos.pool.ntp.orgiburst#server1.centos.pool.ntp.orgiburst#server2.centos.poo..
分类:
其他好文 时间:
2016-08-23 17:25:17
阅读次数:
149