分类 电脑 下的文章

在IIS里为fastcgi设置超时时间 - activityTimeout - requestTimeout

现象:Windows 2019,IIS配置了fastcgi来运行php网站程序。帝国CMS在刷新数据表时,返回“服务器错误”,网站日志里的错误代码是443。

尝试:可以通过IIS管理器,增加fastcgi的活动超时时间值(默认30秒)和请求超时时间值(默认90秒),如将这两都增加到300秒或以上。

参考:https://docs.microsoft.com/en-us/iis/configuration/system.webserver/fastcgi/

用vboxmanage将XenServer导出的.xva文件转为.vdi文件

问题:线上VPS主机商使用的是XenServer平台,VPS的CentOS7启动失败,说要重装系统,但同时也提供了XenServer的导出文件.xva。

尝试:

  1. 因为本地没有XenServer运行环境,仅有VirtualBox
  2. 通过 xva2img.sh 的转换脚本,将.xva文件转换成.img文件
  3. 再将.img文件用vboxmanage.exe转为.vdi文件
  4. 在VirtualBox虚拟机里挂载该.vdi文件

参考:https://github.com/dubcl/xva2img

WAS服务启动失败 - 终结点映射器中没有更多的终结点可用 - Windows Process Activation Service

环境:苹果电脑安装的Windows 10专业版,
问题:添加IIS后无法启动网站,提示依赖的服务无法启动。尝试手动启动WAS - Windows Process Activation Service,失败,提示错误“终结点映射器中没有更多的终结点可用”。

尝试:删除已安装的“金山毒霸”,重启机子后,好像可正常启动IIS Web服务了。

参考:

学做主机客服

在相亲的“通气见面会”上,一个老奶奶问我,“尔里下工资几多,吖冇一万?”我答得有些慌乱,“冇。差一大截,乃里有嘅多。”说完我心一沉,心想老奶奶这么问,怕是觉得我配不上她的孙女了。事后,我心有不甘,但我挣的工资是没人家多,技不如人。想到小的如吃饭的筷子、大的如航天火箭、抽象的如语言文化,这些都是知识不断积累和创新的成果,我总结了自己的工作经验,写成了《学做主机客服》这短文。短文虽少少几句话,但希望能作抛砖引玉之言,为他人成功之路砌上一个台阶。他人若因此受益,能一传十,积小益成大利,我会很高兴的。本人才疏学㳀,难免文中有错误的地方,请您不吝指正,谢谢。《学做主机客服》短文:https://ye.anqun.org 如有年轻貌美女子想学,鄙人定能亲身教授,手把手地……

用 dism 更换 Windows 2016 的版本

  1. slmgr -xpr # 尝试查看当前的激活信息。出错:Error: 0xC004F069 On a computer running Microsoft Windows non-core edition, run 'slui.exe 0x2a 0xC004F069' to display the error text.
  2. slui.exe 0x2a 0xC004F069 # 查看具体的错误信息,You can also contact Microsoft by phone to help resolve this problem.[Expanded Information]Code:0xC004F069 Description:The Software Licensing Service reported that the product SKU is not found.
  3. DISM.exe /Online /Get-TargetEditions # 查看可以升级到哪个版本
  4. DISM /online /Set-Edition:ServerDatacenter /ProductKey:CB7KF-BWN84-R7R2Y-793K2-8XDDG /AcceptEula # 本例是升级到 ServerDatacenter 版本
C:\Users\Administrator> DISM /online /Set-Edition:ServerDatacenter /ProductKey:CB7KF-BWN84-R7R2Y-793K2-8XDDG /AcceptEula

Deployment Image Servicing and Management tool
Version: 10.0.14393.0

Image Version: 10.0.14393.0

Starting to update components...
Starting to install product key...
Finished installing product key.

Removing package Microsoft-Windows-ServerDatacenterEvalEdition~31bfd364e35~amd64~~10.0.14393.0
[==========================100.0%==========================]
Finished updating components.

Starting to apply edition-specific settings...
Restart Windows to complete this operation.
Do you want to restart the computer now? (Y/N)

参考: