【WebLogic】WebLogic11g(wls1036_generic.jar )在linux下的命令行安裝

安裝前:
下載好安裝文件wls1036_generic.jar
安裝好jdk,更改配置jdk對應環境變量
創建好用戶weblogic及組,也可以用已有用戶和組

安裝步驟:
進入安裝用戶下,su - weblogic
1.安裝WebLogic
2.升級補丁
3.更改jdk配置
用於解決控制檯訪問慢的問題
$JAVA_HOME/jre/lib/security/java.security 文件將securerandom.source=file:/dev/urandom 修改爲securerandom.source=file:/dev/./urandom

securerandom.source=file:/dev/urandom

改爲

securerandom.source=file:/dev/./urandom

在這裏插入圖片描述
2019年9月10日更新日誌如下(CentOS release 6.5 (Final)):

安裝日誌如下:

[weblogic@localhost ~]$ java -jar wls1036_generic.jar
無法實例化 GUI, 默認進入控制檯模式。
Extracting 0%....................................................................................................100%

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

歡迎使用:
-------------

此安裝程序將引導您完成 WebLogic 10.3.6.0 的安裝。鍵入 "Next" 或按 Enter 鍵繼續下一個提示。如果您希望更改以前輸入的數據, 
請鍵入 "Previous"。您可以隨時通過鍵入 "Exit" 退出安裝程序。

輸入 [退出][下一步]> 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

選擇中間件主目錄:
-------------------------

    "中間件主目錄" = [輸入新值或使用默認值 "/home/weblogic/Oracle/Middleware"]

輸入新值 中間件主目錄 或 [退出][上一步][下一步]> /opt/weblogic

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

選擇中間件主目錄:
-------------------------
    "中間件主目錄" = [/opt/weblogic]

使用以上值或選擇另一選項:
    1 - 輸入新值 中間件主目錄
    2 - 更改爲默認值 [/home/weblogic/Oracle/Middleware]

輸入要選擇的選項編號 或 [退出][上一步][下一步]> 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

註冊安全更新:
-------------------
請提供用於接收安全更新的電子郵件地址以及 以啓動配置管理器。
   1|電子郵件:[]
   2|My Oracle Support 口令:[]
   3|接收安全更新:[Yes]

輸入要選擇的索引號 或 [退出][上一步][下一步]> 3

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

註冊安全更新:
-------------------

請提供用於接收安全更新的電子郵件地址以及 以啓動配置管理器。

    "接收安全更新:" = [輸入新值或使用默認值 "Yes"]



輸入 [Yes][No]? No





<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

註冊安全更新:
-------------------

請提供用於接收安全更新的電子郵件地址以及 以啓動配置管理器。

    "接收安全更新:" = [輸入新值或使用默認值 "Yes"]

    ** 是否希望繞過配置管理器的啓動過程並且
    **  不接收配置中存在嚴重安全問題的通知?

輸入 [Yes][No]? Yes

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

註冊安全更新:
-------------------

請提供用於接收安全更新的電子郵件地址以及 以啓動配置管理器。

   1|電子郵件:[]
   2|My Oracle Support 口令:[]
   3|接收安全更新:[No]
輸入要選擇的索引號 或 [退出][上一步][下一步]> 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

註冊安全更新:
-------------------

請提供用於接收安全更新的電子郵件地址以及 以啓動配置管理器。

   1|電子郵件:[]
   2|My Oracle Support 口令:[]
   3|接收安全更新:[No]
輸入要選擇的索引號 或 [退出][上一步][下一步]> 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

選擇安裝類型:
-------------------

選擇您要執行的安裝類型。 

 ->1|典型
    |  安裝以下產品和組件:
    | - WebLogic Server
    | - Oracle Coherence

   2|定製
    |  選擇要安裝的軟件產品和組件並執行可選配置。

輸入要選擇的索引號 或 [退出][上一步][下一步]> 1

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

JDK 選擇 (所有 * 都指示 Oracle 提供的 VM):
----------------------------------------------------

將安裝所選 JDK。如果已安裝, 默認值將 用於腳本字符串替換。

   1|添加本地 JDK
   2|/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.45.x86_64[x]
   *安裝預計所需的大小: 690.2 MB

輸入 1 以添加, 或者輸入 >= 2 可切換選定內容  或 [退出][上一步][下一步]> 1

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

JDK 選擇 (所有 * 都指示 Oracle 提供的 VM):
----------------------------------------------------

將安裝所選 JDK。如果已安裝, 默認值將 用於腳本字符串替換。

    "本地 Java 主目錄 " = []

輸入新值 本地 Java 主目錄  或 [退出][上一步][下一步]> /usr/jdk1.6

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

JDK 選擇 (所有 * 都指示 Oracle 提供的 VM):
----------------------------------------------------

將安裝所選 JDK。如果已安裝, 默認值將 用於腳本字符串替換。

    "本地 Java 主目錄 " = [/usr/jdk1.6]

輸入新值 本地 Java 主目錄  或 [退出][上一步][下一步]> 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

JDK 選擇 (所有 * 都指示 Oracle 提供的 VM):
----------------------------------------------------

將安裝所選 JDK。如果已安裝, 默認值將 用於腳本字符串替換。

   1|添加本地 JDK
   2|/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.45.x86_64[x]
   3|/usr/jdk1.6[x]
   *安裝預計所需的大小: 690.2 MB

輸入 1 以添加, 或者輸入 >= 2 可切換選定內容  或 [退出][上一步][下一步]> 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

選擇產品安裝目錄:
-------------------------

中間件主目錄: [/opt/weblogic]

產品安裝目錄:
   1|WebLogic Server: [/opt/weblogic/wlserver_10.3]
   2|Oracle Coherence: [/opt/weblogic/coherence_3.7]

輸入要選擇的索引號 或 [退出][上一步][下一步]> 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

將安裝下列產品和 JDK:
-----------------------------

    WebLogic Platform 10.3.6.0
    |_____WebLogic Server
    |    |_____Core Application Server
    |    |_____Administration Console
    |    |_____Configuration Wizard and Upgrade Framework
    |    |_____Web 2.0 HTTP Pub-Sub Server
    |    |_____WebLogic SCA
    |    |_____WebLogic JDBC Drivers
    |    |_____Third Party JDBC Drivers
    |    |_____WebLogic Server Clients
    |    |_____WebLogic Web Server Plugins
    |    |_____UDDI and Xquery Support
    |    |_____Evaluation Database
    |_____Oracle Coherence
         |_____Coherence Product Files

    *安裝預計所需的大小: 690.3 MB

輸入 [退出][上一步][下一步]> 
九月 10, 2019 6:50:38 下午 java.util.prefs.FileSystemPreferences$1 run
信息: Created user preferences directory.

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

正在安裝文件...
0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]

正在執行字符串替換...

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

正在配置 OCM...

0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]
正在創建域...

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

安裝完成

祝賀您! 安裝完成。

按 [Enter] 鍵繼續或鍵入 [退出]> 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

清除過程正在進行中...
[weblogic@localhost ~]$ 

英文版安裝日誌(2020年6月3日更新,操作系統Redhat7.5):

[tmn@host-10 weblogic]$ java -jar wls1036_generic.jar 
Unable to instantiate GUI, defaulting to console mode.
Extracting 0%....................................................................................................100%





<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Welcome:
--------

This installer will guide you through the installation of WebLogic 10.3.6.0. 
Type "Next" or enter to proceed to the next prompt.  If you want to change data entered previously, type "Previous".  You may quit the installer at any time by typing "Exit".




Enter [Exit][Next]> 





<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Middleware Home Directory:
---------------------------------

    "Middleware Home" = [Enter new value or use default 
"/home/tmn/Oracle/Middleware"]




Enter new Middleware Home OR [Exit][Previous][Next]> 





<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

   1|Email:[]
   2|Support Password:[]
   3|Receive Security Update:[Yes]



Enter index number to select OR [Exit][Previous][Next]> 3





<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

    "Receive Security Update:" = [Enter new value or use default "Yes"]



Enter [Yes][No]? No





<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

    "Receive Security Update:" = [Enter new value or use default "Yes"]


    ** Do you wish to bypass initiation of the configuration manager and
    **  remain uninformed of critical security issues in your configuration?


Enter [Yes][No]? yes





<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

   1|Email:[]
   2|Support Password:[]
   3|Receive Security Update:[No]



Enter index number to select OR [Exit][Previous][Next]> 




<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

   1|Email:[]
   2|Support Password:[]
   3|Receive Security Update:[No]



Enter index number to select OR [Exit][Previous][Next]> 





<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Install Type:
--------------------

Select the type of installation you wish to perform. 

 ->1|Typical
    |  Install the following product(s) and component(s):
    | - WebLogic Server
    | - Oracle Coherence

   2|Custom
    |  Choose software products and components to install and perform optional 
    |configuration.





Enter index number to select OR [Exit][Previous][Next]> 1





<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

JDK Selection (Any * indicates Oracle Supplied VM):
---------------------------------------------------

JDK(s) chosen will be installed.  Defaults will be used in script string-substitution if installed.

   1|Add Local Jdk
   2|/usr/java/jdk1.6.0_45[x]



   *Estimated size of installation:  690.2 MB


Enter 1 to add or >= 2 to toggle selection  OR [Exit][Previous][Next]> 





<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Product Installation Directories:
----------------------------------------

Middleware Home Directory: [/home/tmn/Oracle/Middleware]

Product Installation Directories:


   1|WebLogic Server: [/home/tmn/Oracle/Middleware/wlserver_10.3]
   2|Oracle Coherence: [/home/tmn/Oracle/Middleware/coherence_3.7]




Enter index number to select OR [Exit][Previous][Next]> 





<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

The following Products and JDKs will be installed:
--------------------------------------------------

    WebLogic Platform 10.3.6.0
    |_____WebLogic Server
    |    |_____Core Application Server
    |    |_____Administration Console
    |    |_____Configuration Wizard and Upgrade Framework
    |    |_____Web 2.0 HTTP Pub-Sub Server
    |    |_____WebLogic SCA
    |    |_____WebLogic JDBC Drivers
    |    |_____Third Party JDBC Drivers
    |    |_____WebLogic Server Clients
    |    |_____WebLogic Web Server Plugins
    |    |_____UDDI and Xquery Support
    |    |_____Evaluation Database
    |_____Oracle Coherence
         |_____Coherence Product Files

    *Estimated size of installation: 690.3 MB




Enter [Exit][Previous][Next]> 
Jun 3, 2020 4:00:38 PM java.util.prefs.FileSystemPreferences$2 run
INFO: Created user preferences directory.





<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Installing files..

0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]


Performing String Substitutions... 





<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Configuring OCM...

0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]


Creating Domains...





<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Installation Complete


Congratulations! Installation is complete.


Press [Enter] to continue or type [Exit]> 





<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Clean up process in progress ...
[tmn@host-10 weblogic]$ timed out waiting for input: auto-logout

補丁升級參考:
【WebLogic】10.3.6.0.0補丁升級p29204678_1036_Generic.zip

補充問題:
今天在安裝時遇到的幾個問題

1.jdk更改目錄提示無效

本例原因爲設置jdk目錄爲/usr/jdk1.6,用的是root賬號,用weblogic賬號設置時,無權限訪問此目錄,切換root賬號賦權後就可以了
2.提示自解壓過程中遇到致命錯誤[設備上沒有空間]
其實問題源於上面那個錯誤,解決了半天中斷了半天,導致tmp臨時文件夾被塞滿了,bea1132347807347059860.tmp等bea開頭的都是中斷文件夾,爲了安全,我把幾個bea開頭的文件夾挪到其他地方了,然後在運行就沒問題了,其實看weblogic 安裝的最後日誌中就能看出, 清除過程正在進行中… ,這個應該就是刪tmp的
問題日誌

[weblogic@localhost ~]$ java -jar wls1036_generic.jar
無法實例化 GUI, 默認進入控制檯模式。
Extracting 0%..............................................
自解壓過程中遇到致命錯誤。[設備上沒有空間]
<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->
歡迎使用:
-------------
此安裝程序將引導您完成 WebLogic 10.3.6.0 的安裝。鍵入 "Next" 或按 Enter 鍵繼續下一個提示。如果您希望更改以前輸入的數據, 
請鍵入 "Previous"。您可以隨時通過鍵入 "Exit" 退出安裝程序。

輸入 [退出][下一步]> ^C[weblogic@localhost ~]$ 
[weblogic@localhost ~]$ df -hl
Filesystem           Size  Used Avail Use% Mounted on
/dev/sda2             51G  5.9G   42G  13% /
tmpfs                7.8G   72K  7.8G   1% /dev/shm
/dev/sda1            194M   34M  151M  19% /boot
/dev/sda5            5.0G  4.2G  500M  90% /tmp
/dev/sda6            5.0G  286M  4.4G   6% /var
…………
[weblogic@localhost ~]$ cd /tmp
[weblogic@localhost tmp]$ ll
總用量 68
drwxr-x---  4 security security  4096 9月  10 18:04 bea1132347807347059860.tmp
drwxr-x---  4 security security  4096 9月  10 16:39 bea2085629923409137027.tmp
drwxr-x---  4 security security  4096 9月  10 18:08 bea281767808974268159.tmp
drwxr-x---  4 security security  4096 9月  10 18:11 bea5713597393837103468.tmp
drwxr-x---  2 security security  4096 9月  10 18:41 hsperfdata_security
………………
[weblogic@localhost tmp]$ cd bea1132347807347059860.tmp/
[weblogic@localhost bea1132347807347059860.tmp]$ ll
總用量 4148
-rw-r----- 1 security security 2549575 9月  10 18:00 com.oracle.ocm_1.0.0.0.jar
-rw-r----- 1 security security  427520 9月  10 18:00 jni_win64.dll
-rw-r----- 1 security security  197632 9月  10 18:00 jni_win.dll
-rw-r----- 1 security security  198656 9月  10 18:00 jni_winx64.dll
-rw-r----- 1 security security  121781 9月  10 18:00 libjni.aix.a
-rwxr-xr-x 1 security security  229796 9月  10 18:00 libjni.hpux64.so
-rwxr-xr-x 1 security security   90112 9月  10 18:00 libjni.hpux.sl
-rwxr-xr-x 1 security security  165273 9月  10 18:00 libjni.linux64.so
-rwxr-xr-x 1 security security   83820 9月  10 18:00 libjni.linux.so
-rwxr-xr-x 1 security security  120032 9月  10 18:00 libjni.solaris.so
drwxr-x--- 2 security security    4096 9月  10 18:00 media
drwxr-x--- 3 security security   36864 9月  10 18:00 modules
[security@localhost bea1132347807347059860.tmp]$ cd ..
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章