找到/etc/php.ini 修改;date.timezone = 为 date.timezone = PRC 修改时区为中国 输入systemctl restart httpd.service重启apache php配置完成。