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

linux 服务器时间校准

root5年前 (2021-06-11)linux1493

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

分享给朋友:

相关文章

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...

Cannot uninstall 'ipaddress'. It is a distutils installed project and thus

强制升级:sudo pip install --ignore-installed +模块名...

办公室千兆服务器之间scp的传输速度被限制在3MB/s

服务器之间拷贝文件是十分常见的操作但是有时候会遇见一个问题,拷贝的速度是相当的缓慢。遇见问题就开始分析问题影响网络网络传输有:服务器a和b、服务器网卡A和B、网线、交换机、路由器由于服务器a和b在同一台交换机不考虑路由器的因素查看服务器网卡...

centos切勿执行yum -y update

yum update 跟apt-get update 不一样centos的yum update相当于ubuntu的apt upgrade如果想用ubuntu的apt update,centos是yum makecache因为执行yum -y...

shell 替换文件配置

sed -i "s/enforcing/disabled/g" /etc/selinux/config...

实用的linux命令

查看命令运行的实时结果watch  "ls |wc -l" 能够实时的监控命令执行的结果,不过刷新时间有点长,大概2秒,可以修改为1秒iftop查看出入网流量情况nload实时查看出入网流量情况fre...