修改 Ganglia 监控 Grid Report timezone 时区 为 东八区 +8 PRC

Ganglia 监控 Grid Report timezone 默认时区 为 零时区 +0

现在要修改为 东八区 +8
具体操作如下


modify ganglia-web report timezone +0 --> +8

vim /apps/svr/httpd-2.4.48/htdocs/ganglia/header.php

// add timezone GMT+8
ini_set('date.timezone', 'PRC');

详细记录:

  • before add
<?php
session_start();

if (isset($_GET['date_only'])) {
  $d = date("r");
  echo $d;
  exit(0);
}

  • after add
<?php
session_start();

// add timezone GMT+8
ini_set('date.timezone', 'PRC');

if (isset($_GET['date_only'])) {
  $d = date("r");
  echo $d;
  exit(0);
}
  • then restart gmetad
[root@ganglia-oe-101 ~]# /apps/sh/gmetad restart
Shutting down GANGLIA gmetad:                              [  OK  ]
Starting GANGLIA gmetad:                                   [  OK  ]
[root@ganglia-oe-101 ~]#

相关推荐

  1. linux修改CST

    2023-12-09 00:26:02       23 阅读
  2. 【无标题】springboot ,少8小时

    2023-12-09 00:26:02       53 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2023-12-09 00:26:02       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2023-12-09 00:26:02       101 阅读
  3. 在Django里面运行非项目文件

    2023-12-09 00:26:02       82 阅读
  4. Python语言-面向对象

    2023-12-09 00:26:02       91 阅读

热门阅读

  1. 顺序查找(数据结构实训)

    2023-12-09 00:26:02       56 阅读
  2. 第56天:django学习(五)

    2023-12-09 00:26:02       55 阅读
  3. using meta-SQL 使用元SQL 六

    2023-12-09 00:26:02       44 阅读
  4. 鸿蒙(HarmonyOS)应用开发——管理组件状态

    2023-12-09 00:26:02       61 阅读