Toggle navigation
Home
安装部署
Archives
Tags
NTP时间同步
linux配置
2019-05-06 06:51:53
102
0
0
louyj
linux配置
## 服务端配置 ### 安装NTP yum install ntp ### 修改ntp.conf #修改restrict default kod nomodify notrap nopeer noquery #允许任何IP的客户机都可以进行时间同步 restrict default nomodify #只允许10.15.62.*网段的客户机进行时间同步 #restrict 10.15.62.0 mask 255.255.255.0 nomodify ### 同步时间设置 通过网络同步时间 # Use public servers from the pool.ntp.org project. # Please consider joining the pool (http://www.pool.ntp.org/join.html). server 0.centos.pool.ntp.org server 1.centos.pool.ntp.org server 2.centos.pool.ntp.org 使用本地时间 # Undisciplined Local Clock. This is a fake driver intended for backup # and when no outside source of synchronized time is available. server 127.127.1.0 # local clock fudge 127.127.1.0 stratum 10 ### 启动ntp服务器 service ntpd status service ntpd start service ntpd stop ## 客户端配置 ### 安装ntpdate tar zxvf ntpdate.tar.gz ### 修改配置 vim /etc/crontab 0 * * * * /usr/sbin/ntpdate 10.87.74.137
Pre:
Install Net Speeder
Next:
Postgresql安装配置
0
likes
102
Weibo
Wechat
Tencent Weibo
QQ Zone
RenRen
Submit
Sign in
to leave a comment.
No Leanote account?
Sign up now.
0
comments
More...
Table of content
No Leanote account? Sign up now.