当前位置: 首页 > news >正文

zabbix监控端界面时间与服务器时间不对应

1. 修改系统时间

# tzselect
Please select a continent, ocean, "coord", or "TZ".1) Africa2) Americas3) Antarctica4) Asia5) Atlantic Ocean6) Australia7) Europe8) Indian Ocean9) Pacific Ocean
10) coord - I want to use geographical coordinates.
11) TZ - I want to specify the time zone using the Posix TZ format.
#? 4
Please select a country whose clocks agree with yours.1) Afghanistan		  18) Iraq		    35) Pakistan2) Antarctica		  19) Israel		    36) Palestine3) Armenia		  20) Japan		    37) Philippines4) Azerbaijan		  21) Jordan		    38) Qatar5) Bahrain		  22) Kazakhstan	    39) Russia6) Bangladesh		  23) Korea (North)	    40) Saudi Arabia7) Bhutan		  24) Korea (South)	    41) Singapore8) Brunei		  25) Kuwait		    42) Sri Lanka9) Cambodia		  26) Kyrgyzstan	    43) Syria
10) China		  27) Laos		    44) Taiwan
11) Cyprus		  28) Lebanon		    45) Tajikistan
12) East Timor		  29) Macau		    46) Thailand
13) Georgia		  30) Malaysia		    47) Turkmenistan
14) Hong Kong		  31) Mongolia		    48) United Arab Emirates
15) India		  32) Myanmar (Burma)	    49) Uzbekistan
16) Indonesia		  33) Nepal		    50) Vietnam
17) Iran		  34) Oman		    51) Yemen
#? 10
Please select one of the following time zone regions.
1) Beijing Time
2) Xinjiang Time
#? 1The following information has been given:ChinaBeijing TimeTherefore TZ='Asia/Shanghai' will be used.
Selected time is now:	Tue Nov 12 23:35:13 CST 2024.
Universal Time is now:	Tue Nov 12 15:35:13 UTC 2024.
Is the above information OK?
1) Yes
2) No
#? 1You can make this change permanent for yourself by appending the lineTZ='Asia/Shanghai'; 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:
Asia/Shanghai

2. 修改时钟源

在这里插入图片描述

systemctl  start chronyd
systemctl  enable chronyd
systemctl status chronyd

3. 修改httpd和zabbix配置文件

在这里插入图片描述vi /etc/php.ini在这里插入图片描述

4. 重启服务

# systemctl restart httpd
# systemctl restart zabbix-server

4. zabbix 页面配置

在这里插入图片描述

在这里插入图片描述

点击更新之后,刷新时间
在这里插入图片描述

http://www.lryc.cn/news/485125.html

相关文章:

  • 端对端加密是如何通过SDK防御实现的?
  • Flutter:input输入框
  • RabbitMQ 与 PHP Swoole 实现
  • 【计算机体系架构】 MESI缓冲一致性
  • STM32设计学生宿舍监测控制系统
  • 企业生产环境-麒麟V10(ARM架构)操作系统部署kafka高可用集群
  • awk(常用)
  • Amazon Web Services (AWS)
  • Java EE 技术基础知识体系梳理
  • 【2025最新计算机毕业设计】基于SpringBoot+Vue电脑在线装机指南教程网站【源码+文档】
  • HDFS新增节点和删除datanode节点
  • 数据结构-线性表-具有独立头节点的双向循环链表
  • CSS 响应式设计之媒体查询技术
  • HARCT 2025 分论坛4:智能系统传感、传感器开发和数据融合中的智能数据分析
  • 云计算研究实训室建设方案
  • VRT: 关于视频修复的模型
  • 实习冲刺Day22
  • datawhale2411组队学习之模型压缩技术1:模型剪枝
  • 高防服务器的费用受到哪些原因影响?
  • 中断和异常处理,嵌入式行业的门槛?
  • latex中英文环境中双引号怎么输入
  • 用 Python 从零开始创建神经网络(三):添加层级(Adding Layers)
  • 前端知识点---构造函数(javascript)
  • Nginx 上安装 SSL 证书并启用 HTTPS 访问
  • 谷歌Gemini发布iOS版App,live语音聊天免费用!
  • docker运行ActiveMQ-Artemis
  • 90.选择排序(理论分析)
  • GitLab 如何跨版本升级?
  • 【Fermat】费马小定理
  • NVMe(Non-Volatile Memory Express)非易失性存储器访问和传输协议