<tfoot id="jvoyl"></tfoot>
  1. <sup id="jvoyl"><tfoot id="jvoyl"><fieldset id="jvoyl"></fieldset></tfoot></sup>
    <meter id="jvoyl"></meter>
    <pre id="jvoyl"></pre>
    <p id="jvoyl"></p>
  2. 中文字幕2019年最好看电视剧,韩色区,亚洲日本天堂,一区二区三区精品免费视频,精品无码一区在线观看,超碰人人人,国产?熟女,国产精品人成视频免费国产
    您好,歡迎進入北京泰福特電子科技有限公司官網

    咨詢服務熱線

    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
    主站蜘蛛池模板: 国产美女精品一区二区| 海兴县| 国产成人久久精品二区三区| 欧美激情一区二区久久久| 亚洲AVAv电影AV天堂18禁| 亚洲天堂精品视频| 69av视频在线观看| 人妻夜夜爽天天爽一区| 人妖视频网站| 精品国产成人a区在线观看| 无码一区二区波多野结衣播放搜索| 国精产品999国精产品官网| 久久国产V一级毛多内射| 免费无码成人av在线播| 精品亚洲国产成av人片传媒| 口爆少妇在线视频免费观看| 高潮在线欧美一区| 国产做爰xxxⅹ久久久| 开心五月激情综合久久爱| 国产精品???A片在线观看| 一区二区三区午夜视频在线观看 | 天天躁狠狠躁狠狠躁夜夜躁| 最新日韩av在线不卡| 精品国产乱码久久久久久鸭王1| 国产亚洲欧美日韩亚洲中文色| 日韩无码一卡二卡| 制服.丝袜.亚洲.中文.91| 韩国三级丰满少妇高潮| 五十路亲子中出在线观看| 制服丝袜在线亚洲| 国内精品久久九九国产精品| 欧洲免费无码视频在线| 亚洲国产精品一区二区久| 亚洲无码?制服丝袜| 超级碰碰色偷偷免费视频| 久久国产人妻一区二区免费| 国产在线不卡AV观看| 探花无码| 国产福利酱国产一区二区| 亚洲av激情综合在线| 真人与拘做受免费视频|
    Powered by RRZCMS