中文字幕在线观看,亚洲а∨天堂久久精品9966,亚洲成a人片在线观看你懂的,亚洲av成人片无码网站,亚洲国产精品无码久久久五月天

java獲取jdk、系統(tǒng)、服務(wù)器等信息

2018-07-20    來(lái)源:open-open

容器云強(qiáng)勢(shì)上線!快速搭建集群,上萬(wàn)Linux鏡像隨意使用
1、獲取jdk信息
System.out.println(System.getProperty("java.version"));     
        System.out.println(System.getProperty("java.vendor"));     
        System.out.println(System.getProperty("java.vendor.url"));     
        System.out.println(System.getProperty("java.home"));     
        System.out.println(System.getProperty("java.vm.specification.version"));     
        System.out.println(System.getProperty("java.vm.specification.vendor"));     
        System.out.println(System.getProperty("java.vm.specification.name"));     
        System.out.println(System.getProperty("java.vm.version"));     
        System.out.println(System.getProperty("java.vm.vendor"));     
        System.out.println(System.getProperty("java.vm.name"));     
        System.out.println(System.getProperty("java.specification.version"));     
        System.out.println(System.getProperty("java.specification.vendor"));     
        System.out.println(System.getProperty("java.specification.name"));     
        System.out.println(System.getProperty("java.class.version"));     
        System.out.println(System.getProperty("java.class.path"));     
        System.out.println(System.getProperty("java.library.path"));     
        System.out.println(System.getProperty("java.io.tmpdir"));     
        System.out.println(System.getProperty("java.compiler"));     
        System.out.println(System.getProperty("java.ext.dirs")); 

2、獲取系統(tǒng)信息
System.out.println(System.getProperty("os.name"));     
        System.out.println(System.getProperty("os.arch"));     
        System.out.println(System.getProperty("os.version"));     
        System.out.println(System.getProperty("file.separator"));     
        System.out.println(System.getProperty("path.separator"));     
        System.out.println(System.getProperty("line.separator"));     
        System.out.println(System.getProperty("user.name"));     
        System.out.println(System.getProperty("user.home"));                     
        System.out.println(System.getProperty("user.dir")); 

3.獲取Tomcat的版本 
<%= application.getServerInfo() %> 

 

=========

幾個(gè)常用Request.ServerVariables的中文 

本文件ip路徑:<%="http://" & request.servervariables("server_name")&request.servervariables("script_name") %> 
本機(jī)ip:<%=request.servervariables("remote_addr")%> 
服務(wù)器名:<%=Request.ServerVariables("SERVER_NAME")%> 
服務(wù)器IP:<%=Request.ServerVariables("LOCAL_ADDR")%> 
服務(wù)器端口:<%=Request.ServerVariables("SERVER_PORT")%> 
服務(wù)器時(shí)間:<%=now%> 
IIS版本:<%=Request.ServerVariables("SERVER_SOFTWARE")%> 
腳本超時(shí)時(shí)間:<%=Server.ScriptTimeout%> 
本文件路徑:<%=server.mappath(Request.ServerVariables("SCRIPT_NAME"))%> 
服務(wù)器CPU數(shù)量:<%=Request.ServerVariables("NUMBER_OF_PROCESSORS")%> 
服務(wù)器解譯引擎:<%=ScriptEngine & "/"& ScriptEngineMajorVersion&"."&ScriptEngineMinorVersion&"."& ScriptEngineBuildVersion %> 
服務(wù)器操作系統(tǒng):<%=Request.ServerVariables("OS")%> 
支持的文件類型:<%=Request.ServerVariables("HTTP_Accept")%> 
訪問(wèn)的文件路徑:<%=Request.ServerVariables("HTTP_url")%> 
用戶代理的信息:<%=Request.ServerVariables("HTTP_USER_AGENT")%> 
獲取url中的文件名和傳過(guò)來(lái)的值:request.ServerVariables("script_name")+"?"+request.ServerVariableS("QUERY_STRING

標(biāo)簽: 服務(wù)器 服務(wù)器操作系統(tǒng) 服務(wù)器端 腳本

版權(quán)申明:本站文章部分自網(wǎng)絡(luò),如有侵權(quán),請(qǐng)聯(lián)系:west999com@outlook.com
特別注意:本站所有轉(zhuǎn)載文章言論不代表本站觀點(diǎn)!
本站所提供的圖片等素材,版權(quán)歸原作者所有,如需使用,請(qǐng)與原作者聯(lián)系。

上一篇: Java 操作 properties 文件

下一篇:JavaScript動(dòng)畫(huà) —— 彈動(dòng)動(dòng)畫(huà)