• <acronym id="muwdf"><var id="muwdf"><option id="muwdf"></option></var></acronym>
    
    
    <rt id="muwdf"></rt>

    <li id="muwdf"></li>
    国产欧美久久久久久,天堂一区在线观看,无码人妻视频一区二区三区 ,国产色老妇在线精品,欧美18videosex性欧美tube1080 ,色吊丝亚洲欧美,污污内射在线观看一区二区少妇,亚洲影音先锋资源站
    您好,歡迎進入北京泰福特電子科技有限公司官網(wǎng)

    咨詢服務(wù)熱線

    400-015-1230

    NTP服務(wù)配置ubuntu系統(tǒng)

    發(fā)布時間:2022-04-12 09:36:15

    NTP即是服務(wù)器,又是客戶端,只需要通過配置即可。

    準備兩臺機器分別作為服務(wù)端(IP地址設(shè)為192.168.10.10)和客戶端(IP地址設(shè)為192.168.10.12)。

    服務(wù)器:NTPD服務(wù),負責與外部公共NTPD服務(wù)同步標準時間,作為內(nèi)外網(wǎng)絡(luò)的NTPD服務(wù)。

    客戶端:NTPclient,與服務(wù)器同步時間。

    ubuntu系統(tǒng)

    1.安裝ntp,因為ntp服務(wù)既是服務(wù)器,又是客戶端,因此兩端安裝方式一樣

    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服務(wù)

    server 210.72.145.44 perfer # 中國國家受時中心

    # 外部時間server不可用時,以本地時間作為時間服務(wù)

    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

    配置文件改動完畢,保存退出。重啟服務(wù)。

    # service ntpd restart

    查看服務(wù)狀態(tài)

    #service ntpd status

    查看服務(wù)連接和監(jiān)聽

    # netstat -tlunp | grep ntp

    ntpq -p 查看網(wǎng)絡(luò)中的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

     配置文件改動完畢,保存退出。重啟服務(wù)。

    # service ntpd restart

     查看服務(wù)狀態(tài)

    #service ntpd status

     配置完成,可以手動修改客戶端時間,然后靜置10幾分鐘,客戶端就會跟服務(wù)器同步


    • 聯(lián)系方式
    • 傳 真:86-10-82782026
    • 電 話:400-015-1230
    • 地 址:北京市海淀區(qū)北清路68號院用友軟件園北區(qū)17號樓三層
    在線咨詢

    咨詢電話:

    400-015-1230

    • 微信掃碼 關(guān)注我們

    Copyright ? 2002-2035 北京泰福特電子科技有限公司 版權(quán)所有 備案號:京ICP備12028220號
    京公網(wǎng)安備 11010802025976號

    掃一掃咨詢微信客服

    18519396506
    主站蜘蛛池模板: 草莓a| 久久国产亚洲AV无码日韩| 日日人人爽人人爽人人片AV| 97无码人妻福利免费公开在线视频| 亚洲护士一区二区三区| 国产中文字幕乱人伦在线观看| 3344在线观看无码| 亚洲丰满熟女一区二区蜜桃| www.亞洲色| 成人乱人乱一区| 影音先锋人妻啪啪AV资源网站| 国内精品人人妻少妇视频| 国内精品久久久久国产盗摄 | 亚洲亚洲人成综合网络| 亚洲日本中文综合在线| 熟女av在线| 亚洲国产精品久久久久婷婷图片| 国产成人无码A区在线观看视频不卡 | 国产成人久久精品流白浆| 印度AV网| 国产成年码av片在线观看| 蜜桃AV噜噜一区二区三区| 亚洲国产a片。| 中文字幕亚洲综合第一页| 香蕉视频一级在线观看| 石河子市| 999久久精品国产| 人人妻人人狠人人爽天天综合网| 一本加勒比HEZYO熟女| 伊人a?v| 国产精品无码无需播放器| 亚洲最大成人免费av| 色大成| 亚洲AⅤ色无码乱码精品| 中文字幕欧美日韩在线不卡| 樱花草在线社区WWW韩国| 国产一区二区不卡91| 综合久久婷婷综合久久| www.91.com,永久看片| 国产高在线精品亚洲三区| 国产精品一区中文字幕|
    Powered by RRZCMS