1.把ntp的3个依赖包移动到内网服务器/home/ntp目录 2.执行下面4条命令离线安装 cd /home/ntp rpm -ivh --force autogen-libopts-5.18-5.el7.x86_64.rpm rpm -ivh --force ntpdate-4.2.6p5-29.el7.centos.2.x86_64.rpm rpm -ivh --force ntp-4.2.6p5-29.el7.centos.2.x86_64.rpm 3.输入ntpdate,成功