1. 程式人生 > >Weblogic安裝啟動流程及免密後臺啟動

Weblogic安裝啟動流程及免密後臺啟動

con sof util ack change tab roo 正在 default

Weblogic安裝啟動流程
一、安裝步驟:

1.啟動安裝程序:
$ <YOUR_JAVA_HOME>/bin/java -jar -Xmx1200m wls1211_generic.jar -mode=console
例如:/root/jdk1.8.0_144/bin/java -jar -Xmx1200m wls1211_generic.jar -mode=console
Extracting 0%....................................................................................................100%

2.進入Welcome界面:

<-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->

Welcome:

This installer will guide you through the installation of WebLogic 12.1.1.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]>Next(默認回車鍵即為Next)

3.設置中間件主目錄:
<-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->

Choose Middleware Home Directory:

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



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

4.確認中間件主目錄:
<-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->

Choose Middleware Home Directory:

"Middleware Home" = [/weblogic]

Use above value or select another option:
1 - Enter new Middleware Home
2 - Change to default [/weblogic/Oracle/Middleware]



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

5.提示目錄已存在,是否繼續:
<-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->

Choose Middleware Home Directory:

Warning

/weblogic directory is not empty. Proceed with installation?



Enter [Exit][Previous][Next]> Next
6.是否註冊安全更新,選擇否
<-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->

Register for Security Updates:

Provide your email address to be informed of security issues, install the product, and initiate configuration manager. http://www.oracle.com/support/policies.html

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

Enter index number to select OR [Exit][Previous][Next]> 3
7.選擇不註冊安全更新,選擇No
<-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->

Register for Security Updates:

Provide your email address to be informed of security issues, install the product, and initiate configuration manager. http://www.oracle.com/support/policies.html

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

Enter [Yes][No]? No
8.不註冊安全更新,確認
<-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->

Register for Security Updates:

Provide your email address to be informed of security issues, install the product, and initiate configuration manager. http://www.oracle.com/support/policies.html

"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
9.確認接受安全更新項為No後,選擇Next:
<-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->

Register for Security Updates:

Provide your email address to be informed of security issues, install the product, and initiate configuration manager. http://www.oracle.com/support/policies.html

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

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

10.選擇需要安裝的產品,不需要Oracle Coherence,定制:
<-------------------- Oracle Installer - WebLogic 12.1.1.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]> 2
11.去掉Oracle Coherence產品項:
<-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->

Choose Products and Components:

Release 12.1.1.0
|WebLogic Server [1] x
| |
Core Application Server [1.1] x
| |Administration Console [1.2] x
| |
Configuration Wizard and Upgrade Framework [1.3] x
| |Web 2.0 HTTP Pub-Sub Server [1.4] x
| |
WebLogic SCA [1.5] x
| |WebLogic JDBC Drivers [1.6] x
| |
Third Party JDBC Drivers [1.7] x
| |WebLogic Server Clients [1.8] x
| |
WebLogic Web Server Plugins [1.9] x
| |UDDI and Xquery Support [1.10] x
| |
Server Examples [1.11]
| |Evaluation Database [1.12] x
|
Oracle Coherence [2] x
|Coherence Product Files [2.1] x
|
Coherence Examples [2.2]

*Estimated size of installation: 763.7 MB



Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> 2
12.確認只選擇了WebLogic Server相關組件後,選擇Next
<-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->

Choose Products and Components:

Release 12.1.1.0
|WebLogic Server [1] x
| |
Core Application Server [1.1] x
| |Administration Console [1.2] x
| |
Configuration Wizard and Upgrade Framework [1.3] x
| |Web 2.0 HTTP Pub-Sub Server [1.4] x
| |
WebLogic SCA [1.5] x
| |WebLogic JDBC Drivers [1.6] x
| |
Third Party JDBC Drivers [1.7] x
| |WebLogic Server Clients [1.8] x
| |
WebLogic Web Server Plugins [1.9] x
| |UDDI and Xquery Support [1.10] x
| |
Server Examples [1.11]
| |Evaluation Database [1.12] x
|
Oracle Coherence [2] – 上一步選擇2之後,這幾項被刪除掉了
|Coherence Product Files [2.1] – 上一步選擇2之後,這幾項被刪除掉了
|
Coherence Examples [2.2] – 上一步選擇2之後,這幾項被刪除掉了

*Estimated size of installation: 756.9 MB – 不同平臺下,實際大小會略有所不同。



Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> Next
13.選擇項目所需的JDK目錄(一般為默認的JDK目錄),選擇Next
<-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->

JDK Selection (Any * indicates Oracle Supplied VM):

JDK(s) chosen for use with this product installation will be installed. Supported defaults if not deselected will be used in script string-substitution.

1|Add Local Jdk
2|<YOUR_JAVA_HOME>[x]



*Estimated size of installation: 756.9 MB – 不同平臺下,實際大小會略有所不同。

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

14.采用默認的產品安裝目錄,選擇Next
<-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->

Choose Product Installation Directories:

Middleware Home Directory: [/weblogic]

Product Installation Directories:



"WebLogic Server" = [Enter new value or use default "/weblogic/wlserver_12.1"]



Enter new WebLogic Server OR [Exit][Previous][Next]> Next

15.安裝前的確認信息,選擇Next:

<-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->

The following Products and JDKs will be installed:

WebLogic Platform 12.1.1.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

*Estimated size of installation: 757.0 MB – 不同平臺下,實際大小會略有所不同。



Enter [Exit][Previous][Next]> Next
Oct 25, 2010 10:44:17 AM java.util.prefs.FileSystemPreferences$2 run
INFO: Created user preferences directory.
16.進入安裝過程:
<-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->

Installing files..

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



Performing String Substitutions...



<-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->

Configuring OCM...

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



Creating Domains...



<-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->

Installation Complete



Congratulations! Installation is complete.



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

17.安裝完成,註意這裏安裝到了之前設置的中間件目錄中,這裏即為/weblogic目錄中。





二、創建域(默認用戶名weblogic)
1.啟動Domain配置向導
<WL_HOME>/common/bin/config.sh
這裏為/weblogic/wlserver_10.3/common/binconfig.sh –mode=console
WARNING - Unable to create log file </weblogic/modules/../logs/wlsconfig_20101020153011.log>: java.io.IOException: Permission denied (errno:13)
以上警告信息不影響後續步驟,應該是產品設計上的不足。

2.選擇新建Domain
<------------------- Fusion Middleware Configuration Wizard ------------------>

Welcome:

Choose between creating and extending a domain. Based on your selection,
the Configuration Wizard guides you through the steps to generate a new or
extend an existing domain.

->1|Create a new WebLogic domain
| Create a WebLogic domain in your projects directory.

2|Extend an existing WebLogic domain
| Use this option to add new components to an existing domain and modify |configuration settings.

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

3.選擇WebLogic Platform組件
<------------------- Fusion Middleware Configuration Wizard ------------------>

Select Domain Source:

Select the source from which the domain will be created. You can create the
domain by selecting from the required components or by selecting from a
list of existing domain templates.

->1|Choose Weblogic Platform components
| You can choose the Weblogic component(s) that you want supported in
|your domain.

2|Choose custom template
| Choose this option if you want to use an existing template. This
|could be a custom created template using the Template Builder.

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

4.選擇Basic WebLogic Server Domain模板
<------------------- Fusion Middleware Configuration Wizard ------------------>

Application Template Selection:

Available Templates
|_Basic WebLogic Server Domain - 12.1.1.0 [wlserver12.1]x
|
WebLogic Advanced Web Services for JAX-RPC Extension - 12.1.1.0 [wlserver_12.1] [2]
|_____WebLogic Advanced Web Services for JAX-WS Extension - 12.1.1.0 [wlserver_12.1] [3]

Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> Next

5.設定Domain名
<------------------- Fusion Middleware Configuration Wizard ------------------>

Edit Domain Information:

| Name | Value |
|____|____|
1| *Name: | base_domain |

Enter value for "Name" OR [Exit][Previous][Next]> testdomain

6.確認新domain名後確認
<------------------- Fusion Middleware Configuration Wizard ------------------>

Edit Domain Information:

| Name | Value |
_|____|____|
1| *Name: | testdomain |

Use above value or select another option:
1 - Modify "Name"
2 - Discard Changes

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

7.設置domain存放目錄(Domain的上層目錄)
<------------------- Fusion Middleware Configuration Wizard ------------------>

Select the target domain directory for this domain:

"Target Location" = [Enter new value or use default
"/weblogic/user_projects/domains"]

Enter new Target Location OR [Exit][Previous][Next]> /app

8.設置weblogic用戶密碼
<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Administrator User Name and Password:

Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.

| Name | Value |
|____|_____|
1| Name: | weblogic |
2|
User password: | |
3| *Confirm user password: | |
4| Description: | This user is the default administrator. |

Use above value or select another option:
1 - Modify "Name"
2 - Modify "User password"
3 - Modify "Confirm user password"
4 - Modify "Description"

Enter option number to select OR [Exit][Previous][Next]> 2

9.設置weblogic密碼
<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Administrator User Name and Password:

Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.

"*User password:" = []

Enter new *User password: OR [Exit][Reset][Accept]> weblogic123

10.確認密碼
<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Administrator User Name and Password:

Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.

| Name | Value |
|____|_____|
1| Name: | weblogic |
2|
User password: | *** |
3| *Confirm user password: | |
4| Description: | This user is the default administrator. |

Use above value or select another option:
1 - Modify "Name"
2 - Modify "User password"
3 - Modify "Confirm user password"
4 - Modify "Description"
5 - Discard Changes

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

11.確認密碼
<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Administrator User Name and Password:

Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.

"*Confirm user password:" = []

Enter new *Confirm user password: OR [Exit][Reset][Accept]> weblogic123

12.完成密碼設置後進入下一步
<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Administrator User Name and Password:

Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.

| Name | Value |
|____|_____|
1| Name: | weblogic |
2|
User password: | *** |
3| *Confirm user password: | *** |
4| Description: | This user is the default administrator. |

Use above value or select another option:
1 - Modify "Name"
2 - Modify "User password"
3 - Modify "Confirm user password"
4 - Modify "Description"
5 - Discard Changes

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

13.選擇生產模式
<------------------- Fusion Middleware Configuration Wizard ------------------>

Domain Mode Configuration:

Enable Development or Production Mode for this domain.

->1|Development Mode

2|Production Mode

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

14.選擇所用JDK
<------------------- Fusion Middleware Configuration Wizard ------------------>

Java SDK Selection:

->1| XXX SDK 1.6.0 @ <YOUR_JAVA_HOME>
2|Other Java SDK

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

15.選擇Domain選項
<------------------- Fusion Middleware Configuration Wizard ------------------>

Select Optional Configuration:

1|Administration Server [ ]
2|Managed Servers, Clusters and Machines [ ]
3|RDBMS Security Store [ ]

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

16.Domain選項只選Admin Server
<------------------- Fusion Middleware Configuration Wizard ------------------>

Select Optional Configuration:

1|Administration Server [x]
2|Managed Servers, Clusters and Machines [ ]
3|RDBMS Security Store [ ]

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

17.設置AdminServer相關配置
<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure the Administration Server:

Enter adminstration server configurations. Each WebLogic Server domain must
have one Administration Server. The Administration Server hosts the
Administration Console which is used to perform administrative tasks.

| Name | Value |
_|__|_____|
1| Name: | AdminServer |
2|
Listen address: | All Local Addresses |
3| Listen port: | 7001 |
4| SSL listen port: | N/A |
5| SSL enabled: | false |

Use above value or select another option:
1 - Modify "Name"
2 - Modify "Listen address"
3 - Modify "Listen port"
4 - Modify "SSL enabled"

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

18.Domain創建過程
<------------------- Fusion Middleware Configuration Wizard ------------------>

Creating Domain...

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

Domain Created Successfully!
19.直到顯示創建成功提示後,Domain完成創建過程

三、在/etc/hosts文件中寫入主機名稱映射
例如:
192.168.179.25 Apache
四、在/app/testdomain/bin裏執行./startWebLogic.sh啟動weblogic
五、輸入賬戶密碼、登陸成功
六、鍵入CTRL+C即結束weblogic進程,或者在另一終端中/app/testdomain/bin裏執行stopWebLogic.sh結束進程。
將weblogic放入後臺運行
解決登錄輸入賬戶密碼問題
一、在域下servers/AdminServer裏創建security目錄,進入security目錄,創建文本文件boot.properties寫入用戶名密碼username=XXXXXXX \n password=XXXXX以提供用戶名密碼供weblogic啟動時訪問。
二、在/app/testdomain/bin裏通過 nohup ./startWebLogic.sh &命令啟動weblogic(放入後臺運行),啟動後Ctrl+C即可。
三、nohup會在$HOME裏自動創建nohup.out文件以寫入weblogic啟動時生成的日誌信息。(命令tail -f nohup.out可以實時查看寫入的日誌信息)
四、ps -ef 命令可查看當前正在運行進程,
五、ss -tnlp監控端口號,可見java程序(weblogic)監聽7001端口。

Weblogic安裝啟動流程及免密後臺啟動