2020年5月

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)

参考:

danted 的多IP多端口批量设置

需求:如果机子上有多个IP地址,需要设置socks5的不同IP不同端口连接,哪个IP连接就用哪个IP出口。

过程:

  1. https://github.com/Lozy/danted/blob/master/README_CN.md # 这里有一键安装脚本文件,可以实现不同IP同一端口连接,哪个IP连接就用哪个IP出口。如其中提到生成配置文件内容的:

    # Generate interface ${ipaddr}
    internal: ${ipaddr}  port = ${port}
    external: ${ipaddr}
  2. awk -v RS="2016" '{n+=1;printf $0n}' sk.txt # 如果需要使用不同的端口,可使用awk替换固定的端口为自增的端口号
  3. ulimit -n 16384 # 如果IP很多,可能需要新增打开文件数的限制数值

参考: