查看和修改服务器时区

1、 查看服务器现在所处的时区

[root@localhost ~]# date -R
Mon, 10 Apr 2023 18:25:32 +0800

2、 修改服务器的时区

[root@localhost ~]# tzselect
[root@localhost ~]# tzselect
Please identify a location so that time zone rules can be set correctly.
Please select a continent or ocean.
 1) Africa
 2) Americas
 3) Antarctica
 4) Arctic Ocean
 5) Asia
 6) Atlantic Ocean
 7) Australia
 8) Europe
 9) Indian Ocean
10) Pacific Ocean
11) none - I want to specify the time zone using the Posix TZ format.
#?

选择对应的时区

你可能感兴趣的:(linux基础,linux,服务器,运维)