在安装部署Zabbix的过程中遇到一些问题,在这里做一个记录,方便以后查阅~ 问题一: 问题描述:zabbix前端设置时报错提示时区未设置,如下图: 解决方法: cd /etc/httpd/conf.d vim zabbix.conf 设置:php_value date.timezone Asia/ ...
分类:
其他好文 时间:
2020-01-30 21:07:03
阅读次数:
80
修正时区 rm -rf /etc/localtime #删除当前默认时区www.kwx.gd ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime #复制替换默认时区为上海 手动修正时间 date -s '09:16:00 2013-01-21 ...
分类:
其他好文 时间:
2020-01-30 17:22:13
阅读次数:
94
查看数据库时区 mysql> show variables like '%time_zone%'; + + + | Variable_name | Value | + + + | system_time_zone | CST | | time_zone | CST -07:00| + + + 2 r ...
分类:
数据库 时间:
2020-01-30 14:38:59
阅读次数:
99
更改时区原文:https://www.cnblogs.com/st-jun/p/7737188.html 更改时间原文:https://www.cnblogs.com/suiyueshentou/p/7798340.html 一、手动修改 1. date命令:查看当前时间 2. date -s 时分 ...
分类:
系统相关 时间:
2020-01-30 12:53:51
阅读次数:
104
import time # print(time.time()) # time.sleep(3) # print(help(time)) # print(time.gmtime()) # 中国24个时区 北京+8 结构化时间time.struct_time(tm_year=2020, tm_mon= ...
分类:
其他好文 时间:
2020-01-28 17:33:42
阅读次数:
73
1. yum install -y ntpdate 2. cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime ntpdate us.pool.ntp.org 或 ntpdate time.windows.com 把当前时区调整为上海就是+8区 然后 ...
分类:
其他好文 时间:
2020-01-28 17:29:35
阅读次数:
84
错误原因:mysql识别时区出现错误,这是因为访问的url中没有指定时区为UTC 出错误的url: spring.datasource.url=jdbc:mysql://127.0.0.1:3306/springbootdemo?useUnicode=true&characterEncoding=u ...
分类:
数据库 时间:
2020-01-27 00:21:26
阅读次数:
103
错误界面 IDEA连接mysql,地址,用户名,密码,数据库名,全都配置好了,点测试连接,咔!不成功! 界面是这样的, 翻译过来就是:服务器返回无效时区。进入“高级”选项卡,手动设置“serverTimezone”属性。 看起来是时区出了问题。时区怎么会出问题?坑真多。网上搜了各种解决办法,琳琅满目 ...
分类:
数据库 时间:
2020-01-26 19:29:02
阅读次数:
278
Manjaro 与 Windows 双系统时间相差8小时 产生原因: Windows 将本地硬件时间作为设定时区(如 UTC+8)的区时,而 Linux 默认将其作为 UTC 时间。 解决方式: 让 Manjaro 不要将其作为 UTC 时间: ...
分类:
编程语言 时间:
2020-01-23 13:54:11
阅读次数:
94
time 模块 提供了处理时间和表示之间转换的功能 获取当前时间戳 时间戳:从0时区的1970年1月1日0时0分0秒,到所给定日期时间的时间,浮点秒数,或者毫秒整数 获取方式: 获取时间元组 很多python时间函数将时间处理为9个数字的元组 获取格式化的事件 秒 可读时间 时间元组 可读时间 自定 ...
分类:
编程语言 时间:
2020-01-21 19:44:55
阅读次数:
141