The time of VM Ware virtual machine centos is inconsistent with the local time, as shown in the figure below. It is probably a problem with the time zone setting. Just set it to China Standard Time, CST. Solution1. Install the time synchronization plug-in ntpdate yum install ntpdate 2. Start the service service ntpdate restart or systemctl restart ntpdate 3. Set the time zone 1). Delete local time (US time): rm -rf /etc/localtime 2). Set the time zone to Shanghai: ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 4. Verification Enter the date to see if it is correct 5. But after reboot, it failed. 6. Put it in crond NTP Network Time Protocol, put it in crond, that is, it is the same as the network time at all times. After restart, it still takes effect. OK!
Add this line of information:
This is the end of this article about the inconsistency between VMWare virtual machine centos time and local time. For more relevant VMWare virtual machine centos time content, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Use Typescript configuration steps in Vue
>>: Fixed table width table-layout: fixed
The <TH> tag is used to set the properties ...
In Docker's design, a container runs only one...
Table of contents Layout part: <div id="a...
Basic Introduction In the previous article, we in...
Preface Recently, due to work reasons, I was work...
Table of contents Common version introduction Com...
Usually the goal of building a website is to have...
This article records the process of upgrading MyS...
Table of contents getting Started Data storage Co...
1. Download the axios plugin cnpm install axios -...
Introduction: Regarding MySQL database specificat...
Sometimes, we want the text boxes in the form to b...
1. Enter the configuration file of the yum source...
Detailed explanation of Linux vi command The vi e...
As the domestic network environment continues to ...