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
主站蜘蛛池模板: 精品国精品国产自在久国产应用男 | 美女极度色诱视频国产免费 | 国产精品无码无需播放器 | 精品国产乱码久久久久久三级人 | 免费裸体黄网站18禁止观看 | 国产婷婷成人久久av免费高清 | 羞羞视频在线观看 | 99久久国产成人免费网站 | 国产不卡免费视频 | 人妻熟女一区二区aⅴ向井蓝 | 女人高潮抽搐潮喷小视频 | 少妇愉情理伦片丰满丰满午夜 | 国产精品人成视频国模 | 亚洲中文字幕伊人久久无码 | 五月婷网 | 高潮又爽又无遮挡又免费 | 成人h动漫精品一区二区无码 | 欧美伦理在线观看 | 宅男av| 国产综合视频在线观看 | 国产精品女人久久久 | 麻豆蜜桃av蜜臀av色欲av | 天天操夜夜操狠狠操 | 天天狠天天透天干天干 | 亚洲人成电影网站色mp4 | 一本一道中文字幕无码东京热 | 午夜精品久久久久久久久久久 | 亚洲精品一区二区三区中文字幕 | 亚洲女人被黑人巨大进入 | 精品国产不卡一区二区三区 | 欧美手机在线视频 | 亚洲夂夂婷婷色拍ww47 | 久久精品国产77777蜜臀 | 少妇又紧又深又湿又爽视频 | 成年男人裸j照无遮挡无码 成人av软件 | 7777精品久久久久久 | 国产精品成人无码免费 | 亚欧乱色国产精品免费视频 | 国产91页| 成在人线av无码免费高潮求绕 | 亚洲娇小与黑人巨大交 | 亚洲人成网址在线播放小说 | 亚洲精品9999久久久久无码 | 亚洲国产精品无码久久网速快 | 亚洲国产成人精品无码区一本 | 国产av成人精品播放 | 色婷婷亚洲婷婷五月 | 国产在线精品成人一区二区 | 男人天堂手机在线观看 | 青青草在线免费观看 | 午夜福利在线永久视频 | 成人高清无遮挡免费视频在线观看 | 亚洲无吗在线 | 成人免费毛片观看 | 羞羞影院成人午夜爽爽在线 | 欧美日韩色综合 | 青青视频免费观看免费 | 色图一区| 婷婷丁香五月六月综合激情啪 | 伊人影院视频 | 精品无码国产一区二区三区麻豆 | 欧美日韩视频网站 | 久久久综合久久 | 国产片av国语在线观看手机版 | 日本中文字幕乱码免费 | 国产精品成人免费视频 | 国产尤物在线观看 | 久久神马影院 | 成人午夜视频一区二区无码 | 优优色综合 | 亚洲欧洲无码专区av | 国产精品视频露脸 | 国产女人水真多18毛片18精品 | 欧美人与动牲交xxxxbbbb | 日本最新免费二区三区 | 无码精品久久一区二区三区 | 哪里可以免费看毛片 | 欧美一区二区三区性视频 | 国产午夜无码片在线观看网站 | 91亚洲精选 | 亚洲综合网站久久久 | 国产高清视频免费 | 久久国产一级片 | 黄色小网站在线观看 | 久久无码专区国产精品 | 国产无遮挡裸体美女视频 | 欧美天天 | 99久久久精品免费观看国产 | 日本一道高清一区二区三区 | 在线观看黄 | 欧美成人午夜精品久久久 | 97夜夜澡人人双人人人喊 | 亚洲成a人片77777国产 | 黄色一级免费看 | 欧美成人精品第一区二区三区 | 一本久道久久综合狠狠老 | 囯产精品一区二区三区线 | 麻豆国产人妻欲求不满 | 在线播放网址 |
Powered by RRZCMS