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
1. Front-end-led implementation steps The first s...
Preface The MySQL permission table is loaded into...
tomcat server configuration When everyone is lear...
Implement Nginx load balancing based on Docker ne...
Problem Description 1. Database of the collection...
1. Install basic components First, execute the yu...
Table of contents 1. parse 1.1 Rules for intercep...
cursor The set of rows returned by the select que...
First, we need a server with Docker installed. (I...
Table of contents 1: Encapsulation idea 2. Packag...
Table of contents introduce Example Summarize int...
Adaptive layout is becoming more and more common i...
The installation of MySQL 8.0.12 took two days an...
1. MySQL master-slave asynchrony 1.1 Network Dela...
1. Set up HOST on the host Macbook The previous d...