Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

ntp学习笔记

1、什么是ntp?

2、ntp的安装与使用

# 更新软件包,安装ntp
apt update 
apt install ntp -y

# 或

yum update 
yum install ntp -y

# 或

dnf upate
dnf install ntp -y

# 启动ntp,设置ntp服务开机自启
sudo systemctl start ntp
sudo systemctl enable ntp

sudo systemctl start ntpd
sudo systemctl enable ntpd

sudo systemctl status ntp
# 用于显示网络时间协议的状态信息
ntpq -p