How to modify the time in centos virtual machine

How to modify the time in centos virtual machine

The one above shows the system time, and the one below shows the hardware time. Since I have modified them here, they are equally fast. If they are not equally fast, do as follows.

This is to change the system year, month, and day, and you can also change the hours, minutes, and seconds. Same command.

This is directly updated to the time in this time zone when there is a network connection.

This is to adjust the hardware time and system time to be the same.

This is to write the date into CMOS .

OK, it's done. You can now check whether your hardware time and system time are the same.

ps: The entire command must be entered under root privileges.

Summarize

The above is the full content of this article. I hope that the content of this article will have certain reference learning value for your study or work. Thank you for your support of 123WORDPRESS.COM. If you want to learn more about this, please check out the following links

You may also be interested in:
  • How to intercept the specified Tomcat log to the specified file in CentOS7 according to the time period
  • How to modify server system time in CentOS7
  • How to change the CentOS server time to Beijing time
  • Detailed explanation of 2 methods to synchronize network time in Linux/CentOS system
  • How to set accurate time in CentOS
  • Tutorial on how to configure ntp service under CentOS 7
  • Detailed steps to build ntp clock server in CentOS 7
  • Centos 7.4 server time synchronization configuration method [based on NTP service]

<<:  js to achieve the pop-up effect

>>:  Uninstalling MySQL database under Linux

Recommend

Detailed tutorial on distributed operation of jmeter in docker environment

1. Build the basic image of jmeter The Dockerfile...

28 Famous Blog Redesign Examples

1. WebDesignerWall 2. Veerle's Blog 3. Tutori...

Detailed explanation of nginx request header data reading process

In the previous article, we explained how nginx r...

javascript implements web version of pinball game

The web pinball game implemented using javeScript...

Detailed explanation of the payment function code of the Vue project

1. Alipay method: Alipay method: Click Alipay to ...

CSS World--Code Practice: Image Alt Information Presentation

Using the <img> element with the default sr...

Summary of Linux file directory management commands

touch Command It has two functions: one is to upd...

js to realize the rotation of web page pictures

This article shares the specific code of js to re...

WeChat applet realizes left-right linkage

This article shares the specific code for WeChat ...