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
主站蜘蛛池模板: 国产a√精品区二区三区四区 | 青青在线精品 | 亚洲乱码中文字幕在线 | 影音先锋无码a∨男人资源站 | 九九视频精品在线 | 国产亚洲精品一区二区在线观看 | 女人被躁到高潮免费视频 | 国产美女精品自在线拍 | 免费观看国产女人高潮视频 | 久久婷婷五月综合色国产香蕉 | 欧美日韩国产成人精品 | 超碰97在线播放 | 久久久久国产精品夜夜夜夜夜 | 亚洲精品国产a | 福利一区在线 | 人妻无码一区二区三区tv | 性色av无码专区一ⅴa亚洲 | 亚洲香蕉av在线一区二区三区 | 日韩二区三区 | 国产精品丝袜无码不卡一区 | 亚洲图片激情小说 | 国产精品成人av性教育 | 久久亚洲精品久久国产一区二区 | 色偷偷亚洲 | 狠狠亚洲婷婷综合色香五月 | 少妇人妻中文字幕hd | 精品无码午夜福利电影片 | 黑人大群体交免费视频 | 99久久久国产精品无码免费 | 中文字幕免费在线视频 | 欧美日韩综合在线 | 动漫精品中文无码卡通动漫 | 18禁美女黄网站色大片免费网站 | 伊人青草| 亚洲福利视频网 | 精品国产福利拍拍拍 | 亚洲日韩精品国产一区二区三区 | 天天射日日干 | 亚洲少妇一区二区 | 亚洲人成未满十八禁网站 | 精品亚洲一区二区三区四区五区高 | 色悠久久久久久久综合网 | 18禁美女裸体免费网站 | 亚洲色爱免费观看视频 | 色欧美色 | 亚洲国产成人久久综合碰 | 国产激情内射在线影院 | 成人精品在线视频 | 久久亚洲精品11p | 色老汉av一区二区三区 | 99视频有精品视频高清 | 亚洲成人久久久久 | aaa色| 国产精品制服诱惑 | 久久免费观看午夜成人网站 | 亚洲妇女无套内射精 | 国产一级生活片 | 少妇性俱乐部纵欲狂欢电影 | 亚洲精品成人网站在线观看 | 久久综合九色综合欧洲98 | 欧美日韩一区二区在线观看 | 亚洲看片网 | 狠狠亚洲色一日本高清色 | av天堂亚洲区无码先锋影音 | www.少妇av| 免费国产黄网在线观看 | 狠狠亚洲婷婷综合色香五月 | 人妻丰满熟妇av无码片 | 大战熟女丰满人妻av | 青青青在线香蕉国产精品 | 国产初高中生视频在线观看 | 狠狠躁夜夜躁人 | 欧美成人动态图 | 黑料视频在线观看 | 欧美白丰满老太aaa片 | 日本强好片久久久久久aaa | 国产成人a区在线观看视频 免费人成年激情视频在线观看 | 91传媒在线免费观看 | 亚洲 欧美 日韩 国产 丝袜 | 国产在线一卡2卡三卡4卡免费 | 亚洲欧美激情一区二区三区 | 午夜日韩视频 | 国产麻豆成人传媒免费观看 | 丰满人妻的精油按摩做爰 | 久久久久久久人妻无码中文字幕爆 | 午夜免费看片 | 视频区小说区图片区 | 在线看无码的免费网站 | 国产白丝精品91爽爽久久 | 成人精品一区二区三区中文字幕 | 快射天堂网 | 好爽插到我子宫了高清在线 | 中文字幕日韩在线视频 | 高潮喷水抽搐无码免费 | 亚洲天堂精品视频 | 综合精品欧美日韩国产在线 | 纯肉无遮挡无码日本动漫 | 欧美黑人粗大xxxxbbbb | 欧美片网站yy |
Powered by RRZCMS