您现在的位置是:主页 > news > 自己怎么制作网站/谷歌seo教程

自己怎么制作网站/谷歌seo教程

admin2025/5/3 14:24:41news

简介自己怎么制作网站,谷歌seo教程,做网站数据库要哪一种好,盱眙在仕德伟做网站的有几家在针对Asp.net的探针很少,所以闲来无事就简单的写了一个,读取的信息如下 服务器基本信息服务器计算机名http://localhost/服务器IP地址127.0.0.1服务器域名localhost服务器端口80服务器IIS版本Microsoft-IIS/6.0本文件所在文件夹E:\downCode\ServerInfo\…

自己怎么制作网站,谷歌seo教程,做网站数据库要哪一种好,盱眙在仕德伟做网站的有几家在针对Asp.net的探针很少,所以闲来无事就简单的写了一个,读取的信息如下 服务器基本信息服务器计算机名http://localhost/服务器IP地址127.0.0.1服务器域名localhost服务器端口80服务器IIS版本Microsoft-IIS/6.0本文件所在文件夹E:\downCode\ServerInfo\…

在针对Asp.net的探针很少,所以闲来无事就简单的写了一个,读取的信息如下

服务器基本信息
服务器计算机名http://localhost/
服务器IP地址127.0.0.1
服务器域名localhost
服务器端口80
服务器IIS版本Microsoft-IIS/6.0
本文件所在文件夹E:\downCode\ServerInfo\
服务器操作系统Microsoft Windows NT 5.2.3790 Service Pack 1
系统所在文件夹C:\WINDOWS\system32
服务器脚本超时时间30000秒
服务器的语言种类Chinese (People's Republic of China)
.NET Framework 版本2.050727.42
服务器当前时间2007-5-25 9:32:55
服务器IE版本7.0000
服务器上次启动到现在已运行66分钟
逻辑驱动器A:\C:\D:\E:\F:\G:\H:\I:\
CPU 总数2
CPU 类型x86 Family 15 Model 3 Stepping 4, GenuineIntel
虚拟内存61784M
当前程序占用内存6.44M
Asp.net所占内存60.46M
Asp.net所占CPU4
当前Session数量0
当前SessionIDgp3n1u55f2qcse55xo3q2x45
当前系统用户名NETWORK SERVICE

由于还不是很成熟,所以暂时开源供大家讨论,希望能得到高手的补充!暂定版本0.90

以下是源码部分

 1None.gif
 2ExpandedBlockStart.gif    /// <summary>
 3InBlock.gif    /// Asp.net服务器探针,Power by 51aspx.com
 4InBlock.gif    /// 作者liudao,51aspx.com版权所有 转载请保留版权信息
 5ExpandedBlockEnd.gif    /// </summary>
 6None.gifpublicpartial class_Default : System.Web.UI.Page
 7ExpandedBlockStart.gif    {
 8InBlock.gif        protected void Page_Load(object sender, EventArgs e)
 9ExpandedSubBlockStart.gif        {
10InBlock.gif            if (!IsPostBack)
11ExpandedSubBlockStart.gif            {
12ExpandedSubBlockStart.gif         /// <summary>
13InBlock.gif          /// 取应用程序路径
14ExpandedSubBlockEnd.gif         /// </summary>
15InBlock.gif
16InBlock.gif        lbServerName.Text= "http://" + HttpContext.Current.Request.Url.Host + HttpContext.Current.Request.ApplicationPath;
17InBlock.gif        lbIp.Text = Request.ServerVariables["LOCAl_ADDR"];
18InBlock.gif        lbDomain.Text = Request.ServerVariables["SERVER_NAME"].ToString();
19InBlock.gif        lbPort.Text = Request.ServerVariables["Server_Port"].ToString();
20InBlock.gif        lbIISVer.Text = Request.ServerVariables["Server_SoftWare"].ToString();
21InBlock.gif        lbPhPath.Text = Request.PhysicalApplicationPath;
22InBlock.gif        lbOperat.Text = Environment.OSVersion.ToString();
23InBlock.gif        lbSystemPath.Text = Environment.SystemDirectory.ToString();
24InBlock.gif        lbTimeOut.Text = (Server.ScriptTimeout/1000).ToString() + "秒";
25InBlock.gif        lbLan.Text =  CultureInfo.InstalledUICulture.EnglishName;
26ExpandedSubBlockStart.gif        lbAspnetVer.Text = string.Concat(new object[] { Environment.Version.Major, ".", Environment.Version.Minor, Environment.Version.Build, ".", Environment.Version.Revision });
27InBlock.gif        lbCurrentTime.Text = DateTime.Now.ToString();
28InBlock.gif               
29InBlock.gif                RegistryKey key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Internet Explorer\Version Vector");
30InBlock.gif        lbIEVer.Text = key.GetValue("IE", "未检测到").ToString();
31InBlock.gif        lbServerLastStartToNow.Text = ((Environment.TickCount / 0x3e8)/60).ToString() + "分钟";
32InBlock.gif
33InBlock.gif        string[] achDrives = Directory.GetLogicalDrives();
34InBlock.gif        for (int i = 0; i < Directory.GetLogicalDrives().Length - 1; i++)
35ExpandedSubBlockStart.gif        {
36InBlock.gif            lbLogicDriver.Text = lbLogicDriver.Text + achDrives[i].ToString();
37ExpandedSubBlockEnd.gif        }
38InBlock.gif
39InBlock.gif        //ManagementClass diskClass = new ManagementClass("NUMBER_OF_PROCESSORS");
40InBlock.gif        lbCpuNum.Text = Environment.GetEnvironmentVariable("NUMBER_OF_PROCESSORS").ToString();
41InBlock.gif        lbCpuType.Text = Environment.GetEnvironmentVariable("PROCESSOR_IDENTIFIER").ToString();
42InBlock.gif        lbMemory.Text = (Environment.WorkingSet / 1024).ToString()+ "M";
43InBlock.gif        lbMemoryPro.Text = ((Double)GC.GetTotalMemory(false) / 1048576).ToString("N2") + "M";
44InBlock.gif        lbMemoryNet.Text = ((Double)Process.GetCurrentProcess().WorkingSet64 / 1048576).ToString("N2") + "M";
45InBlock.gif        lbCpuNet.Text = ((TimeSpan)Process.GetCurrentProcess().TotalProcessorTime).TotalSeconds.ToString("N0");
46InBlock.gif        lbSessionNum.Text = Session.Contents.Count.ToString();
47InBlock.gif        lbSession.Text = Session.Contents.SessionID;
48InBlock.gif                lbUser.Text = Environment.UserName;
49InBlock.gif
50ExpandedSubBlockEnd.gif            }
51ExpandedSubBlockEnd.gif        }
52ExpandedBlockEnd.gif    }

注意:当前版本只支持Asp.net2.0环境


本文转自 liudao 博客园博客,原文链接:http://www.cnblogs.com/liudao/archive/2007/05/25/759346.html,如需转载请自行联系原作者