当前位置:首页 > 技术问答

问题描述

PHP调试的时候出现了警告:It is not safe to rely on the system解决方法,其实就是时区设置不正确造成的,本文提供了3种方法来解决这个问题。

Warning: date(): It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected ‘Asia/Chongqing’ for ‘CST/8.0/no DST’ instead Warning: strtotime(): It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected ‘Asia/Chongqing’ for ‘CST/8.0/no DST’ instead Warning: date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Chongqing' for 'CST/8.0/no DST' instead in <b>/home/ftp/n/nimaboke/include/lib/function.base.php


问题分析

“系统管理员设置了系统策略,禁止进行此项安装”的解决办法

问题描述

安装office2007的时候出现以下故障:“系统管理员设置了系统策略,禁止进行此项安装”。


解决办法

1、组策略方法

windows开始菜单,运行里面输入gpedit.msc打开组策略,在“计算机配置”→管理模板→windows组件→windows installer,右边 第一项就是禁用windows installer。把它改成 “未配置”或者“已禁用”就可以了。


2、注册表方法

VMware ESXi 6.5上传文件很慢

问题描述

从本机复杂一个6G左右的虚拟硬盘到一台新安装的ESXi6.5,速度奇慢无比,提示需要30分钟。


原因分析

通过搜索,得知是由于VMware在其ESXI 6.5中导入了一个新的SATA驱动vmw-ahci,这个新的驱动相比之前的驱动能够支持更多硬件,但是会引起一些问题。


解决方法

禁用vmw-ahci就好。

问题描述:

Adobe Reader自动更新后,安装快完成时出现如下提示:

无法将数值DisableExceptionChainValidation写入键\SOFTWARE\Microsoft\ WindowsNT\CurrentVersion\Image File Execution Options\AcroRd32Info.exe。请验证您对该键拥有足够的访问权限,或者与您的技术支持人员联系。

原因分析:

这个问题是因为权限问题而引起的。

CISCO VPN报错“Failed to initialize connection subsystem”的解决方法

问题描述

最近把系统换成了windows 10,可以正常安装Cisco VPN(Cisco VPN版本anyconnect-win-3.0.5080-pre-deploy-k9),启动后出现“Failed to initialize connection subsystem”错误。


解决方法

“右击”,打开VPN的“属性”---“兼容性”,“兼容模式”中勾上“以兼容模式运行这个程序”,下拉菜单选择“windows 7”,并勾上“以管理员身份启动”,就可以正常启动了。

Visual C++(VC)运行库合集

问题描述1

Windows系统有时候运行某个程序(或者安装某个程序)的时候会报错,错误提示:“由于应用程序配置不正确,应用程序未能启动.重新安装应用程序可能会纠正这个问题。”


问题描述2

Visual C++ 2015(VC14)未安装的错误报错:“XXX - 无法找到组件”,“没有找到VCRUNTIME140.dll,因此这个应用程序未能启动。重新安装应用程序可能会修复此问题。”

这个错误提示,一般是由于没有安装VC++运行库才会出现的,只要安装下运行库就可以了。


问题分析解决

最近碰到比较多的报错:“无法启动此程序,因为计算机丢api-ms-win-crt-runtime-l1-1-0.dll。尝试重新安装改程序以解决此问题”

Zabbix无法选择中文语言包

问题描述

通过Zabbix Web后台无法选择中文语言包,提示”You are not able to choose some of the languages, because locales for them are not installed on the web server.“


解决方法

1、通过命令安装中文语言包,SSH连接到zabbix,这边使用的是虚拟化版本,账号是root密码是zabbix。

[root@appliance ~]# dnf install langpacks-zh_CN.noarch


2、刷新Zabbix Web后台,这个时候可以选择简体中文,点一下更新即可