1.查看当前时间
[sandwich@centos-elk logs]$ date
Sun Apr 24 05:10:29 PDT 2022
PDT是太平洋夏季时间
我需要改成中国时间
2.确认上海的timzone
[sandwich@centos-elk logs]$ timedatectl list-timezones |grep Shanghai
Asia/Shanghai
3.更新timezone
[sandwich@centos-elk logs]$ sudo timedatectl set-timezone Asia/Shanghai
4.确认当前时间
[sandwich@centos-elk logs]$ date
Sun Apr 24 20:17:06 CST 2022
CST: China Standard Time UT+8:00