linux Centos 7 debug 记录

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.

时间、时区显示命令

[root@hadoop01 ~]# date 
Wed Mar 13 09:06:35 CST 2024
[root@hadoop01 ~]# timedatectl
Warning: Ignoring the TZ variable. Reading the system's time zone setting only.

      Local time: Wed 2024-03-13 01:06:39 UTC
  Universal time: Wed 2024-03-13 01:06:39 UTC
        RTC time: Wed 2024-03-13 01:06:39
       Time zone: n/a (UTC, +0000)
     NTP enabled: yes
NTP synchronized: yes
 RTC in local TZ: no
      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)

  • 9
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值