sink_cup

Linux 设置服务器时区 UTC 0区

Linux服务器建议使用UTC 0区且没有夏时令,Atlantic/Reykjavik正好符合,这样各个程序都比较简单,时间不用算来算去的。

“夏时令”也会影响时间的换算,wiki上有讲解。

sudo tzselect
 6) Atlantic Ocean
6
5) Iceland
5
You can make this change permanent for yourself by appending the line
	TZ=\'Atlantic/Reykjavik\'; export TZ
to the file \'.profile\' in your home directory; then log out and log in again.

Here is that TZ value again, this time on standard output so that you
can use the /usr/bin/tzselect command in shell scripts:
Atlantic/Reykjavik

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-10-06
  • 2022-01-02
  • 2022-12-23
  • 2021-11-07
  • 2021-06-12
  • 2021-06-30
  • 2021-08-15
猜你喜欢
  • 2022-12-23
  • 2022-01-03
  • 2022-12-23
  • 2021-11-05
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案