第三方運維人員在實際的工作中,通常會遇到更改參數、安裝部署weblogic的需求,但這個需求的發佈人通常不會將很詳細的信息告訴你,如果不問清楚需求case又無法準確的完成。他們可能會說和xxx臺機器的配置一樣。(此時我內心的潛臺詞可能是,說了等於沒說等等)
接下來介紹在已經安裝weblogic的機上查看其版本的幾種方法。
方法1:
[root@cpdypt201 datadir]# cd weblogic/ #weblogic安裝目錄
[root@cpdypt201 weblogic]# ls
coherence_3.7 logs ocm.rsp patch_wls1036 registry.xml utils
domain-registry.xml modules patch_ocp371 registry.dat user_projects wlserver_10.3
[root@cpdypt201 weblogic]# cd logs/
[root@cpdypt201 logs]# ls
log.txt wlsconfig_20161226100143.log wlsconfig_20161226101353.log wlsconfig_20161226101759.log wlsconfig_20161226102107.log
[root@cpdypt201 logs]# cat log.txt #通過查看日誌文件,找到中間件的版本號
Dec 26, 2016 9:59:20 AM -- install "WebLogic Platform" 10.3.6.0 at /datadir/weblogic
release 10.3.6.0 [Added]
|_____Common Infrastructure Engineering 7.4.0.0 [Added]
| |_____Uninstall [Added]
| |_____Patch Client [Added]
| |_____Patch Attachment Facility [Added]
| |_____Clone Facility [Added]
|_____WebLogic Server 10.3.6.0 [Added]
| |_____Core Application Server [Added]
| |_____Administration Console [Added]
| |_____Configuration Wizard and Upgrade Framework [Added]
| |_____Web 2.0 HTTP Pub-Sub Server [Added]
| |_____WebLogic SCA [Added]
| |_____WebLogic JDBC Drivers [Added]
| |_____Third Party JDBC Drivers [Added]
| |_____WebLogic Server Clients [Added]
| |_____WebLogic Web Server Plugins [Added]
| |_____UDDI and Xquery Support [Added]
| |_____Server Examples [Not Installed]
| |_____Evaluation Database [Added]
| |_____Workshop Code Completion Support [Added]
|_____Oracle Configuration Manager 10.3.5.0 [Added]
| |_____Data Collector [Added]
|_____Oracle Coherence 3.7.1.1 [Added]
|_____Coherence Product Files [Added]
|_____Coherence Examples [Not Installed]
方法2:
[root@ansible_client lib]# pwd
/root/Oracle/Middleware/wlserver_10.3/server/lib
[root@ansible_client lib]# java -cp weblogic.jar weblogic.version #使用命令查找版本號
WebLogic Server 10.3.6.0 Tue Nov 15 08:52:36 PST 2011 1441050
Use 'weblogic.version -verbose' to get subsystem information
Use 'weblogic.utils.Versions' to get version information for all modules
方法3:
[root@ansible_client Middleware]# pwd
/root/Oracle/Middleware
[root@ansible_client Middleware]# ls
coherence_3.7 domain-registry.xml logs modules ocm.rsp registry.dat registry.xml user_projects utils wlserver_10.3
[root@ansible_client Middleware]# cat -n registry.xml
1
2<bea-product-information>
3 <host>
4 <product>
5 <release>
6 <component>
7 <component>
8 <component>
9 <component>
10 <component>
11
12 <component>
13 <component>
14 <component>
15 <component>
16 <component>
17 <component>
18 <component>
19 <component>
20 <component>
21 <component>
22 <component>
23 <component>
24 <component>
25
26 <component>
27 <component>
28
29 <component>
30 <component>
31
32
33
34
35
閱讀更多 挨踢人 的文章