zabbix时区设置 发表于 2018-06-28 | 分类于 zabbix 1.4 zabbix 时区设置 修改Linux 服务器时区 12[root@ct7 ~]# mv /etc/localtime /etc/localtime-GMT[root@ct7 ~]# cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 修改Zabbix 时区 12345678910111213141516171819202122232425[root@ct7 zabbix]# vim /etc/php.ini[Date]; Defines the default timezone used by the date functions; http://php.net/date.timezonedate.timezone = Asia/Shanghai[root@ct7 zabbix]# vim /etc/httpd/conf.d/zabbix.conf <IfModule mod_php5.c> php_value max_execution_time 300 php_value memory_limit 128M php_value post_max_size 16M php_value upload_max_filesize 2M php_value max_input_time 300 php_value always_populate_raw_post_data -1 php_value date.timezone Asia/Shanghai </IfModule>[root@ct7 zabbix]# more restart_zabbix.sh#restart zabbix servicesystemctl stop httpdsystemctl stop zabbix-serversystemctl stop zabbix-agentsystemctl start zabbix-serversystemctl start httpdsystemctl start zabbix-agent