zoukankan      html  css  js  c++  java
  • yum仓库客户端搭建和NTP时间同步客户端配置

    一、yum仓库客户端搭建

    yum源仓库搭建分为服务器端和客户端。

      服务端主要提供软件(rpm包)和yumlist。也就是提供yum源的位置。一般是通过http或者ftp提供位置。

      客户端的配置:yum配置文件位置:/etc/yum.repos.d/

    1 [root@server0 yum.repos.d]# rm -f /etc/yum.repos.d/*
    2 [root@server0 yum.repos.d]# vim repo_yck.repo
      [yck_repo]                                     # 仓库的名称
      name=repo for yck                              # 关于此仓库的描述信息。可自定义。
      baseurl=ftp://192.168.0.251/centos/repo/dvd/   # 指定yum源的位置
      enabled=1                                      # 表示此仓库启用
      gpgcheck=0                                     # 不进行Redhat的签证检验

    二、NTP时间同步客户端配置

    NTP时间同步的搭建也分为服务端和客户端。服务器端提供标准的时间,一般可以用公用的NTP服务器就可以了。

    客户端的配置:

      

    [root@server0 ~]# yum  -y  install  chrony          //安装软件包
    [root@server0 ~]# vim  /etc/chrony.conf
    #server 0.rhel.pool.ntp.org iburst                  //注释掉无效设置
    #server 1.rhel.pool.ntp.org iburst
    #server 2.rhel.pool.ntp.org iburst
    #server 3.rhel.pool.ntp.org iburst
    server classroom.example.com iburst                  //添加正确的服务器设置
    .. ..
    [root@server0 ~]# timedatectl  set-ntp  yes          //允许NTP同步
    [root@server0 ~]# systemctl  restart  chronyd         //启动服务
    [root@server0 ~]# systemctl  enable  chronyd         //设置开启启动
  • 相关阅读:
    POJ 2209
    POJ 2196
    POJ 2215
    POJ 2192
    POJ 2195
    POJ 2181
    POJ 2182
    POJ 2159
    POJ 2153
    字符设备驱动 —— 字符设备驱动框架
  • 原文地址:https://www.cnblogs.com/mython/p/10654564.html
Copyright © 2011-2022 走看看