zoukankan
html css js c++ java
asp.net获取服务器信息
String serverOS
=
Environment.OSVersion.ToString();
String CpuSum
=
Environment.GetEnvironmentVariable(
"
NUMBER_OF_PROCESSORS
"
);
//
CPU个数:
String CpuType
=
Environment.GetEnvironmentVariable(
"
PROCESSOR_IDENTIFIER
"
);
//
CPU类型:
String ServerSoft
=
Request.ServerVariables[
"
SERVER_SOFTWARE
"
];
//
信息服务软件:
String MachineName
=
Server.MachineName;
//
服务器名
String ServerName
=
Request.ServerVariables[
"
SERVER_NAME
"
];
//
服务器域名
String ServerPath
=
Request.ServerVariables[
"
APPL_PHYSICAL_PATH
"
];
//
虚拟服务绝对路径
String ServerNet
=
"
.NET CLR
"
+
Environment.Version.ToString();
//
DotNET 版本
String ServerArea
=
(DateTime.Now
-
DateTime.UtcNow).TotalHours
>
0
?
"
+
"
+
(DateTime.Now
-
DateTime.UtcNow).TotalHours.ToString() : (DateTime.Now
-
DateTime.UtcNow).TotalHours.ToString();
//
服务器时区
String ServerTimeOut
=
Server.ScriptTimeout.ToString();
//
脚本超时时间
String ServerStart
=
((Double)System.Environment.TickCount
/
3600000
).ToString(
"
N2
"
);
//
开机运行时长
//
AspNet CPU时间
String ServerSessions
=
Session.Contents.Count.ToString();
//
Session总数
String ServerApp
=
Application.Contents.Count.ToString();
//
Application总数
String ServerCache
=
Cache.Count.ToString();
//
应用程序缓存总数
//
应用程序占用内存
//
String ServerFso = Check("Scripting.FileSystemObject");
//
FSO 文本文件读写
String ServerTimeOut
=
Server.ScriptTimeout.ToString()
+
"
毫秒
"
;
//
本页执行时间
查看全文
相关阅读:
自动以管理员身份运行批处理(bat)文件
apache+php完美解决301重定向的两种方法
Apache限制访问某目录或某文件,限制允许指定IP
Apache 禁用IP 访问 和 HTTP 跳转 HTTPS
301重定向代码合集(iis,asp,php,asp.net,apache)
以太坊中的gas、gas price、gas limit到底是什么
解决mysql:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO/YES)
linux/kde下chrome浏览器缺失最小化,最大化按钮的解决方案
python自动化--语言基础三字典、函数、全局/局部变量
python自动化--语言基础二运算符、格式化输出、条件语句、循环语句、列表、元组
原文地址:https://www.cnblogs.com/wyxy2005/p/1386499.html
最新文章
vue写组件时的命名规范
vue注册全局组件
插件时间格式处理moment如何使用
axios发送请求时携带token
配置elementuI菜单
es7如何使用await发送请求
解构的用法
如何将axios封装成一个插件
Codeforces Round #642 (Div. 3)
Codeforces Round #641 (Div. 2)
热门文章
AtCoder Beginner Contest 167
Codeforces Round #640 (Div. 4)
Testing Round #16 (Unrated)
Codeforces Round #639 (Div. 2)
AtCoder Beginner Contest 166
AtCoder Beginner Contest 165
Codeforces Round #638 (Div. 2)
Educational Codeforces Round 86 (Div. 2)
PHP中获取来访者IP的方法
php获取所有复选框的值
Copyright © 2011-2022 走看看