<nav id="kkk8k"></nav>
<tr id="kkk8k"><blockquote id="kkk8k"></blockquote></tr>
    <tr id="kkk8k"><blockquote id="kkk8k"></blockquote></tr>
  • 国产美女在线精品,熟女亚州综合,好骚综合av,在线亚洲国模九九,中国激情网,在线免费熟女,中文字幕一区二区三区四区五区,91黄色视频在线观看
    您好,歡迎進入北京泰福特電子科技有限公司官網(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
    主站蜘蛛池模板: 欧美三级韩国三级日本三斤| 亚洲乱亚洲乱少妇无码99p| 国产精品乱码在线观看| 一区二区午夜| 波多野在线影院| 亚洲熟女视讯2| 亚洲精品久久久久久久久毛片直播| 熟妇人妻午夜寂寞影院| 午夜看看| 一区二区中文字幕在线| 亚洲成av人片在线观看无码| 18禁美女裸体免费网站| 影音先锋一区二区| 国产美女爆我菊免费观看88av | 亚洲精品久久久久久婷婷 | 亚洲电影在线观看| 日本精品啪啪一区二区三区| 国产美女一区| 天天躁夜夜躁狠狠躁婷婷| 少妇精品无码一区二区免费视频| 国产无码VA| 亚洲国产第六| 免费观看欧美猛交视频黑人| 精品久久久久久久无码| 人妻无码专区| 2020国产激情视频在线观看| 苗栗县| 色悠悠撸视频| av片免费播放| 亚洲视频一区| 77777色| 亚洲碰碰人人av熟女天堂 | 亚洲人成网线在线播放va蜜芽| 安吉县| 亚洲色频| 在线观看一区二区三区av| 午夜影院色| 天堂在/线资源中文在线8| 国产成人精品免高潮在线观看 | 亚洲自偷自偷偷色无码中文| 福利二区|
    Powered by RRZCMS