CentOS 安装 NTP

使用下面的命令进行安装:[[email protected] ~]# yum install ntp服务器输出:[code][[email protected] ~]# yum install ntp
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile

  • base: mirrors.sonic.net
  • extras: mirror.hmc.edu
  • updates: mirrors.sonic.net
    Setting up Install Process
    Resolving Dependencies
    –> Running transaction check
    —> Package ntp.x86_64 0:4.2.2p1-15.el5.centos.1 set to be updated
    –> Finished Dependency Resolution

Dependencies Resolved

Package Arch Version Repository Size

ntp x86_64 4.2.2p1-15.el5.centos.1 updates 1.3 M

Transaction Summary

Install 1 Package(s)
Upgrade 0 Package(s)

Total download size: 1.3 M
Is this ok [y/N]: y
Downloading Packages:
ntp-4.2.2p1-15.el5.centos.1.x86_64.rpm | 1.3 MB 00:01
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : ntp 1/1

ntp.x86_64 0:4.2.2p1-15.el5.centos.1

[[email protected] ~]# [/code]启动 NTP 服务:[[email protected] ~]# service ntpd start Starting ntpd: [ OK ] [[email protected] ~]#