serveros = environment.osversion.tostring();
//作業系統:
cpusum = environment.getenvironmentvariable("number_of_processors");
//cpu個數:
cputype = environment.getenvironmentvariable("processor_identifier");
//cpu型別:
serversoft = request.servervariables["server_software"];
//資訊服務軟體:
machinename = server.machinename;
//伺服器名
servername = request.servervariables["server_name"];
//伺服器網域名稱
//虛擬服務絕對路徑
servernet = ".net clr " + environment.version.tostring();
//.net 版本
serverarea = (datetime.now - datetime.utcnow).totalhours > 0 ? "+" + (datetime.now - datetime.utcnow).totalhours.tostring() : (datetime.now - datetime.utcnow).totalhours.tostring();
//伺服器時區
servertimeout = server.scripttimeout.tostring();
//指令碼超時時間
serverstart = ((double)system.environment.tickcount / 3600000).tostring("n2");
//開機執行時長
prstart = getprstart();
//程序開始時間
aspnetn = getaspnetn();
//aspnet 記憶體占用
aspnetcpu = getaspnetcpu();
//aspnet cpu時間
serversessions = session.contents.count.tostring();
//session總數
servercache = cache.count.tostring();
//應用程式快取總數
//應用程式占用記憶體
serverfso = check("scripting.filesystemobject");
//fso 文字檔案讀寫
servertimeout = server.scripttimeout.tostring() + "毫秒";
//本頁執行時間
獲取伺服器資訊
label1.text 伺服器名稱 server.machinename 伺服器名稱 label2.text request.servervariables local addr 伺服器ip位址 label3.text 伺服器網域名稱 request.servervariables server n...
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...