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

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

咨詢服務熱線

400-015-1230

NTP服務配置ubuntu系統(tǒng)

發(fā)布時間:2022-04-12 09:36:15

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

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

服務器:NTPD服務,負責與外部公共NTPD服務同步標準時間,作為內(nèi)外網(wǎng)絡的NTPD服務。

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

ubuntu系統(tǒng)

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

# 同意內(nèi)網(wǎng)其它機器同步時間

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

查看服務狀態(tài)

#service ntpd status

查看服務連接和監(jiān)聽

# netstat -tlunp | grep ntp

ntpq -p 查看網(wǎng)絡中的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

 查看服務狀態(tài)

#service ntpd status

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


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

咨詢電話:

400-015-1230

  • 微信掃碼 關注我們

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

掃一掃咨詢微信客服

18519396506
主站蜘蛛池模板: 99久久久无码国产精品aaa | 久久综合亚洲 | 在线观看91精品国产网站 | 少妇高潮毛片色欲ava片 | 青青草视频观看 | 男女啪啦猛视频免费 | 综合久久2o19| 国产成人综合久久二区 | 在线观看成人 | 国产男女免费完整视频网页 | 国产精品国产三级国产专区53 | 久久精品国产久精国产 | 四虎影视在线永久免费观看 | 艹男人的日日夜夜 | 日本特黄aaaaaa片在线观看 | 理论片午午伦夜理片影院 | 亚洲成_人网站图片 | 日批视频在线 | 国产第一页浮力影院草草 | 最新亚洲人成网站在线观看 | 老太脱裤让老头玩ⅹxxxx | 精品黄色 | 久久久久久综合网天天 | 精品精品国产高清a毛片牛牛 | 自拍偷拍亚洲 | 国产精品特级露脸av毛片 | 少妇厨房愉情理9伦片视频 亚洲成av人片乱码色午夜 | 麻豆国产精成人品观看免费 | 亚洲精品入口一区二区乱麻豆精品 | 久久婷婷五月综合色丁香 | 成人性生交大片免费看r老牛网站 | 国产美女久久精品香蕉69 | 在线观看欧美视频 | 国产二级一片内射视频插放 | 男人天堂你懂的 | 日日躁夜夜躁 | 免费国产女王调教在线视频 | 久久成人 久久鬼色 | 亚洲精品免费在线观看 | 久久久看片 | 91免费高清 | 成人免费看类便视频 | 欧美大肥婆大肥bbbbb | 狠狠爱亚洲五月婷婷av | 无码国模产在线观看免费 | 一区二区久久久久草草 | www.夜夜| 国产成人精品a视频一区www | 丁香九月激情 | 在线观看av国产一区二区 | 999成人网| 国产情侣在线视频 | 99久久精品国产一区二区 | 国内少妇高清露脸精品视频 | 未满成年国产在线观看 | 毛片看看 | 亚洲狠亚洲狠亚洲狠狠狠 | 女人与公拘交酡全过程 | 国产成人精品微拍视频网址 | 中文字幕亚洲在线 | 日本中国内射bbxx | 久久成人国产 | 精品国产综合色在线 | 91涩涩视频| 人人妻人人做人人爽夜欢视频 | 黄色片免费视频 | 午夜无码伦费影视在线观看 | 无码中文字幕免费一区二区三区 | 亚欧乱色国产精品免费视频 | 在线观看污视频网站 | 黑人巨大人精品欧美三区 | 欧美中文字幕无线码视频 | 国产精品人妻99一区二区 | 国产美女精品自在线拍免费下载出 | av在线免费不卡 | 国产美女亚洲精品久久久综合 | 高潮又爽又无遮挡又免费 | www.日本在线观看 | 波多野结衣国产 | 久久亚洲日韩精品一区二区三区 | 国产白嫩美女在线观看 | 日本免费一区二区三区激情视频 | 蜜臀久久99精品久久久久久做爰 | 黄色小说图片视频 | 亚洲精品456在线播放乱码 | 人妻人人看人妻人人添 | 日韩人妻无码免费视频一区二区 | 亚洲播放| 国产成人免费观看视频 | av激情网站| 久久最新视频 | 国产97色在线 | 国产 | 99re视频在线观看 | 九九热在线视频 | 内射中出无码护士在线 | 成人亚洲精品久久99狠狠 | 国产激情综合在线看 | 亚洲最大成人网站 | 久久久久国产免费 |
Powered by RRZCMS