企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
## Ntpdate #### 安装ntpdate ~~~ yum install ntpdate ~~~ #### 同步命令 ~~~ ntpdate cn.pool.ntp.org ~~~ #### 查看当前时区 ~~~ ls -la /etc/localtime ~~~ 结果 ~~~ 0 lrwxrwxrwx. 1 root root 35 3月 26 00:37 /etc/localtime -> ../usr/share/zoneinfo/Asia/Shanghai ~~~ #### 删除当前本地时间 ~~~ rm /etc/localtime ~~~ #### 设置时区为上海 ~~~ ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime ~~~ #### 设置为定时同步时间 ~~~ */30 * * * * ntpdate cn.pool.ntp.org //每半小时同步 ~~~