码迷,mamicode.com
首页 > Web开发 > 详细

Weblogic安装启动流程及免密后台启动

时间:2018-01-09 16:56:16      阅读:385      评论:0      收藏:0      [点我收藏+]

标签:def   man   tail   enter   uri   rdbms   figure   targe   模板   

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安装启动流程及免密后台启动

标签:def   man   tail   enter   uri   rdbms   figure   targe   模板   

原文地址:http://blog.51cto.com/12481523/2059060

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!