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

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端口。

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

时间: 2024-10-10 09:21:13

Weblogic安装启动流程及免密后台启动的相关文章

Elasticsearch 安装配置 外网访问 及 后台启动

本文转自http://www.jianshu.com/p/658961f707d8 作者:咪博士 感谢咪博士分享 Elasticsearch的安装总体来说还是相当简单的,当然中间也会有些小坑.不过大家也不必太过担心,咪博士将给大家详细演示如何在Linux服务器上,安装Elasticsearch,并和大家分享如何搞定安装过程中的各种细节问题(成败在于细节啊!). 一.Java环境 Elasticsearch是用Java语言编写的,所以首先大家要确保机器上已经安装了Java环境.官方文档指出,至少需

ansible自动安装并配置ssh免密环境shell脚本

#!/bin/bash clearUSER=rootPASSWD=amunlinuxPUBDIR=/root/.sshcat > ~/prompt-ans.txt << EOF 如果需要配置服务器数量过多,最好在外部保存到ip-list文件内,易于美观 如果.ssh/ 下存在文件,需要删除后再次执行脚本,不想删除注释关键字即可 服务器密码需要统一 EOFcat ~/prompt-ans.txtsleep 4syum -y install ansible expect* which exp

Android启动流程分析(十一) zygote的启动

############################################# 本文为极度寒冰原创,转载请注明出处 ############################################# 前面的文章花了很大的篇幅去介绍了init进程如何去解析init.rc,如何去执行系统的一些服务. 那么,我们所说的zygote是怎么启动的呢?zygote又是具体负责了哪些工作呢? 本文我们来一探究竟. zygote在inir.rc中有如下的描述: service zygote

CentOS6 启动流程图文解剖

我们在使用Linux操作系统的时候,我们只需按下电源键,等待,然后输入账户和密码就可以使用Linux操作系统了.那么在按下电源到输入账号和密码之前,操作系统都做了些什么?下面就来讲述在这段时间发生的动作. 下面以CentOS6系列为例来讲解Linux的启动流程. 一.Linux启动流程详解 下图就是启动流程的大致过程: 二.POST加电自检 POST(PowerOnSelfTest)首先对每一个设备进行检查.完成后会寻找存有引导记录的设备,找到后读入操作系统引导记录,然后将系统控制权交给引导记录

centOS 6启动流程

centOS6启动流程 centOS6启动流程 linux内核组成 centos6启动大致流程 1.post加电自检 2.Boot Sequence 3.MBR引导 4.Grub启动 制作initramfs文件 grub.conf的参数 grub的功能 提供启动菜单.并提供交互式接口 加载用户选择的内核或操作系统 为菜单提供了保护机制 安装grub grub-install命令 grub交互式 5.启动 init 进程 6.登录 我们平时使用linux系统,点击电源键,电脑开机到我们输入账号密码

Linux系统入门---开机启动流程

目录 Linux系统入门---开机启动流程 一.centos6 二.systemd管理进程 1.查看级别 三.centos7实践案例: 1.案例1:centos7系统,单用户修改root密码 案例2: 如果修改级别 案例3:救援模式 四.修改CentOS7网卡名称为eth0和eth1 1.环境准备 2.用命令配置网卡 方法1: 方法2: 3.系统基本环境优化 五.Systemd 进程管理 1.systemctl管理服务的启动.重启.停止.重载.查看状态等常用命令 2.systemctl设置服务开

庖丁解牛 Activity 启动流程

前言 这是 Android 9.0 AOSP 系列 的第五篇了,先来回顾一下前面几篇的大致内容. Java 世界的盘古和女娲 -- Zygote 主要介绍了 Android 世界的第一个 Java 进程 Zygote 的启动过程. 注册服务端 socket,用于响应客户端请求 各种预加载操作,类,资源,共享库等 强制 GC 一次 fork SystemServer 进程 循环等待客户端发来的 socket 请求(请求 socket 连接和请求 fork 应用进程) Zygote家的大儿子 --

Arm启动流程解析

谈到arm的启动流程不得不说的是bootloader,但是我这篇文章主要来谈谈arm启动流程的,所以bootloader只是跟大家简介一下就ok.这篇文章我会谈到以下内容: 1.bootloader简介以及其作用 2.2440.6410.210当下比较常见的3款处理器的启动流程进行简单分析,通过这三款处理器的分析希望大家掌握arm处理器的启动分析. Ok我们进入主题 l  Bootloader简介及其作用 在我看来bootloader的作用是初始化必要的硬件,引导内核启动.(当然这是主要作用,今

【嵌入式开发】 Bootloader 详解 ( 代码环境 | ARM 启动流程 | uboot 工作流程 | 架构设计)

作者 : 韩曙亮 博客地址 : http://blog.csdn.net/shulianghan/article/details/42462795 转载请著名出处 相关资源下载 :  -- u-boot 源码 : http://download.csdn.net/detail/han1202012/8342761 -- S3C2440 文档 : http://download.csdn.net/detail/han1202012/8342701 -- S5PV210_iROM_Applicati