label1.text = "伺服器名稱:
"+server.machinename;//
伺服器名稱
label2.text = "
" + request.servervariables["
local_addr
"];//
伺服器ip位址
label3.text = "
伺服器網域名稱:
" + request.servervariables["
server_name
"];//
伺服器網域名稱
label4.text = "
.net解釋引擎版本:
" + "
.net clr
" + environment.version.major + "
." + environment.version.minor + "
." + environment.version.build + "
." + environment.version.revision;//
.net解釋引擎版本
label5.text = "
伺服器作業系統版本:
" + environment.osversion.tostring();//
伺服器作業系統版本
label6.text = "
伺服器iis版本:
" + request.servervariables["
server_software
"];//
伺服器iis版本
label7.text = "
http訪問埠:
" + request.servervariables["
server_port
"];//
http訪問埠
label8.text = "
虛擬目錄的絕對路徑:
" + request.servervariables["
"];//
虛擬目錄的絕對路徑
label9.text = "
執行檔案的絕對路徑:
" + request.servervariables["
path_translated
"];//
執行檔案的絕對路徑
label10.text = "
虛擬目錄session總數:
" + session.contents.count.tostring();//
虛擬目錄session總數
label11.text = "
label12.text = "
網域名稱主機:
網域名稱主機
label13.text = "
伺服器區域語言:
伺服器區域語言
label14.text = "
使用者資訊:
cpu個數:
"+environment.getenvironmentvariable("
number_of_processors
");//
cpu個數
label15.text = "
cpu型別:
" + environment.getenvironmentvariable("
processor_identifier
");//
cpu型別
label16.text = "
" + getprstart();//
程序開始時間
label17.text = "
aspnet 記憶體占用:
" + getaspnetn();//
aspnet 記憶體占用
label18.text = "
" + getaspnetcpu();//
aspnet cpu時間
label19.text = "
" + check("
scripting.filesystemobject
");//
fso 文字檔案讀寫
label20.text = "
應用程式占用記憶體
應用程式占用記憶體
獲取伺服器資訊
serveros environment.osversion.tostring 作業系統 cpusum environment.getenvironmentvariable number of processors cpu個數 cputype environment.getenvironmentva...
PHP獲取伺服器環境資訊
php的php uname 函式 和 server 伺服器和執行環境資訊 echo 伺服器版本和虛擬主機名的字串 server server signature 如 apache 2.4.23 win64 php 5.6.25 server at 127.0.0.1 port 80 echo 作業系...
獲取伺服器資訊的幾個ServerVariables
本機ip request.servervariables remote addr 伺服器名 request.servervariables server name 伺服器ip request.servervariables local addr 伺服器端口 request.servervariabl...