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.