hadoop 大数据环境配置 同步时间 centos服务器时间同步 linux 安装ntp服务更新时间 hadoop(六)

  1. 安装ntp软件
bash 复制代码
yum install -y ntp

2.创建软连接

bash 复制代码
# 删除之前得时间
sudo rm -rf /etc/localtime;

# 更新时区
 sudo ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
  1. 更新时间
bash 复制代码
# root 权限运行
sudo ntpdate -u ntp.aliyun.com
  1. 开机自启,更新时间
bash 复制代码
# 开机启动
sudo systemctl start ntpd
# enable  
sudo systemctl enable ntpd

5.结束

相关推荐
Elastic 中国社区官方博客3 小时前
Elasticsearch:使用 Agent Builder 的 A2A 实现 - 开发者的圣诞颂歌
大数据·数据库·人工智能·elasticsearch·搜索引擎·ai·全文检索
浅时光_c4 小时前
3 shell脚本编程
linux·开发语言·bash
历程里程碑4 小时前
2. Git版本回退全攻略:轻松掌握代码时光机
大数据·c++·git·elasticsearch·搜索引擎·github·全文检索
面向Google编程5 小时前
从零学习Kafka:ZooKeeper vs KRaft
大数据·kafka
热爱专研AI的学妹5 小时前
Seedance 2.0(即梦 2.0)深度解析:AI 视频正式迈入导演级精准可控时代
大数据·人工智能·阿里云·音视频
Lucis__5 小时前
一文读懂TCP通信机制:基于相关API构建可靠性连接
linux·网络·tcp/ip
_深海凉_5 小时前
LeetCode热题100-有效的括号
linux·算法·leetcode
lcj09246667 小时前
磁控U位管理系统与DCIM对接实现:筑牢数据中心精细化运维底座
大数据·数据库·人工智能
零号全栈寒江独钓7 小时前
基于c/c++实现linux/windows跨平台获取ntp网络时间戳
linux·c语言·c++·windows
左手厨刀右手茼蒿8 小时前
Linux 内核中的进程管理:从创建到终止
linux·嵌入式·系统内核