日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時(shí)間:8:30-17:00
你可能遇到了下面的問(wèn)題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營(yíng)銷(xiāo)解決方案
服務(wù)Linux系統(tǒng)下安裝和配置NTP服務(wù)(linux安裝ntp)

NTP 服務(wù)是利用傳播服務(wù)在網(wǎng)絡(luò)中進(jìn)行時(shí)間同步的機(jī)制,使管理員得以維護(hù)網(wǎng)絡(luò)上數(shù)據(jù)的可靠性。它可以使各臺(tái)計(jì)算機(jī)的時(shí)鐘保持同一個(gè)時(shí)間,并且簡(jiǎn)化統(tǒng)一調(diào)整時(shí)間的工作,避免過(guò)多的手工調(diào)整時(shí)間易出錯(cuò)的現(xiàn)象。如今,NTP 已成為大多數(shù)發(fā)行版的默認(rèn)組件,而 linux 系統(tǒng)中安裝和配置 NTP 服務(wù)十分簡(jiǎn)單便捷,以下指南將會(huì)幫助您快速的完成 NTP 服務(wù)的安裝和配置 。

成都創(chuàng)新互聯(lián)公司主營(yíng)潼南網(wǎng)站建設(shè)的網(wǎng)絡(luò)公司,主營(yíng)網(wǎng)站建設(shè)方案,重慶App定制開(kāi)發(fā),潼南h5小程序制作搭建,潼南網(wǎng)站營(yíng)銷(xiāo)推廣歡迎潼南等地區(qū)企業(yè)咨詢

## 一、安裝 NTP 服務(wù)

1. 首先,我們需要安裝 NTP 服務(wù),在 Ubuntu 中,系統(tǒng)上已經(jīng)默認(rèn)安裝了 NTP 服務(wù),可以直接使用如下命令完成檢查:

“`shell

# check whether ntp is installed

dpkg -s ntp


2. 如果未安裝,可通過(guò) apt 來(lái)完成,首先需要更新一下本地軟件倉(cāng)庫(kù):

```shell
# update repository
sudo apt-get update

3. 然后執(zhí)行安裝:

“`shell

# install ntp

sudo apt-get install ntp


## 二、配置 NTP

1. NTP 使用的時(shí)間源文件位于 `/etc/ntp.conf`,通過(guò)執(zhí)行 `vim` 編輯,將注釋的行取消掉,或者更改里面的 servers IP 地址就可以修改 NTP 服務(wù)所屬的時(shí)間源,這里我們使用國(guó)家授時(shí)中心國(guó)家大學(xué)科學(xué)院地址 `ntp.csie.ntu.edu.tw`,配置如下:

``` conf
# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
server 0.tw.pool.ntp.org
server 1.tw.pool.ntp.org
server ntp.csie.ntu.edu.tw
# Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for
# details. The web page
# 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.

restrict -4 default kod notrap nomodify
restrict -6 default kod notrap nomodify

2. 然后啟動(dòng)要 NTP 服務(wù):

“`shell

# start ntp service

sudo service ntp start


3. 最后再檢查一下 NTP 是否真的開(kāi)啟:

```shell
# check if ntp service is running
sudo ntpq -p

如果返回了之前配置的時(shí)間源,即可確定 NTP 服務(wù)已經(jīng)成功安裝和配置。

創(chuàng)新互聯(lián)-老牌IDC、云計(jì)算及IT信息化服務(wù)領(lǐng)域的服務(wù)供應(yīng)商,業(yè)務(wù)涵蓋IDC(互聯(lián)網(wǎng)數(shù)據(jù)中心)服務(wù)、云計(jì)算服務(wù)、IT信息化、AI算力租賃平臺(tái)(智算云),軟件開(kāi)發(fā),網(wǎng)站建設(shè),咨詢熱線:028-86922220


網(wǎng)頁(yè)題目:服務(wù)Linux系統(tǒng)下安裝和配置NTP服務(wù)(linux安裝ntp)
網(wǎng)站網(wǎng)址:http://m.5511xx.com/article/codjiep.html