@{
ViewBag.Title = "Index";
Layout = "~/Views/Shared/_Index.cshtml";
}
@inject Microsoft.AspNetCore.Hosting.IWebHostEnvironment env
服务器名称 |
@Environment.MachineName
|
总内存 |
|
操作系统 |
@System.Runtime.InteropServices.RuntimeInformation.OSDescription |
系统架构 |
@System.Runtime.InteropServices.RuntimeInformation.OSArchitecture |
外网IP |
|
环境变量 |
@Html.Raw(env.EnvironmentName) |
ContentRootPath |
@Html.Raw(env.ContentRootPath)
|
WebRootPath |
@Html.Raw(env.WebRootPath) |
.NET版本 |
@Html.Raw(System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription)
|
启动时间 |
@System.Diagnostics.Process.GetCurrentProcess().StartTime.ToString("yyyy-MM-dd HH:mm:ss")
|