Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Centos 6.6 update time zone and time

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

First, check the current system time zone:

[root@1inux] # date-RWed, 27 Nov 2019 16:17:13 + 0800 / / + 0800 shows the East eighth District adopted by our country

If the system does not display + 0800, you can execute the following command to modify the time zone:

Two: modify the time zone

[root@1inux ~] # cp / usr/share/zoneinfo/Asia/Shanghai / etc/localtime

Three: update time after modification, and write to hardware synchronously

[root@1inux] # ntpdate ntp1.aliyun.com & & hwclock-w27 Nov 16:20:21 ntpdate [26045]: adjust time server 120.25.115.20 offset-0.015934 sec

Then the scheduled task crontab can be enabled so that the scheduled task time is accurate.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report