当前位置: 首页 > news >正文

专业网站建设课程肥西建设局官方网站

专业网站建设课程,肥西建设局官方网站,seo怎么做优化计划,谷歌paypal下载场景#xff1a;内网主机需要搭建 NTP 服务#xff0c;设置一台主机作为服务端#xff0c;其他主机作为客户端。 1 、服务端 1.1 、检查服务是否存在 如果服务存在可以跳过1.2、1.3#xff0c;直接进行配置文件修改 systemctl status chronyd1.2、上传安装包 如果不存…场景内网主机需要搭建 NTP 服务设置一台主机作为服务端其他主机作为客户端。 1 、服务端 1.1 、检查服务是否存在 如果服务存在可以跳过1.2、1.3直接进行配置文件修改 systemctl status chronyd1.2、上传安装包 如果不存在需要上传安装包如果存在可以跳过此步骤。 上传后进行解压 # 解压到 /root目录下 [rootCentos package]# unzip chrony.zip -d /root# 解压后得到chrony目录包含rpm包和chrony.conf配置文件 [rootCentos chrony]# ll 总用量 248 -rw-r--r-- 1 root root 248708 4月 25 2018 chrony-3.2-2.el7.x86_64.rpm -rw-r--r-- 1 root root 1174 11月 10 2021 chrony.conf [rootCentos chrony]# pwd /root/chrony上传依赖包 依赖包libseccomp-2.3.1-4.el7.x86_64.rpm 根据系统而定 1.3 、安装 先安装依赖 rootCentos package]# rpm -ivh libseccomp-2.3.1-4.el7.x86_64.rpm 警告libseccomp-2.3.1-4.el7.x86_64.rpm: 头V3 RSA/SHA256 Signature, 密钥 ID f4a80eb5: NOKEY 准备中... ################################# [100%] 正在升级/安装...1:libseccomp-2.3.1-4.el7 ################################# [100%]在安装 chrony rootCentos chrony]# rpm -ivh chrony-3.2-2.el7.x86_64.rpm 警告chrony-3.2-2.el7.x86_64.rpm: 头V3 RSA/SHA256 Signature, 密钥 ID f4a80eb5: NOKEY 准备中... ################################# [100%] 正在升级/安装...1:chrony-3.2-2.el7 ################################# [100%]查看状态 [rootCentos chrony]# systemctl status chronyd ● chronyd.service - NTP client/serverLoaded: loaded (/usr/lib/systemd/system/chronyd.service; enabled; vendor preset: enabled)Active: inactive (dead)Docs: man:chronyd(8)man:chrony.conf(5)1.4、修改配置文件 备份原来配置文件 mv /etc/chrony.conf /etc/chrony.conf_bak cp /root/chrony/chrony.conf /etc/修改配置文件 # 服务端保留 15、19、22、33、36、42行 vim /etc/chrony.conf1 # Use public servers from the pool.ntp.org project.2 # Please consider joining the pool (http://www.pool.ntp.org/join.html).3 #server 0.centos.pool.ntp.org iburst4 #server 1.centos.pool.ntp.org iburst5 #server 2.centos.pool.ntp.org iburst6 #server 3.centos.pool.ntp.org iburst7 #server 127.0.0.1 iburst8 9 10 11 # 增加新的时间服务器12 # server 59.206.217.1 iburst13 14 # Record the rate at which the system clock gains/losses time.15 driftfile /var/lib/chrony/drift16 17 # Allow the system clock to be stepped in the first three updates18 # if its offset is larger than 1 second.19 makestep 1.0 320 21 # Enable kernel synchronization of the real-time clock (RTC).22 rtcsync23 24 # Enable hardware timestamping on all interfaces that support it.25 #hwtimestamp *26 27 # Increase the minimum number of selectable sources required to adjust28 # the system clock.29 #minsources 230 31 # Allow NTP client access from local network.32 #allow 192.168.0.0/1633 allow all34 35 # Serve time even if not synchronized to a time source.36 local stratum 1037 38 # Specify file containing keys for NTP authentication.39 #keyfile /etc/chrony.keys40 41 # Specify directory for log files.42 logdir /var/log/chrony43 44 # Select which information is logged.45 #log measurements statistics tracking注意如果服务端配置完成重启服务后客户端配置后重启仍无法连接需要看下36行注释是否取消如果正常还不行可以使用nc测试下udp的123端口。 1.5、重启服务 systemctl start chronyd systemctl status chronyd netstat -anput |grep 1232、客户端配置 2.1、查看服务状态 systemctl status chronyd如果服务不存在参考客户端1.2、1.3步骤 2.2、修改配置文件 # 保留7、10、14、17、36行第7行为服务端IP地址vim /etc/chrony.conf1 # Use public servers from the pool.ntp.org project.2 # Please consider joining the pool (http://www.pool.ntp.org/join.html).3 # server 0.centos.pool.ntp.org iburst4 # server 1.centos.pool.ntp.org iburst5 # server 2.centos.pool.ntp.org iburst6 # server 3.centos.pool.ntp.org iburst7 server 10.10.37.25 iburst # 配置服务端IP地址8 9 # Record the rate at which the system clock gains/losses time.10 driftfile /var/lib/chrony/drift11 12 # Allow the system clock to be stepped in the first three updates13 # if its offset is larger than 1 second.14 makestep 1.0 315 16 # Enable kernel synchronization of the real-time clock (RTC).17 rtcsync18 19 # Enable hardware timestamping on all interfaces that support it.20 #hwtimestamp *21 22 # Increase the minimum number of selectable sources required to adjust23 # the system clock.24 #minsources 225 26 # Allow NTP client access from local network.27 #allow 192.168.0.0/1628 29 # Serve time even if not synchronized to a time source.30 #local stratum 1031 32 # Specify file containing keys for NTP authentication.33 #keyfile /etc/chrony.keys34 35 # Specify directory for log files.36 logdir /var/log/chrony37 38 # Select which information is logged.39 #log measurements statistics tracking 2.3、重启服务 systemctl start chronyd systemctl status chronyd netstat -anput |grep 1232.4、查看同步情况 # ^*中的“*”代表是通的 rootCentos etc]# chronyc sources 210 Number of sources 1 MS Name/IP address Stratum Poll Reach LastRx Last sample ^* 10.10.37.25 10 10 377 771 39us[ 43us] /- 461us2.5、查看时间是否同步 date3、相关包 chrony.zip chrony.zip 依赖包
http://www.zqtcl.cn/news/5396/

相关文章:

  • 怎么修改网站备案信息公司网页简介
  • 网站上的视频直播是怎么做的呢小程序商城排名
  • 学校网站栏目建设内蒙古建筑工程招标网
  • 网站站点风格第三方检测机构
  • 手机h5网站模板下载贵阳模板做网站
  • 海南手机网站建设如何在百度发布文章
  • 打开国外网站很慢网站建设汇卓
  • 怎么建设个人网站教程律师在哪个网站做推广比较好
  • 英语培训网站模板杭州市西湖区建设局网站
  • 济南想建设网站用dreamware做网站
  • 做网站输入文本框做下拉网站建设营销的企业
  • 甘肃省集约化网站建设计算机网站开发要考什么证
  • 怎么做舞曲网站购物形式网站制作
  • 做网站先用dw还是asp中国进出口贸易官网
  • 制作网页如何设置对齐方式上海seo外包
  • 网站备案审核过规定时间了wordpress 主题制件
  • 网站静态化如何网站客户案例
  • 零配件加工东莞网站建设技术支持古城网站建设
  • 龙门惠州网站建设wordpress阅读数 显示k
  • 动画网站制作设计网站实现PDF在线阅读需要怎么做
  • 做电影网站如何买版权网站建设管理工作情况的通报
  • 达州做网站的公司有哪些大连嘉良建设有限公司网站
  • 黄冈网站推广软件视频浦口区网站建设质量推荐
  • 广西建设网桂建云网站wordpress mnews
  • 通信部门网站备案证明游戏推广群
  • 山东省质量建设监督总站网站万网上传wordpress
  • 环保网站建设说明启源网站建设
  • 台州建设公司网站在别的公司做的网站
  • 房产销售网站开发文档网站建设 探索
  • 怎么做最火的视频网站视觉设计公司名字