当前位置:   article > 正文

linux Centos 7 debug 记录_the mysql server has a timezone offset (28800 seco

the mysql server has a timezone offset (28800 seconds ahead of utc) which do
1.虚拟机时区莫名其妙变成了America/Los_Angeles导致起flink standalone模式时出现下列报错。
Caused by: org.apache.flink.table.api.ValidationException: The MySQL server has a timezone offset (28800 seconds ahead of UTC) which does not match the configured timezone America/Los_Angeles. Specify the right server-time-zone to avoid inconsistencies for time-related fields.

时间、时区显示命令

  1. [root@hadoop01 ~]# date
  2. Wed Mar 13 09:06:35 CST 2024
  3. [root@hadoop01 ~]# timedatectl
  4. Warning: Ignoring the TZ variable. Reading the system's time zone setting only.
  5. Local time: Wed 2024-03-13 01:06:39 UTC
  6. Universal time: Wed 2024-03-13 01:06:39 UTC
  7. RTC time: Wed 2024-03-13 01:06:39
  8. Time zone: n/a (UTC, +0000)
  9. NTP enabled: yes
  10. NTP synchronized: yes
  11. RTC in local TZ: no
  12. DST active: n/a

为Linux 虚拟机设置时区_env tz asia/shanghai 在虚拟机里怎么执行-CSDN博客

通过网上的方法使用tzselect命令选择时区,想改成CST时区的,但是localtime依然不对,显示UTC。

但是软连接后可以了,软连接命令一定要加+f 强制执行,否则依然不生效。

ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

时区相关说明文件:

Linux 硬件时间(RTC time)、系统时间(UTC时间、Universal time)、本地时间(Local time)、时区(Time zone)与夏令时(DST)解析-CSDN博客

2./dev/sda3 扩容

centos7根目录扩容(根目录在sda3 vgdisplay为空) - 知乎 (zhihu.com)

3.ip错误(实际上是出现了两个env33地址)

systemctl stop NetworkManager

systemctl disable NetworkManager

systemctl restart network

并在网卡配置文件里写入一行 NM_CONTROLLED="no"

ifconfig

Centos 7 出现2个 inet 解决方法_ens33有两个inet-CSDN博客

4.扩容

centos7根目录扩容(根目录在sda3 vgdisplay为空) - 知乎 (zhihu.com)

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/代码探险家/article/detail/795359
推荐阅读
相关标签
  

闽ICP备14008679号