统信UOS_麒麟KYLINOS上使用命令行配置NTP服务器

news/2024/7/7 18:32:44

原文链接:统信UOS/麒麟KYLINOS上使用命令行配置NTP
hello,大家好啊,今天我要给大家介绍的是在统信UOS/麒麟KYLINOS操作系统上使用命令行配置NTP(Network Time Protocol)服务器的方法。在内网环境下,许多企业都会搭建自己的NTP服务器来确保网络中所有设备的时间同步。这对于维护网络安全、日志审计和数据一致性等方面至关重要。今天的内容将结合之前关于系统镜像制作及模板配置的文章,帮助大家更好地理解和实践NTP服务器的配置。
为什么需要配置企业内部的NTP服务器?

  1. 安全性: 使用内部NTP服务器可以减少外部网络攻击的风险。
  2. 准确性: 企业内部的NTP服务器通常会更加准确可靠,因为它们可以直接同步到权威的时间源。
  3. 网络效率: 内部服务器减少了对外部服务器的依赖,提高了时间同步的效率。

1、查看系统信息

pdsyw@pdsyw-PC:~/Desktop$ sudo -i
请输入密码:
验证成功
root@pdsyw-PC:~# cat /etc/os-version 
[Version] 
SystemName=UOS Desktop
SystemName[zh_CN]=统信桌面操作系统
ProductType=Desktop
ProductType[zh_CN]=桌面
EditionName=Professional
EditionName[zh_CN]=专业版
MajorVersion=20
MinorVersion=1060
OsBuild=11014.100.100
root@pdsyw-PC:~# 
root@pdsyw-PC:~# uname -a
Linux pdsyw-PC 4.19.0-arm64-desktop #6030 SMP Tue Jun 27 15:28:10 CST 2023 aarch64 GNU/Linux
root@pdsyw-PC:~# 

image.png

2、点击控制中心
image.png

3、点击服务器
image.png

4、选择自定义,输入ntp服务器ip
image.png

5、通过命令行实现

root@pdsyw-PC:~# cd /etc/systemd/timesyncd.conf.d/
root@pdsyw-PC:/etc/systemd/timesyncd.conf.d# 
root@pdsyw-PC:/etc/systemd/timesyncd.conf.d# ls -ltr
总用量 4
-rw-r--r-- 1 root root 22 12月  7 14:54 deepin.conf
root@pdsyw-PC:/etc/systemd/timesyncd.conf.d# 
root@pdsyw-PC:/etc/systemd/timesyncd.conf.d# vi deepin.conf 
root@pdsyw-PC:/etc/systemd/timesyncd.conf.d# 
root@pdsyw-PC:/etc/systemd/timesyncd.conf.d# cat deepin.conf 
[Time]
NTP=114.114.114.114

root@pdsyw-PC:/etc/systemd/timesyncd.conf.d# 

image.png

6、重启系统
image.png

7、生效
image.png

8、麒麟操作系统需要编辑kylin.conf文件
image.png
通过在统信UOS/麒麟KYLINOS上配置内部NTP服务器,我们可以确保企业网络中设备的时间同步性和安全性。这对于维护网络环境的稳定性和安全性非常重要。
希望这篇文章能帮助到需要进行时间同步和系统管理的朋友们。如果你有任何问题或者更多的经验分享,请在评论区留言,我们一起讨论。
最后,如果你觉得这篇文章有用,请分享转发。点个关注和在看吧,让我们一起探索和学习更多关于Linux系统管理和配置的知识!


http://lihuaxi.xjx100.cn/news/1883024.html

相关文章

A* 算法简介

一、A* 算法简介A* algorithm is a popular choice for graph search. Breadth First Search is the simplest of the graph search algorithms. Graph search algorithms, including A*, take a “graph” as input. A* algorithm is a modification of Dijkstra’s Algorithm…

error:gmapping

– Could not find the required component ‘gmapping’. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found. CMake Error at /opt/ros/kinetic/share/catkin/cmake…

通过虚拟机安装Open5GS 和UERANSIM记录

目录 wsl虚拟环境尝试失败 step1 安装wsl: step2下载Ubuntu 20.04.6 LTS: step3升级wsl: step4生成用户: step5 linux下安装软件需要的镜像: step6 安装图形界面xfce和浏览器: step6 安装chrome virtual box安装ubuntu step7&#xf…

HarmonyOS鸿蒙操作系统架构开发

什么是HarmonyOS鸿蒙操作系统? HarmonyOS是华为公司开发的一种全场景分布式操作系统。它可以在各种智能设备(如手机、电视、汽车、智能穿戴设备等)上运行,具有高效、安全、低延迟等优势。 目录 HarmonyOS 一、HarmonyOS 与其他操…

AI 绘画 | Stable Diffusion 黑白老照片上色修复

前言 Stable Diffusion WEB UI 依靠各种第三方插件,可是实现很多功能,今天主要讲解如何使用ControNet插件的Recolor (重上色) 实现黑白老照片的上色和修复,变成一个彩色高清的图片。 ControNet 官方地址: https://github.com/lllyasviel/ControlNet 教程 安装ControNet…

[ndss 2023]确保联邦敏感主题分类免受中毒攻击

Securing Federated Sensitive Topic Classification against Poisoning Attacks 摘要 我们提出了一种基于联邦学习 (FL) 的解决方案,用于构建能够检测包含敏感内容的 URL 的分布式分类器,即与健康、政治信仰、性取向等类别相关的内容。尽管这样的分类器…

20、关联容器、无序容器

20、关联容器、无序容器 关联容器mapmultimapsetmultiset 无序容器哈希unordered_map 关联容器 map // map的使用 #include <iostream> #include <map> #include <stdexcept> using namespace std;class Student{ public:Student(const string& name&qu…

前端知识(十五)——es6 相关面试总结

1、es6 是什么 新一代的js 语言标准&#xff0c;对其核心做了升级优化&#xff0c;更加适合大型应用开发。 2、箭头函数优缺点 优点&#xff1a; 1.代码优化 2.this 指向不会变动&#xff0c;永远指向其父元素 缺点&#xff1a; 1.没有arguments 参数 2.不能通过 appl…