linux在线安装ntp命令
linux在线安装ntp命令详细介绍
以下是不同 Linux 发行版在线安装 NTP 服务的命令:
V1
安装完成后,可通过以下操作启用服务(以 systemd 系统为例):
- 启动 NTP 服务:
systemctl start ntpd(CentOS)或systemctl start ntp(Ubuntu) - 设置开机自启:
systemctl enable ntpd(CentOS)或systemctl enable ntp(Ubuntu) - 验证状态:
systemctl status ntpd(CentOS)或systemctl status ntp(Ubuntu)