X色综合网I人妻一级I中国一区二区三区毛片I亚洲影视精品I66av在线视频I色视屏I超碰999I日韩一区二区三区中文字幕I91超级碰I在线看岛国avI午夜精品久久久久久久男人的天堂I在线看AV的网站I人人干美女I亚洲产国偷v产偷v自拍涩爱I欧美高清va在线观看I久久六六热I国产精品7777I夜夜骚aV一区二区三区..啊

您好,歡迎進入北京泰福特電子科技有限公司官網

咨詢服務熱線

400-015-1230

NTP服務配置ubuntu系統

發布時間:2022-04-12 09:36:15

NTP即是服務器,又是客戶端,只需要通過配置即可。

準備兩臺機器分別作為服務端(IP地址設為192.168.10.10)和客戶端(IP地址設為192.168.10.12)。

服務器:NTPD服務,負責與外部公共NTPD服務同步標準時間,作為內外網絡的NTPD服務。

客戶端:NTPclient,與服務器同步時間。

ubuntu系統

1.安裝ntp,因為ntp服務既是服務器,又是客戶端,因此兩端安裝方式一樣

sudo apt-get install ntp

2.配置NTP-Server

# vim /etc/ntp.conf

# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help

driftfile /var/lib/ntp/ntp.drift

# Enable this if you want statistics to be logged.

#statsdir /var/log/ntpstats/

statistics loopstats peerstats clockstats

filegen loopstats file loopstats type day enable

filegen peerstats file peerstats type day enable

filegen clockstats file clockstats type day enable

# You do need to talk to an NTP server or two (or three).

#server ntp.your-provider.example

#NTP服務

server 210.72.145.44 perfer # 中國國家受時中心

# 外部時間server不可用時,以本地時間作為時間服務

server 127.127.1.0 # local clock

fudge 127.127.1.0 stratum 10

# 同意上層時間server主動改動本機時間

restrict 210.72.145.44 nomodify notrap noquery

# 同意內網其它機器同步時間

restrict 192.168.10.0 mask 255.255.255.0 nomodify notrap

# pool.ntp.org maps to about 1000 low-stratum NTP servers. Your server will

# pick a different set every time it starts up. Please consider joining the

# pool: <http://www.pool.ntp.org/join.html>

pool 0.debian.pool.ntp.org iburst

pool 1.debian.pool.ntp.org iburst

pool 2.debian.pool.ntp.org iburst

pool 3.debian.pool.ntp.org iburst

# Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for

# details. The web page <http://support.ntp.org/bin/view/Support/AccessRestrictions>

# might also be helpful.

#

# Note that "restrict" applies to both servers and clients, so a configuration

# that might be intended to block requests from certain clients could also end

# up blocking replies from your own upstream servers.

# By default, exchange time with everybody, but don't allow configuration.

restrict -4 default kod notrap nomodify nopeer noquery limited

restrict -6 default kod notrap nomodify nopeer noquery limited

# Local users may interrogate the ntp server more closely.

restrict 127.0.0.1

restrict ::1

# Needed for adding pool entries

restrict source notrap nomodify noquery

# Clients from this (example!) subnet have unlimited access, but only if

# cryptographically authenticated.

#restrict 192.168.123.0 mask 255.255.255.0 notrust

# If you want to provide time to your local subnet, change the next line.

# (Again, the address is an example only.)

#broadcast 192.168.123.255

# If you want to listen to time broadcasts on your local subnet, de-comment the

# next lines. Please do this only if you trust everybody on the network!

#disable auth

#broadcastclient

配置文件改動完畢,保存退出。重啟服務。

# service ntpd restart

查看服務狀態

#service ntpd status

查看服務連接和監聽

# netstat -tlunp | grep ntp

ntpq -p 查看網絡中的NTPserver

#ntpd -p

3.配置NTP-Clients

# vim /etc/ntp.conf

# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help

driftfile /var/lib/ntp/ntp.drift

# Enable this if you want statistics to be logged.

#statsdir /var/log/ntpstats/

statistics loopstats peerstats clockstats

filegen loopstats file loopstats type day enable

filegen peerstats file peerstats type day enable

filegen clockstats file clockstats type day enable

# You do need to talk to an NTP server or two (or three).

#server ntp.your-provider.example

server 192.168.10.10

# pool.ntp.org maps to about 1000 low-stratum NTP servers. Your server will

# pick a different set every time it starts up. Please consider joining the

# pool: <http://www.pool.ntp.org/join.html>

pool 0.debian.pool.ntp.org iburst

pool 1.debian.pool.ntp.org iburst

pool 2.debian.pool.ntp.org iburst

pool 3.debian.pool.ntp.org iburst

# Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for

# details. The web page <http://support.ntp.org/bin/view/Support/AccessRestrictions>

# might also be helpful.

#

# Note that "restrict" applies to both servers and clients, so a configuration

# that might be intended to block requests from certain clients could also end

# up blocking replies from your own upstream servers.

# By default, exchange time with everybody, but don't allow configuration.

restrict -4 default kod notrap nomodify nopeer noquery limited

restrict -6 default kod notrap nomodify nopeer noquery limited

# Local users may interrogate the ntp server more closely.

restrict 127.0.0.1

restrict ::1

# Needed for adding pool entries

restrict source notrap nomodify noquery

# Clients from this (example!) subnet have unlimited access, but only if

# cryptographically authenticated.

#restrict 192.168.123.0 mask 255.255.255.0 notrust

# If you want to provide time to your local subnet, change the next line.

# (Again, the address is an example only.)

#broadcast 192.168.123.255

# If you want to listen to time broadcasts on your local subnet, de-comment the

# next lines. Please do this only if you trust everybody on the network!

#disable auth

#broadcastclient

 配置文件改動完畢,保存退出。重啟服務。

# service ntpd restart

 查看服務狀態

#service ntpd status

 配置完成,可以手動修改客戶端時間,然后靜置10幾分鐘,客戶端就會跟服務器同步


  • 聯系方式
  • 傳 真:86-10-82782026
  • 電 話:400-015-1230
  • 地 址:北京市海淀區北清路68號院用友軟件園北區17號樓三層
在線咨詢

咨詢電話:

400-015-1230

  • 微信掃碼 關注我們

Copyright ? 2002-2035 北京泰福特電子科技有限公司 版權所有 備案號:京ICP備12028220號
京公網安備 11010802025976號

掃一掃咨詢微信客服

18519396506
主站蜘蛛池模板: 神马午夜一区二区 | 亚州欧美在线 | 插女生下面 | 国产成人精品免费看视频 | 久久久久久九九99精品 | 亚洲综合成人av一区在线观看 | 日韩特级片 | 亚洲精品av中文字幕在线在线 | 国产精品乱码高清在线观看 | 亚洲成人a∨ | 激情文学8888 | 又大又硬又爽免费视频 | 久久视频在线观看免费 | 久久久综合九色合综国产精品 | 96在线看片免费视频国产 | 久久蜜桃香蕉精品一区二区三区 | 国产情侣疯狂作爱系列 | 亚洲一区二区在线看 | 久久天天躁狠狠躁夜夜不卡 | 欧美爱爱小视频 | 在线 | 麻豆国产传媒61国产免费 | 青青草在线观看视频 | 日本不卡视频在线 | 国产极品999 | 色播影院性播影院私人影院 | 精品国产露脸久久av | 亚洲久色影视 | 成人性生交大免费看 | 精品国产一区二区三区久久久狼 | 午夜肉体高潮免费毛片 | 国产成人免费视频网站高清观看视频 | 亚洲色丰满少妇高潮18p | 乱码精品一卡2卡二卡三 | 一级片在线免费 | 亚洲日本不卡 | 一个人看的免费视频www中文字幕 | 视频在线免费观看 | 最新国产乱人伦偷精品免费网站 | 黄网在线观看免费网站 | 亚色av| 中文字幕亚洲综合久久菠萝蜜 | 91久久精品日日躁夜夜躁欧美 | 精品久久久久中文字幕app | 法国意大利性xxxhd | 成人免费无码大片a毛片户外 | 欧美交受高潮1 | 一级淫片免费看 | 天天天天躁天天爱天天碰2018 | 亚洲大片免费看 | 亚洲成a∧人片在线播放调教 | 国产又粗又猛又爽又 | 国产精品日韩高清 | 国产香蕉尹人在线观看视频 | 午夜亚洲国产理论片中文 | 日本精品成人 | 红桃视频一区 | 久久精品卡二卡三卡四卡 | 亚洲狠狠色丁香婷婷综合 | 亚洲免费福利视频 | 国精产品一区一区三区免费视频 | 九九少妇 | 2021少妇久久久久久久久久 | 欧美人与禽zozo性伦交视频 | 国产精品成人无码免费 | 牲高潮99爽久久久久777 | 国产精品免费精品自在线观看 | 亚洲欧洲日产国码无码动漫 | 久久精品这里有 | www.69pao.com| 久久精品一区二区三 | 色网站在线 | 国精品99久9在线 | 免费 | 亚洲欧洲美色一区二区三区 | av成人在线免费观看 | 国产亚洲精品久久久久秋 | 精东影业一区二区三区 | 凹凸69堂国产成人精品 | 特黄特黄欧美亚高清二区片 | 国产成av人片久青草影院 | 国内自拍视频网站 | 精品区在线观看 | 久久国产精品二国产精品 | 亚洲成人av影片 | 亚洲熟妇丰满xxxxx国语 | 精品一品国产午夜福利视频 | 国产成人一区二区三区别 | 国产精品白浆精子像水合集 | 正在播放欧美 | 老熟女老太婆爽 | 精品乱码一卡二卡四卡 | 久久人人爽人人人人片av | 在线黄网站| 在哪里可以看毛片 | 久久久综合亚洲色一区二区三区 | 精品国产成人 | 国产精品国产亚洲精品看不卡 | 日韩精品无码免费专区网站 | 伊人久久大香线蕉综合75 | 中文无码制服丝袜人妻av |
Powered by RRZCMS