性无码一区二区三区在线观看,班长用她的玉足白丝帮我爽,在线视频免费观看www动漫,全免费A级毛片免费看视频

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

咨詢服務熱線

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服務同步標準時間,作為內外網絡的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

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

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 查看網絡中的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號-3
京公網安備 11010802025976號

掃一掃咨詢微信客服

18519396506
在电影院里拨开内裤挺进| 少妇高潮毛片免费看| 国产无遮挡裸体免费视频在线观看| 老师露出两个奶球让我吃奶头| 黑巨人与欧美精品一区| WWW色情成人免费视频软件| 青青青伊人色综合久久| 午夜性爽视频男人的天堂 | 男女交性视频播放| freexxxxhd天美传媒a| 美女把尿口扒开让男人桶| 国精品无码人妻一区二区三区| 精品久久人妻av中文字幕| 亚洲av无码之国产精品| 亚洲成av人在线视| 乌克兰少妇xxxx做受野外| 全球欧美hd极品4k| 少妇又色又紧又爽又刺激视频| 亚洲欧美综合在线一区| 国产99在线 | 欧美| 肥臀浪妇太爽了快点再快点| 精品国产乱码久久久久久浪潮| 亚洲午夜无码久久| 日本美女图片| 国产精品99久久免费观看| 色老头在线一区二区三区| 老师的粉嫩小又紧水又多a片| 国产午夜精品一区理论片飘花| 18videosex性欧美69| 亚洲精品久久久久久久蜜桃| 少妇又紧又色又爽又刺激视频| 亚洲欧美精品无码一区二区三区| 亚洲av无码久久精品狠狠爱浪潮| 亚洲精品在线观看| 国产精品毛片无遮挡高清| 欧美性色19p| 特黄a又粗又大又黄又爽a片| 无码人妻一区二区三区免费n鬼沢| 欧美一区二区三区视频在线观看| 亚洲综合欧美色五月俺也去 | 中文字幕熟妇人妻在线视频|
Powered by RRZCMS