ntp时钟同步
服务器时间的一致性,很关键的。
11. 基于ntp服务的形式#
[root@server0 ~]# yum -y install chrony //NTP客户端 centos7.x centos6.x ntp
[root@server0 ~]# vim /etc/chrony.conf
server classroom.example.com iburst
[root@server0 ~]# systemctl enable chronyd
[root@server0 ~]# systemctl restart chronyd.service
22、基于定时任务形式的#
yum install -y ntp
echo "0/20 * * * * ntpdate ip &>/dev/null" >>/var/spool/cron/root
*/20 * * * * /usr/sbin/ntpdate ntpupdate.tencentyun.com >/dev/null &
相关地址:
http://www.ntp.org/
http://www.ntp.org.cn/index.html #国内时钟服务器
作者: mvpbang
出处:https://www.cnblogs.com/xiaochina/p/5699305.html
版权:本文采用「署名-非商业性使用-相同方式共享 4.0 国际」知识共享许可协议进行许可。
· 一个费力不讨好的项目,让我损失了近一半的绩效!
· .NET Core 托管堆内存泄露/CPU异常的常见思路
· PostgreSQL 和 SQL Server 在统计信息维护中的关键差异
· C++代码改造为UTF-8编码问题的总结
· DeepSeek 解答了困扰我五年的技术问题
· 一个费力不讨好的项目,让我损失了近一半的绩效!
· 清华大学推出第四讲使用 DeepSeek + DeepResearch 让科研像聊天一样简单!
· 实操Deepseek接入个人知识库
· CSnakes vs Python.NET:高效嵌入与灵活互通的跨语言方案对比
· Plotly.NET 一个为 .NET 打造的强大开源交互式图表库