我已经将软件迁移到一台非常慢的服务器上。由于系统超时,某些软件服务拒绝启动。如何将超时时间从默认的 30 秒(?)增加到几分钟?
先感谢您!
答案1
1. Click Start, click Run, type regedit, and then click OK.
2. Locate and then click the following registry subkey:
- HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control
3. In the right pane, locate the ServicesPipeTimeout entry.
**Note**: If the ServicesPipeTimeout entry does not exist, you must create it. To do this, follow these steps:
- On the Edit menu, point to New, and then click DWORD Value.
- Type ServicesPipeTimeout, and then press ENTER.
4. Right-click ServicesPipeTimeout, and then click Modify.
5. Click Decimal, type 60000, and then click OK.
- This value represents the time in milliseconds before a service times out.
6. Restart the computer.
答案2
这是一个简单的单行命令,可以从升高PowerShell 提示符,将待处理服务超时设置为 3 分钟:
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control" -Name ServicesPipeTimeout -Value 180000 -Type DWord
答案3
请查看可视化答案appuals.com