<table cellspacing="1" cellpadding="3" width="90%" align="center" bgcolor="#ffffff"
border="0">
<tbody>
<tr>
<td class="th1" align="center" colspan="2" height="25">
服务器信息统计
</td>
</tr>
<tr bgcolor="#f9fbf0">
<td style="height: 24px; width: 50%; text-align: left;">
<strong>服务器名</strong>:<%=System.Environment.MachineName%></td>
</tr>
<tr bgcolor="#f9fbf0">
<td width="50%" style="height: 24px; text-align: left;">
<b>服务器端口:</b><%= HttpContext.Current.Request.ServerVariables["Server_Port"].ToString() %></td>
</tr>
<tr bgcolor="#f9fbf0">
<td style="height: 23px; width: 50%; text-align: left;">
<b>脚本解释引擎:</b><%=System.Environment.Version%></td>
</tr>
<tr bgcolor="#f9fbf0">
<td width="50%" style="height: 23px; text-align: left;">
<b> 站点物理路径:</b><%=HttpContext.Current.Request.PhysicalApplicationPath.ToString() %></td>
</tr>
<tr bgcolor="#f9fbf0">
<td style="height: 23px; width: 50%; text-align: left;">
<b>服务器CPU个数:</b><%=System.Environment.ProcessorCount %>
</td>
</tr>
<tr bgcolor="#f9fbf0">
<td width="50%" style="height: 23px; text-align: left;">
<b>服务器IIS版本:</b><%=Request.ServerVariables["SERVER_SOFTWARE"]%></td>
</tr>
<tr bgcolor="#f9fbf0">
<td style="width: 50%; height: 23px; text-align: left;">
<b>开机运行时长</b>:<%=(System.Environment.TickCount/3600000).ToString("N2")%>
小时
</td>
</tr>
<tr bgcolor="#f9fbf0">
<td width="50%" style="height: 25px; text-align: left;">
<b> 服务器时间:</b><%=DateTime.Now.ToString() %></td>
</tr>
<tr bgcolor="#f9fbf0">
<td width="50%" style="height: 23px; text-align: left;">
<b> 服务器变量:</b>Session(<%=Session.Contents.Count%>) Application(<%
if (Application.Contents.Count > 2)
{
Response.Write(Application.Contents.Count - 2);
}
else
{
Response.Write(Application.Contents.Count);
}
%>)</td>
</tr>
<tr bgcolor="#f9fbf0">
<td colspan="2" style="height: 23px; text-align: left;">
<b>服务器操作系统:</b><span>
<%=System.Environment.OSVersion.ToString()%>
</span>
</td>
</tr>
</tbody>
</table>
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· winform 绘制太阳,地球,月球 运作规律
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· AI 智能体引爆开源社区「GitHub 热点速览」
· Manus的开源复刻OpenManus初探
· 写一个简单的SQL生成工具