CentOS 6.3安裝配置Weblogic 10 http://www.linuxidc.com/Linux/2014-02/96918.htm
Oracle WebLogic 11g 安裝部署文檔 PDF http://www.linuxidc.com/Linux/2013-04/83658.htm
Linux部署Weblogic11g http://www.linuxidc.com/Linux/2013-01/77940.htm
Oracle基礎教程之安裝與配置Weblogic單實例 http://www.linuxidc.com/Linux/2012-02/54418.htm
Linux下Weblogic卸載 http://www.linuxidc.com/Linux/2012-01/51886.htm
Weblogic多機器集群的配置 http://www.linuxidc.com/Linux/2011-12/50577.htm
Weblogic的安裝和配置 http://www.linuxidc.com/Linux/2011-12/49082.htm
安裝最新的weblogic版本,版本號為 12.1.X(12.1.2,12.1.3)。開始以為和舊版安裝一樣,使用控制台的方式,下載bin文件,然后一步步在console執行下來就行了。萬萬沒想到,從12C版本后,bin文件不提供了,改成全系統通用的jar文件 (generic.jar)。試了半天原來那種安裝方式不能用了,非得用圖形界面安裝。由於服務器只能遠程登錄,於是各種百度、各種找材料,最后終於找到一種靜默方式的安裝。請看下文。
weblogic12C各版本所支持的JDK版本:
fmw_12.1.3.0.0_wls.jar 需要jdk1.7.0_15以上的版本
wls_121200.jar 需要jdk1.7版本;1.8版本不可用
weblogic在安裝的時候會對系統進行嚴格的檢查,
包括jdk版本,cpu性能,swap空間,磁盤空間,tmp臨時空間[軟件在安裝時會產生大約1G的日志以及其他必須的文件]等;
一、前期准備
1.新建用戶組 web
[root@edwcube3 ~]#
[root@edwcube3 ~]# groupadd web
[root@edwcube3 ~]#
2.新建用戶weblogic 並修改用戶密碼
[root@edwcube3 ~]#
[root@edwcube3 ~]# useradd -g web weblogic //添加用戶,並用-g參數來制定 web用戶組
[root@edwcube3 ~]
[root@edwcube3 ~]# passwd weblogic //passwd命令修改密碼
Changing password for user weblogic.
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@edwcube3 ~]#
[root@edwcube3 ~]#
3.如果沒有安裝jdk的話,還需要安裝jdk
第一步:從官網下載壓縮包 jdk-7-linux-i586.tar.gz
http://download.oracle.com/otn-pub/java/jdk/7/jdk-7-linux-i586.tar.gz
[root@odstest jdk1.7]$ tar -zxv -f jdk-7u55-linux-i586.tar.gz -C ./jdk1.7
第三步.移動文件/usr/local
注:具體位置可以根據用戶習慣自己移動
[root@odstest /]# mv ./jdk1.7 /usr/local/jdk1.7
第四步.配置環境變量
環境分量分為整個系統的,已經只針對當前用戶設置的,我們這邊只對weblogic用戶設置
~/.bashrc :僅對當前用戶生效
在 ~/.bashrc 最后添加以下部分
JAVA_HOME=/usr/local/jdk1.7
export JRE_HOME=/usr/local/jdk1.7/jre
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
保存,執行 source ~/.bashrc 。使修改生效
退出,重新登陸,查看是否生效
[weblogic@edwcube3 ~]$ java -version
java version "1.7.0_40"
Java(TM) SE Runtime Environment (build 1.7.0_40-b43)
Java HotSpot(TM) Server VM (build 24.0-b56, mixed mode)
[weblogic@edwcube3 ~]$
[weblogic@edwcube3 ~]$
jdk安裝完畢~
二、開始安裝
Slient Mode靜默方式
首先看命令的格式:
java -jar wls_121200.jar -silent -responseFile file -invPtrLoc file
-response file:響應文件
-invPtrLoc file:初始化環境文件
1、創建響應文件 wls.rsp [響應文件中的項一定要寫全,否則會報參數不足等錯誤]
| [ENGINE] #DO NOT CHANGE THIS. Response File Version=1.0.0.0.0 [GENERIC] #The oracle home location. This can be an existing Oracle Home or a new Oracle Home ORACLE_HOME=/u02/bea #Set this variable value to the Installation Type selected. e.g. WebLogic Server, Coherence, Complete with Examples. INSTALL_TYPE=WebLogic Server #Provide the My Oracle Support Username. If you wish to ignore Oracle Configuration Manager configuration provide empty string for user name. MYORACLESUPPORT_USERNAME= #Provide the My Oracle Support Password MYORACLESUPPORT_PASSWORD=<SECURE VALUE> #Set this to true if you wish to decline the security updates. Setting this to true and providing empty string for My Oracle Support username will ignore the Oracle Configuration Manager configuration DECLINE_SECURITY_UPDATES=true #Set this to true if My Oracle Support Password is specified SECURITY_UPDATES_VIA_MYORACLESUPPORT=false #Provide the Proxy Host PROXY_HOST= #Provide the Proxy Port PROXY_PORT= #Provide the Proxy Username PROXY_USER= #Provide the Proxy Password PROXY_PWD=<SECURE VALUE> #Type String (URL format) Indicates the OCM Repeater URL which should be of the format [scheme[Http/Https]]://[repeater host]:[repeater port] COLLECTOR_SUPPORTHUB_URL= |
2、創建Loc文件 oraInst.loc
| inventory_loc=/home/weblogic/oraInventory inst_group=weblogic
|
3、保證所需要得目錄weblogic用戶要用讀寫權限
/ghca/bea文件用戶weblogic必須要有讀寫權限
oraInst.loc,wls.rsp,fmw_12.1.3.0.0_wls.jar 文件用戶weblogic必須要有讀寫權限
4、安裝 wls.rsp,oraInst.loc必須指定絕對路徑 java -jar fmw_12.1.3.0.0_wls.jar -silent -responseFile /home/weblogic/wls.rsp -invPtrLoc /home/weblogic/oraInst.loc
$ java -jar fmw_12.1.3.0.0_wls.jar -silent -responseFile /home/weblogic/wls.rsp -invPtrLoc /home/weblogic/oraInst.loc
啟動程序日志文件為/tmp/OraInstall2016-12-07_11-28-48AM/launcher2016-12-07_11-28-48AM.log。
正在提取文件........
Java HotSpot(TM) Server VM warning: You have loaded library /tmp/orcl3700411247043593693.tmp/Disk1/install/linux/libjni.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
啟動 Oracle Universal Installer
檢查 CPU 速度是否大於 300 MHz。 實際為 2128.009 MHz 通過
檢查交換空間: 必須大於 512 MB。 實際為 8388604 MB 通過
檢查此平台是否需要 64 位 JVM。 實際為32 通過 (不需要 64 位)
檢查臨時空間: 必須大於 300 MB。 實際為 3559 MB 通過
准備從/tmp/OraInstall2016-12-07_11-28-48AM啟動 Oracle Universal Installer
Java HotSpot(TM) Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0 ---可忽略
日志:/tmp/OraInstall2016-12-07_11-28-48AM/install2016-12-07_11-28-48AM.log
版權所有 (c) 1996, 2014, Oracle 和/或其附屬公司。保留所有權利。
正在讀取響應文件...
開始檢查: CertifiedVersions
預期的結果: enterprise-4,enterprise-5,enterprise-6,redhat-6,redhat-4,redhat-5,SuSE-11之一
實際結果: (未知操作系統版本)
檢查完成。此次檢查的總體結果為: 未通過 <<<< 可忽略
問題: 此 Oracle 軟件未經當前操作系統認證。
建議案: 確保在正確的平台上安裝軟件。
警告: 檢查:CertifiedVersions 失敗。
開始檢查: CheckJDKVersion
預期的結果: 1.7.0_15
實際結果: 1.8.0_111
檢查完成。此次檢查的總體結果為: 通過
CheckJDKVersion 檢查: 成功。
已啟用此會話的驗證。
正在驗證數據...
正在復制文件...
可以在以下位置找到本次安裝會話的日志:
/tmp/OraInstall2016-12-07_11-28-48AM/install2016-12-07_11-28-48AM.log
-----------20%----------40%----------60%----------80%--------100%
Oracle Fusion Middleware 12c WebLogic Server 和 Coherence 12.1.3.0.0 的 安裝 已成功完成。
日志已成功復制到/home/weblogic/oraInventory/logs。 -----打印此信息,說明weblogic安裝成功了。
5、 創建domain域名
| A、通過純命令行安裝 export MW_HOME="/u02/bea" export WL_HOME="/u02/bea/oracle_common" [root@WAAA-NM1 bin]# pwd /ghca/bea/wlserver/common/bin [root@WAAA-NM1 bin]# ./commEnv.sh [root@WAAA-NM1 bin]# ./wlst.sh
Java HotSpot(TM) Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Initializing WebLogic Scripting Tool (WLST) ...
Jython scans all the jar files it can find at first startup. Depending on the system, this process may take a few minutes to complete, and WLST may not return a prompt right away.
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
wls:/offline> readTemplate('/u02/bea/wlserver/common/templates/wls/wls.jar') wls:/offline/base_domain>cd('Servers/AdminServer') wls:/offline/base_domain/Server/AdminServer>set('ListenAddress','') wls:/offline/base_domain/Server/AdminServer>set('ListenPort', 7001) wls:/offline/base_domain/Server/AdminServer>cd('../..') wls:/offline/base_domain>cd('Security/base_domain/User/weblogic') wls:/offline/base_domain/Security/base_domain/User/weblogic>cmo.setPassword('weblogic123') wls:/offline/base_domain/Security/base_domain/User/weblogic>setOption('OverwriteDomain', 'true') wls:/offline/base_domain/Security/base_domain/User/weblogic>writeDomain('/u02/bea/user_projects/domains/base_domain') closeTemplate() exit() PS:最后一步等待時間稍微較長;
|
| B、通過參數文件執行安裝
方式1:創建create_domains.py,添加內容: 執行安裝 ./wlst.sh ./create_domains.py 方式2:創建文件/home/weblogic/create_domain.resp,添加內容: read template from "/u02/bea/wlserver/common/templates/wls/wls.jar";
set JavaHome "/usr/local/jdk1.8"; set ServerStartMode "dev";
find Server "AdminServer" as AdminServer; set AdminServer.ListenAddress ""; set AdminServer.ListenPort "7001"; set AdminServer.SSL.Enabled "true"; set AdminServer.SSL.ListenPort "7002";
//create a new user create User "weblogic2" as u2; set u2.password "weblogic123";
write domain to "/u02/bea/user_projects/domains/base_domain/";
// The domain name will be "demo-domain"
close template;
|
9、啟動
$cd /u02/bea/user_projects/domains/base_domain/bin
$./startWeblogic.sh
參考官網資料:
https://docs.oracle.com/middleware/1213/core/OUIRF/silent.htm#OUIRF337
參考博客:
http://chbinmile.blog.51cto.com/6085145/1880433
http://www.cnblogs.com/dingyingsi/p/5262255.html
-----------------------------------------------------------------------------
2016-08-10 16:10:24
所需軟件:
JAVA環境部署文件:jdk-7u55-linux-x64.rpm
Weblogic安裝文件:fmw_12.1.3.0.0_wls.jar
一、創建用戶和組
創建用戶組:groupadd web
創建用戶:useradd -g web -m -d /opt/weblogic weblogic
修改密碼:passwd weblogic
授權用戶:chown -R weblogic:web /opt/weblogic/
useradd 主要參數:
-c:加上備注文字,備注文字保存在passwd的備注欄中。
-d:指定用戶登入時的啟始目錄。
-D:變更預設值。
-e:指定賬號的有效期限,缺省表示永久有效。
-f:指定在密碼過期后多少天即關閉該賬號。
-g:指定用戶所屬的起始群組。
-G:指定用戶所屬的附加群組。
-m:自動建立用戶的登入目錄。
-M:不要自動建立用戶的登入目錄。
-n:取消建立以用戶名稱為名的群組。
-r:建立系統賬號。
-s:指定用戶登入后所使用的shell。
-u:指定用戶ID號。
二、配置JAVA環境
安裝jdk:rpm -ivh jdk-7u55-linux-x64.rpm
在/etc/profile最后加入以下內容:
export JAVA_HOME=/usr/java/jdk1.7.0_55
export JRE_HOME=/usr/java/jdk1.7.0_55/jre
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
使之生效
source /etc/profile
驗證JDK安裝成功與否:
#java –version
三、安裝weblogic
Slient Mode靜默方式
首先看命令的格式:
java -jar wls_121200.jar -silent -responseFile file -invPtrLoc file
-response file:響應文件
-invPtrLoc file:初始化環境文件
文件詳解:
1.創建 oraInst.loc 文件,內容如下
|
1
2
3
|
#Oracle Installer Location File Location
inst_group=web 組名稱
inventory_loc=
/opt/weblogic/oraInventory
產品清單目錄
|
注:在Linux服務器上,oraInst.loc文件通常位於/etc目錄中
2.創建 wls.rsp 響應文件
su - weblogic
chmod 777 /opt/weblogic/fmw_12.1.3.0.0_wls.jar
wls.rsp這個文件你可以在圖形界面安裝時,點擊保存生產該文件。本機使用的文件內容如下:
#weblogic安裝過程路徑配置
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
[ENGINE]
#DO NOT CHANGE THIS.
Response File Version=1.0.0.0.0
[GENERIC]
#The oracle home location. This can be an existing Oracle Home or a new Oracle Home
ORACLE_HOME=
/opt/weblogic/Oracle/Middleware
#Set this variable value to the Installation Type selected. e.g. WebLogic Server, Coherence, Complete with Examples.
INSTALL_TYPE=WebLogic Server
#Provide the My Oracle Support Username. If you wish to ignore Oracle Configuration Manager configuration provide empty string for user name.
MYORACLESUPPORT_USERNAME=
#Provide the My Oracle Support Password
MYORACLESUPPORT_PASSWORD=<SECURE VALUE>
#Set this to true if you wish to decline the security updates. Setting this to true and providing empty string for My Oracle Support username will ignore the Oracle Configuration Manager configuration
DECLINE_SECURITY_UPDATES=
true
#Set this to true if My Oracle Support Password is specified
SECURITY_UPDATES_VIA_MYORACLESUPPORT=
false
#Provide the Proxy Host
PROXY_HOST=
#Provide the Proxy Port
PROXY_PORT=
#Provide the Proxy Username
PROXY_USER=
#Provide the Proxy Password
PROXY_PWD=<SECURE VALUE>
#Type String (URL format) Indicates the OCM Repeater URL which should be of the format [scheme[Http/Https]]://[repeater host]:[repeater port]
COLLECTOR_SUPPORTHUB_URL=
|
chmod 664 wls.rsp
3.配置文件創建后,就可以進行安裝了:
響應文件必須指定全路徑
[weblogic@test ~]$ java -jar fmw_12.1.3.0.0_wls.jar -silent -responseFile /opt/weblogic/wls.rsp -invPtrLoc /etc/oraInst.loc
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
啟動程序日志文件為
/tmp/OraInstall2016-08-10_10-59-01AM/launcher2016-08-10_10-59-01AM
.log。
正在提取文件.........................................
啟動 Oracle Universal Installer
檢查 CPU 速度是否大於 300 MHz。 實際為 1496.639 MHz 通過
檢查交換空間: 必須大於 512 MB。 實際為 2093048 MB 通過
檢查此平台是否需要 64 位 JVM。 實際為64 通過 (不需要 64 位)
檢查臨時空間: 必須大於 300 MB。 實際為 69017 MB 通過
准備從
/tmp/OraInstall2016-08-10_10-59-01AM
啟動 Oracle Universal Installer
日志:
/tmp/OraInstall2016-08-10_10-59-01AM/install2016-08-10_10-59-01AM
.log
版權所有 (c) 1996, 2014, Oracle 和/或其附屬公司。保留所有權利。
正在讀取響應文件...
開始檢查: CertifiedVersions
預期的結果: enterprise-4,enterprise-5,enterprise-6,redhat-6,redhat-4,redhat-5,SuSE-11之一
實際結果: enterprise-6
檢查完成。此次檢查的總體結果為: 通過
CertifiedVersions 檢查: 成功。
開始檢查: CheckJDKVersion
預期的結果: 1.7.0_15
實際結果: 1.7.0_55
檢查完成。此次檢查的總體結果為: 通過
CheckJDKVersion 檢查: 成功。
已啟用此會話的驗證。
正在驗證數據...
正在復制文件...
可以在以下位置找到本次安裝會話的日志:
/tmp/OraInstall2016-08-10_10-59-01AM/install2016-08-10_10-59-01AM
.log
-----------20%----------40%----------60%----------80%--------100%
Oracle Fusion Middleware 12c WebLogic Server 和 Coherence 12.1.3.0.0 的 安裝 已成功完成。
日志已成功復制到
/opt/weblogic/oraInventory/logs
。
|
以上表示安裝完成
4.接下來要創建域domain
4.1 創建存放路徑
[weblogic@test ~]$ mkdir -p /opt/weblogic/Oracle/Middleware/user_projects/domains/base_domain/
4.2 創建參數文件
創建文件: create_domain.rsp
內容:
################################################################################
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
read
template from
"/opt/weblogic/Oracle/Middleware/wlserver/common/templates/wls/wls.jar"
;
set
JavaHome
"/usr/java/jdk1.7.0_55"
;
set
ServerStartMode
"dev"
;
find
Server
"AdminServer"
as AdminServer;
set
AdminServer.ListenAddress
""
;
set
AdminServer.ListenPort
"8001"
;
set
AdminServer.SSL.Enabled
"true"
;
set
AdminServer.SSL.ListenPort
"8002"
;
//We
can directly create a new managed server.
create Server
"base"
as BASE;
set
BASE.ListenAddress
""
;
set
BASE.ListenPort
"8003"
;
//set
BASE.SSL.Enabled
"true"
;
//set
BASE.SSL.ListenPort "8004″;
//Create
Machine
create Machine
"base"
as Machinename;
//use
templates default weblogic user
find
User
"weblogic"
as u1;
set
u1.password
"weblogic123"
;
//create
a new user
create User
"weblogic2"
as u2;
set
u2.password
"weblogic123"
;
write domain to
"/opt/weblogic/Oracle/Middleware/user_projects/domains/base_domain/"
;
//
The domain name will be
"demo-domain"
close template;
|
################################################################################
4.3 靜默創建域
cd /opt/weblogic/Oracle/Middleware/wlserver/common/bin
[weblogic@test ~]$ cd Oracle/Middleware/wlserver/common/bin
[weblogic@test bin]$ ./config.sh -mode=silent -silent_script=/opt/weblogic/create_domain.rsp -logfile=/opt/weblogic/create_domain.log
出現如下輸出:
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
<<
read
template from
"/opt/weblogic/Oracle/Middleware/wlserver/common/templates/wls/wls.jar"
>> succeed:
read
template from
"/opt/weblogic/Oracle/Middleware/wlserver/common/templates/wls/wls.jar"
<<
set
config option JavaHome to
"/usr/java/jdk1.7.0_55"
>> succeed:
set
config option JavaHome to
"/usr/java/jdk1.7.0_55"
<<
set
config option ServerStartMode to
"dev"
>> succeed:
set
config option ServerStartMode to
"dev"
<<
find
Server
"AdminServer"
as AdminServer
>> succeed:
find
Server
"AdminServer"
as AdminServer
<<
set
AdminServer attribute ListenAddress to
""
>> succeed:
set
AdminServer attribute ListenAddress to
""
<<
set
AdminServer attribute ListenPort to
"8001"
>> succeed:
set
AdminServer attribute ListenPort to
"8001"
<<
set
AdminServer attribute SSL!Enabled to
"true"
>> succeed:
set
AdminServer attribute SSL!Enabled to
"true"
<<
set
AdminServer attribute SSL!ListenPort to
"8002"
>> succeed:
set
AdminServer attribute SSL!ListenPort to
"8002"
<< create Server
"base"
as BASE
>> succeed: create Server
"base"
as BASE
<<
set
BASE attribute ListenAddress to
""
>> succeed:
set
BASE attribute ListenAddress to
""
<<
set
BASE attribute ListenPort to
"8003"
>> succeed:
set
BASE attribute ListenPort to
"8003"
<< create Machine
"base"
as Machinename
>> succeed: create Machine
"base"
as Machinename
<<
find
User
"weblogic"
as u1
>> succeed:
find
User
"weblogic"
as u1
<<
set
u1 attribute Password to
"********"
>> succeed:
set
u1 attribute Password to
"********"
<< create User
"weblogic2"
as u2
>> succeed: create User
"weblogic2"
as u2
<<
set
u2 attribute Password to
"********"
>> succeed:
set
u2 attribute Password to
"********"
<< write Domain to
"/opt/weblogic/Oracle/Middleware/user_projects/domains/base_domain/"
..........................................................................................
>> succeed: write Domain to
"/opt/weblogic/Oracle/Middleware/user_projects/domains/base_domain/"
<< close template
>> succeed: close template
|
5、WebLogic的后台啟動、停止運行的方法
進入目錄:/opt/weblogic/Oracle/Middleware/user_projects/domains/base_domain/bin/
[root@test ~]# cd /opt/weblogic/Oracle/Middleware/user_projects/domains/base_domain/bin/
[root@test bin]# nohup ./startWebLogic.sh &
[root@test bin]# nohup ./startWebLogic.sh & 默認日志是在當前啟動的目錄生成nohup.out
若想自己指定日志名字,可以如下:
[root@test bin]# nohup ./startWebLogic.sh >> 你定義的文件名字 & {nohup ./startWebLogic.sh >日志文件名 &}
最后就可以訪問 http://ip:8001/console 進入控制台了
用上面的建的用戶登錄
本文出自 “運維筆錄 美玲” 博客,請務必保留此出處http://meiling.blog.51cto.com/6220221/1836572
-----------------------------------------------------------------------------------------------------------------------------
Linux 上安裝 weblogic12C(靜默安裝)(一)
最近負責在linux上安裝weblogic,客戶說要安裝最新的版本,版本號為 12.1.X(12.1.2,12.1.3)。開始以為和舊版安裝一樣,使用控制台的方式,下載bin文件,然后一步步在console執行下來就行了。萬萬沒想到,從12C版本后,
bin文件不提供了,改成全系統通用的jar文件 (generic.jar)。試了半天原來那種安裝方式不能用了,非得用圖形界面安裝。由於服務器是在其他地方,肯定不能跑到主機的地址那邊。於是各種google、各種找材料,
最后終於找到一種靜默方式的安裝。大家看下文。
PS:經過公司一位大神的指導,可以通過遠程圖形界面的方式進行安裝,即把圖形界面直接顯示在自己的電腦上,不需要跑到主機的地方。將在第二篇中進行介紹安裝方式!
一、前期准備
1.新建用戶組 web
1.
[root@edwcube3 ~]#
2.
[root@edwcube3 ~]# groupadd web
3.
[root@edwcube3 ~]#
2.新建用戶weblogic 並修改用戶密碼
01.
[root@edwcube3 ~]#
02.
[root@edwcube3 ~]# useradd -g web weblogic //添加用戶,並用-g參數來制定 web用戶組
03.
[root@edwcube3 ~]
04.
[root@edwcube3 ~]# passwd weblogic //passwd命令修改密碼
05.
Changing pass<a href="http://www.it165.net/edu/ebg/" target="_blank" class="keylink">word</a> foruser weblogic.
06.
New UNIX pass<a href="http://www.it165.net/edu/ebg/" target="_blank" class="keylink">word</a>:
07.
Retype new UNIX password:
08.
passwd: all authentication tokens updated successfully.
09.
[root@edwcube3 ~]#
10.
[root@edwcube3 ~]#
1.
[root@odstest jdk1.7]$ tar -zxv -f jdk-7u55-linux-i586.tar.gz -C ./jdk1.7
1.
[root@odstest /]# mv ./jdk1.7 /usr/local/jdk1.7
1.
JAVA_HOME=/usr/local/jdk1.7
2.
export JRE_HOME=/usr/local/jdk1.7/jre
3.
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
4.
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
1.
[weblogic@edwcube3 ~]$ java -version
2.
java version '1.7.0_40'
3.
Java(TM) SE Runtime Environment (build 1.7.0_40-b43)
4.
Java HotSpot(TM) Server VM (build 24.0-b56, mixed mode)
5.
[weblogic@edwcube3 ~]$
6.
[weblogic@edwcube3 ~]$
jdk安裝完畢~
二、開始安裝
Slient Mode靜默方式
首先看命令的格式:
1.
java -jar wls_121200.jar -silent -responseFile file -invPtrLoc file
1.
java -jar wls_121200.jar -silent -responseFile /home/exampleuser/response/wls.rsp -invPtrLoc /home/exampleuser/oraInst.loc
1.
inventory_loc=/home/weblogic/oraInventory1 產品清單目錄
2.
#用戶的組名稱,根據實際的修改
3.
inst_group=weblogic 組名稱
1.
java -jar wls_121200.jar -silent -responseFile /home/exampleuser/response/wls.rsp
1.
[ENGINE]
2.
#DO NOT CHANGE THIS.
3.
Response File Version=1.0.0.0.0
4.
[GENERIC]
5.
#weblogic的安裝路徑,根據自己的需要修改
6.
ORACLE_HOME=/home/weblogic/Oracle/Middleware
7.
#Set this variable value to the Installation Type selected. e.g. WebLogic Server, Coherence, Complete with Examples.
8.
INSTALL_TYPE=WebLogic Server
1.
[weblogic@localhost liaowh]$ java -jar wls_121200.jar -silent -response /home/weblogic/liaowh/wls12.rsp -invPtrLoc /home/weblogic/liaowh/oraInst.loc
2.
正在提取文件............
3.
Java HotSpot(TM) Server VM warning: You have loaded library /tmp/orcl305077197089615615.tmp/Disk1/install/linux/libjni.so which might have disabled stack guard. The VM will try to fix the stack guard now.
4.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
5.
啟動 Oracle Universal Installer
等一會,出現
01.
預期的結果: 1.7
02.
實際結果: 1.7.0_40
03.
檢查完成。此次檢查的總體結果為: 通過
04.
CheckJDKVersion 檢查: 成功。
05.
正在驗證數據...
06.
正在復制文件...
07.
-----------20%----------40%----------60%----------80%--------100%
08.
WebLogic Server 12.1.2.0.0 的 installation 已成功完成。
09.
[weblogic@localhost liaowh]$
1.
[weblogic@localhost bin]$ ./home/weblogic/Oracle/Middleware12/wlserver/server/bin/setWLSEnv.sh
然后手動創建域存放的目錄,博主在/home/weblogic/Oracle/Middleware/目錄下新建
1.
[weblogic@localhost Middleware12]$ cd user_projects/
2.
[weblogic@localhost user_projects]$ mkdir domains
3.
[weblogic@localhost user_projects]$ cd domains/
4.
[weblogic@localhost domains]$ mkdir hnDomain
5.
[weblogic@localhost domains]$ cd hnDomain/
6.
[weblogic@localhost hnDomain]$ pwd
7.
/home/weblogic/Oracle/Middleware12/user_projects/domains/hnDomain
8.
[weblogic@localhost hnDomain]$
進到域目錄下,執行命令
1.
[weblogic@localhost hnDomain]$ $JAVA_HOME/bin/java $JAVA_OPTIONS -Xmx1024m -XX:MaxPermSize=256m weblogic.Server



