当前位置:首页 > linux > 正文内容

linux 服务器时间校准

root3年前 (2021-06-11)linux584

Linux 时间矫正

sudo ntpdate -u ntp.api.bz


第一使用可能提示ntpdate没安装,用以下命令安装即可

ubuntu系统

sudo apt install ntpdate

centos系统

sudo yum install -y ntp ntpdate


关闭自动校准时间命令

timedatectl set-ntp false  

然后执行date -s “2021-02-02 02:02:02”

修改服务器系统时间

扫描二维码推送至手机访问。

版权声明:本文由一叶知秋发布,如需转载请注明出处。

本文链接:https://zhiqiu.top/?id=125

分享给朋友:

相关文章

linux   挂载盘

linux 挂载盘

sudo  fdisk -l :列出所有分区信息;找到自己插入到linux系统的硬盘上图从众多盘中找到自己的 看type 和大小。/dev/sdb 是盘的名字/dev/sdb4  是分区接下来是挂载s...

永久更改Linux系统主机名hostname

1)sudo vim /etc/hostname如果你不更新/etc/hosts文件,那么有的程序,如sudo,不知道如何解析新的主机名。所以如果更改个人电脑的主机名,那么新的主机名应该解析为127.0.0.1。2)sudo hostnam...

tcpdump 抓包命令

网络数据包截获分析工具。支持针对网络层、协议、主机、网络或端口的过滤。并提供and、or、not等逻辑语句帮助去除无用的信息。tcpdump tcp -i eth1 -t -s 0 -c 100 and dst port ! 22 and...

清空swap 空间和清空 系统未释放的缓存(cache)

清空swap 空间和清空 系统未释放的缓存(cache)

查看当前swap分区挂载在哪?swapon -sswapoff  /dev/dm-1关闭这个swap 的挂载这个执行需要点时间检查一下swapon -s最下面一行显示全0,表示全部关停重新挂载(不想用swap 可以不挂)将swap...

How to remotely monitor hosts over Telnet and SSH [Tutorial]

python ssh登录服务器In this tutorial, you will learn how to carry out basic configurations on a server with Telnet and SSH co...

zookeeper安装

Zookeeper 是一个分布式应用程序协调服务,主要用来写到分布式服务的上下线,主从问题,选举主节点等。下载新版 zookeeper:apache-zookeeper-3.7.0-bin1、解压后修改配置文件,进入 conf 目录,将 z...