终端服务器超出了最大允许连接数
错误信息的英文:
The terminal server has exceeded the maximum number of allowed connections
远程访问服务器时如果遇到这个问题, 可以尝试使用windows的remote desktop.
1. Start + Run
2. mstsc /admin
如果你是管理员的话, 通过这种方式你可以踢掉一个正在连接的用户, 你作为管理员成功登陆远程主机.
关于MSTSC的完整命令行如下:
---------------------------
Remote Desktop Connection Usage
---------------------------
MSTSC [<connection file>] [/v:<server[:port]>] [/admin] [/f[ullscreen]] [/w:<width> /h:<height>] [/public] | [/span] [/multimon] [/migrate] [/edit "connection file"]
"connection file" -- Specifies the name of an .RDP file for the connection.
/v:<server[:port]> -- Specifies the remote computer to which you want to connect.
/admin -- Connects you to the session for administering a server.
/f -- Starts Remote Desktop in full-screen mode.
/w:<width> -- Specifies the width of the Remote Desktop window.
/h:<height> -- Specifies the height of the Remote Desktop window.
/public -- Runs Remote Desktop in public mode.
/span -- Matches the remote desktop width and height with the local virtual desktop, spanning across multiple monitors, if necessary. To span across monitors, the monitors must be arranged to form a rectangle.
/multimon -- Configures the remote desktop session monitor layout to be identical to the current client-side configuration.
/edit -- Opens the specified .RDP connection file for editing.
/migrate -- Migrates legacy connection files that were created with Client Connection Manager to new .RDP connection files.
---------------------------
微软的知识库中有如下的解决方案
To resolve this issue:
If you cannot gain access to the console on the Terminal Services-based server, you may have to ask someone to log off. If there are disconnected sessions, you can log on to those sessions.
- Log on to the Terminal Services-based server locally.
- Click Start, point to Programs, point to Administrative Tools, and then click Terminal Services Manager.
- Click the appropriate Terminal Services-based server. Note the Users Tab in the right pane.
- If there are two remote sessions, right-click one of the users with a Remote Desktop Protocol (RDP) session, and then click Logoff. (A reset also accomplishes this goal, but does not save profile changes.)
If you cannot access the local console, you can run the Terminal Services Administration tool from another computer. Using an Administrator account in the domain, click Start, click Run, type \\terminalservername\c$, and then click OK. Open the Winnt\System32 folder, and then double-click Tsadmin.exe. In Terminal Services Administrator, click your server, and then click the Sessions tab. Right-click the disconnected session, and then click Reset.
NOTE: All data not saved in this session will be lost.
http://support.microsoft.com/?scid=kb%3Ben-us%3B250991&x=11&y=10
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律