CentOS7离线安装ntpdata

需要的安装包:

  1. autogen-libopts-5.18-5.el7.x86_64.rpm
  2. ntpdate-4.2.6p5-18.el7.centos.x86_64.rpm
  3. ntp-4.2.6p5-18.el7.centos.x86_64.rpm

安装方法:
4. 优先安装autogen
[root@master01 ntpdata-pkg_for-not-net]# rpm -ivh autogen-libopts-5.18-5.el7.x86_64.rpm
warning: autogen-libopts-5.18-5.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Preparing… ################################# [100%]

  1. 并行安装ntpdata 和 ntp
  2. [root@master01 ntpdata-pkg_for-not-net]# rpm -ivh ntpdate-4.2.6p5-18.el7.centos.x86_64.rpm ntp-4.2.6p5-18.el7.centos.x86_64.rpm
    Preparing… ################################# [100%]
    package ntpdate-4.2.6p5-29.el7.centos.x86_64 (which is newer than ntpdate-4.2.6p5-18.el7.centos.x86_64) is already installed
    file /etc/sysconfig/ntpdate from install of ntpdate-4.2.6p5-18.el7.centos.x86_64 conflicts with file from package ntpdate-4.2.6p5-29.el7.centos.x86_64
    file /usr/sbin/ntpdate from install of ntpdate-4.2.6p5-18.el7.centos.x86_64 conflicts with file from package ntpdate-4.2.6p5-29.el7.centos.x86_64
    file /usr/lib/systemd/system/ntpdate.service from install of ntpdate-4.2.6p5-18.el7.centos.x86_64 conflicts with file from package ntpdate-4.2.6p5-29.el7.centos.x86_64
    file /usr/libexec/ntpdate-wrapper from install of ntpdate-4.2.6p5-18.el7.centos.x86_64 conflicts with file from package ntpdate-4.2.6p5-29.el7.centos.x86_64
    package ntp-4.2.6p5-29.el7.centos.x86_64 (which is newer than ntp-4.2.6p5-18.el7.centos.x86_64) is already installed
    file /usr/sbin/ntpd from install of ntp-4.2.6p5-18.el7.centos.x86_64 conflicts with file from package ntp-4.2.6p5-29.el7.centos.x86_64
    file /usr/bin/ntpstat from install of ntp-4.2.6p5-18.el7.centos.x86_64 conflicts with file from package ntp-4.2.6p5-29.el7.centos.x86_64
    file /usr/sbin/ntp-keygen from install of ntp-4.2.6p5-18.el7.centos.x86_64 conflicts with file from package ntp-4.2.6p5-29.el7.centos.x86_64
    file /usr/sbin/ntpdc from install of ntp-4.2.6p5-18.el7.centos.x86_64 conflicts with file from package ntp-4.2.6p5-29.el7.centos.x86_64
    file /usr/sbin/ntpq from install of ntp-4.2.6p5-18.el7.centos.x86_64 conflicts with file from package ntp-4.2.6p5-29.el7.centos.x86_64
    file /usr/sbin/ntptime from install of ntp-4.2.6p5-18.el7.centos.x86_64 conflicts with file from package ntp-4.2.6p5-29.el7.centos.x86_64
    file /usr/sbin/tickadj from install of ntp-4.2.6p5-18.el7.centos.x86_64 conflicts with file from package ntp-4.2.6p5-29.el7.centos.x86_64
    file /usr/share/man/man5/ntp_acc.5.gz from install of ntp-4.2.6p5-18.el7.centos.x86_64 conflicts with file from package ntp-4.2.6p5-29.el7.centos.x86_64
    file /usr/share/man/man5/ntp_misc.5.gz from install of ntp-4.2.6p5-18.el7.centos.x86_64 conflicts with file from package ntp-4.2.6p5-29.el7.centos.x86_64
    file /usr/share/man/man8/ntpd.8.gz from install of ntp-4.2.6p5-18.el7.centos.x86_64 conflicts with file from package ntp-4.2.6p5-29.el7.centos.x86_64
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
CentOS 7离线安装PostgreSQL的步骤如下: 1. 首先,在一台联网的CentOS 7机器上下载所需的PostgreSQL安装包。可以在官方网站(https://www.postgresql.org/)上找到最新的发布版本。选择适用于CentOS 7的RPM安装包,并下载到本地。 2. 将下载好的RPM安装包以及其所有依赖的RPM安装包打包成一个tar.gz压缩包,方便在离线环境中使用。 3. 将这个压缩包复制到目标机器上。 4. 在离线环境的CentOS 7机器上,解压缩这个打包好的压缩包。 5. 在解压缩的目录中,打开终端,并以root用户身份执行以下命令以安装PostgreSQL及其依赖: ``` rpm -ivh *.rpm ``` 其中,`*.rpm`是指安装包所在的目录下所有RPM安装包的通配符。 6. 安装完成后,需要进行一些基本的配置,例如创建数据库管理员用户、启动数据库服务以及设置开机自启动等。具体的配置步骤可以参考PostgreSQL官方文档。 注意事项: - 离线安装PostgreSQL时,需要确保所下载的RPM安装包与目标机器的CentOS 7版本和硬件架构相匹配,否则可能导致安装异常或不成功。 - 离线安装时,需提前了解PostgreSQL所需的所有依赖,并确保在目标机器上已经安装了这些依赖的RPM包,否则安装过程将会失败。可以通过在联网环境中运行以下命令查看依赖关系: ``` yum deplist *.rpm ``` 以上是CentOS 7离线安装PostgreSQL的简要步骤,具体操作可能会因实际情况而有所差异。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值