条件:局域网,无法联网,无法使用yum

服务器规划

bigdata12 172.16.145.12  
bigdata13 172.16.145.13  
bigdata14 172.16.145.14  

一、安装

1.首先下载rpm包
rpm包下载网站 http://www.rpmfind.net/linux/rpm2html/search.php?query=ntpdate&submit=Search+...&system=&arch=

下载ntpdate

RHEL7 离线安装NTP

RHEL7 离线安装NTP

下载  autogen-libopts

RHEL7 离线安装NTP

RHEL7 离线安装NTP

下载ntp

RHEL7 离线安装NTP

RHEL7 离线安装NTP

 

2.安装ntpdate

rpm -ivh ntpdate-4.2.6p5-28.el7.centos.x86_64.rpm

3.安装ntp

rpm -ivh autogen-libopts-5.18-5.el7.x86_64.rpm

rpm -ivh ntp-4.2.6p5-28.el7.centos.x86_64.rpm

安装完成
二、配置ntp

1.修改ntp.conf文件,使用命令vi /etc/ntp.conf

设置可访问本ntp服务器的主机,我们测试不妨允许任何主机都可访问

RHEL7 离线安装NTP

2.启动ntp

systemctl start ntpd

3.开机自启

systemctl enable ntpd

4.客户端机配置

修改/etc/ntp.conf 添加ntp服务器地址,启动ntp服务

RHEL7 离线安装NTP

查看信息ntpq -p

RHEL7 离线安装NTP

相关文章:

  • 2022-12-23
  • 2021-10-06
  • 2022-12-23
  • 2021-08-12
  • 2021-07-28
  • 2021-10-17
  • 2022-01-07
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-05-18
  • 2022-12-23
  • 2021-08-25
  • 2022-01-13
  • 2021-05-14
  • 2022-12-23
相关资源
相似解决方案