發布時間:2020-11-30 10:44 作者:獨孤劍 閱讀:1223
<%@ Page Language="C#" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> </head> <body> <% Response.Write("服務器機器名:" + Server.MachineName); Response.Write("<br/>"); Response.Write("服務器IP地址:" + Request.ServerVariables["LOCAL_ADDR"]); Response.Write("<br/>"); Response.Write("服務器域名:" + Request.ServerVariables["SERVER_NAME"]); Response.Write("<br/>"); Response.Write(".NET解釋引擎版本:" + ".NET " + Environment.Version); Response.Write("<br/>"); Response.Write("服務器操作系統版本:" + Environment.OSVersion.ToString()); Response.Write("<br/>"); Response.Write("服務器IIS版本:" + Request.ServerVariables["SERVER_SOFTWARE"]); Response.Write("<br/>"); Response.Write("HTTP訪問端口:" + Request.ServerVariables["SERVER_PORT"]); Response.Write("<br/>"); Response.Write("虛擬目錄的絕對路徑:" + Request.ServerVariables["APPL_RHYSICAL_PATH"]); Response.Write("<br/>"); Response.Write("執行文件的絕對路徑:" + Request.ServerVariables["PATH_TRANSLATED"]); Response.Write("<br/>"); Response.Write("Session總數:" + Session.Contents.Count.ToString()); Response.Write("<br/>"); Response.Write("Application總數:" + Application.Contents.Count.ToString()); Response.Write("<br/>"); Response.Write("緩存Cache總數:" + Cache.Count.ToString()); Response.Write("<br/>"); Response.Write("服務器主機:" + Request.ServerVariables["HTTP_HOST"]); Response.Write("<br/>"); Response.Write("服務器區域語言:" + Request.ServerVariables["HTTP_ACCEPT_LANGUAGE"]); Response.Write("<br/>"); Response.Write("訪客信息:" + Request.ServerVariables["HTTP_USER_AGENT"]); Response.Write("<br/>"); Response.Write("服務器CPU個數:" + System.Environment.GetEnvironmentVariable("NUMBER_OF_PROCESSORS")); Response.Write("<br/>"); Response.Write("服務器CPU類型:" + System.Environment.GetEnvironmentVariable("PROCESSOR_IDENTIFIER")); Response.Write("<br/>"); %> </body> </html>
微信打賞, 微信掃一掃
支付寶打賞, 支付寶掃一掃
如果文章對您有幫助,歡迎給作者打賞