1.登录Zabbix服务器(我这边为了方便修改文件,使用sftp软件登录,对liunx不熟悉的可以用这个方法)
2、/etc/apache2/conf-available目录下
3、修改zabbix.conf文件(可以先复制一份修改文件名备份一下)
4、将图中两处 timezone的值改为 Asia/Shanghai
5、然后重启apache2服务即可。
sudo systemctl restart apache2.service
参考文档:https://support.zabbix.com/browse/ZBX-7820
以下为参考内容:
The problem is people follow old server setup instructions and edit php.ini, when they should edit
/etc/apache2/conf-available/zabbix.conf
And there is two places where they need to change the time zone php5 and php7 (in /etc/apache2/conf-available/zabbix.conf)
Server setup instructions need to be updated.