原文出自【听云技术博客】:http://blog.tingyun.com/web/article/detail/1043
一、安装过程:参考“weblogic安装截屏(linux)”
注意事项:安装weblogic时,需要注意以下两点:
1、首先在安装目录下创建weblogic12文件夹
如安装目录:/opt/SpyTest/PVT/Java/container/
2、第二步Choose Middleware Home Directory:输入/opt/SpyTest/PVT/Java/container/weblogic12/
而不是下面的/opt/SpyTest/PVT/Java/container/weblogic12/Oracle/Middleware
二、创建域:参考“weblogic创建域截屏(linux)”
三、启动前配置:
1、在下面目录下
/opt/SpyTest/PVT/Java/container/weblogic12/user_projects/domains/base_domain/servers/AdminServer
创建security文件夹,该文件夹下创建boot.properties,该文件中包含如下内容:
password=weblogic12
username=weblogic12
保存文件;
(解决每次启动都提示输入用户名的问题Enter username to boot WebLogic server:)
可以启动成功了,第一次启动后发现security/boot.properties文件中的用户名和密码都已经被加密了。
2、修改机器hostname
进入任意目录,执行命令hostname xxx
或者在/etc目录下的hosts文件中添加如下内容
127.0.0.1 PVT
(解决Caused By: java.net.UnknownHostException: webserver: webserver错误)
weblogic安装截屏(linux)
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]>
<------------------------------------------------------------------------------------------------------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------------------------------------------------------------------------------------------------------>
Choose Middleware Home Directory:
---------------------------------
"Middleware Home" = [Enter new value or use default "/root/Oracle/Middleware"]
Enter new Middleware Home OR [Exit][Previous][Next]> /SpyTest/PVT/Java/container/weblogic12/
<------------------------------------------------------------------------------------------------------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------------------------------------------------------------------------------------------------------>
Choose Middleware Home Directory:
---------------------------------
"Middleware Home" = [/SpyTest/PVT/Java/container/weblogic12]
Use above value or select another option:
1 - Enter new Middleware Home
2 - Change to default [/root/Oracle/Middleware]
Enter option number to select OR [Exit][Previous][Next]>
<------------------------------------------------------------------------------------------------------------------- Oracle Installer - WebLogic 12.1.1.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 12.1.1.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 12.1.1.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 12.1.1.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 12.1.1.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 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]> 1
<------------------------------------------------------------------------------------------------------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------------------------------------------------------------------------------------------------------>
Choose Product Installation Directories:
----------------------------------------
Middleware Home Directory: [/opt/SpyTest/PVT/Java/container/weblogic12]
Product Installation Directories:
1|WebLogic Server: [/opt/SpyTest/PVT/Java/container/weblogic12/wlserver_12.1]
2|Oracle Coherence: [/opt/SpyTest/PVT/Java/container/weblogic12/coherence_3.7]
Enter index number to select OR [Exit][Previous][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
| |_____Xquery Support
| |_____Evaluation Database
|_____Oracle Coherence
| |_____Coherence Product Files
|_____JDKs
|_____SUN SDK 1.6.0_29
|_____Oracle JRockit 1.6.0_29 SDK
*Estimated size of installation: 1,178.0 MB
Enter [Exit][Previous][Next]>
<------------------------------------------------------------------------------------------------------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------------------------------------------------------------------------------------------------------>
Installing files..
0% 25% 50% 75% 100%
[------------|------------|------------|------------]
[***************************************************]
<------------------------------------------------------------------------------------------------------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------------------------------------------------------------------------------------------------------>
Installing JDK....
0% 25% 50% 75% 100%
[------------|------------|------------|------------]
[***************************************************]
Performing String Substitutions...
<------------------------------------------------------------------------------------------------------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------------------------------------------------------------------------------------------------------>
Configuring OCM...
0% 25% 50% 75% 100%
[------------|------------|------------|------------]
[***************************************************]
<------------------------------------------------------------------------------------------------------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------------------------------------------------------------------------------------------------------>
Installing Patches...
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]>
[root@localhost opt]#
weblogic创建域截屏(linux)
[root@localhost bin]# s
-bash: s: command not found
[root@localhost bin]# ls
commEnv.sh config_builder.sh config.sh pack.sh setPatchEnv.sh startDerby.sh startManagedWebLogic.sh stopDerby.sh unpack.sh upgrade.sh wlscontrol.sh wlsifconfig.sh wlst.sh
[root@localhost bin]# ./config.sh
Unable to instantiate GUI, defaulting to console mode.
<------------------------------------------------------------------------------------------------------------------ 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]> 1
<------------------------------------------------------------------------------------------------------------------ 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]> 1
<------------------------------------------------------------------------------------------------------------------ Fusion Middleware Configuration Wizard ----------------------------------------------------------------------------------------------------------------->
Application Template Selection:
-------------------------------
Available Templates
|_____Basic WebLogic Server Domain - 12.1.1.0 [wlserver_12.1]x
|_____Basic WebLogic SIP Server Domain - 12.1.1.0 [wlserver_12.1] [2]
|_____WebLogic Advanced Web Services for JAX-RPC Extension - 12.1.1.0 [wlserver_12.1] [3]
|_____WebLogic Advanced Web Services for JAX-WS Extension - 12.1.1.0 [wlserver_12.1] [4]
Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]>
<------------------------------------------------------------------------------------------------------------------ Fusion Middleware Configuration Wizard ----------------------------------------------------------------------------------------------------------------->
Edit Domain Information:
------------------------
| Name | Value |
_|________|_____________|
1| *Name: | base_domain |
Enter value for "Name" OR [Exit][Previous][Next]>
<----------------------------------------------------------------------------------------------------------------- Fusion Middleware Configuration Wizard ----------------------------------------------------------------------------------------------------------------->
Select the target domain directory for this domain:
---------------------------------------------------
"Target Location" = [Enter new value or use default "/SpyTest/PVT/Java/container/weblogic12/user_projects/domains"]
Enter new Target Location OR [Exit][Previous][Next]>
<------------------------------------------------------------------------------------------------------------------ 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
<------------------------------------------------------------------------------------------------------------------ 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]>
<------------------------------------------------------------------------------------------------------------------ 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
<------------------------------------------------------------------------------------------------------------------ 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]>
<------------------------------------------------------------------------------------------------------------------ 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]>
<------------------------------------------------------------------------------------------------------------------ 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
** CFGFWK-60050: Property "Password" of User "weblogic" is invalid.
** CFGFWK-60455: The password must be at least 8 alphanumeric characters with at least one number or special character.
Enter option number to select OR [Exit][Previous][Next]> 2
<------------------------------------------------------------------------------------------------------------------ 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]>
<------------------------------------------------------------------------------------------------------------------ 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
<------------------------------------------------------------------------------------------------------------------ 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]>
<------------------------------------------------------------------------------------------------------------------ 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]>
<------------------------------------------------------------------------------------------------------------------ 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
** CFGFWK-60005: WebLogic domain requires the password to be minimum 8 characters
Enter option number to select OR [Exit][Previous][Next]>
<------------------------------------------------------------------------------------------------------------------ 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
** CFGFWK-60005: WebLogic domain requires the password to be minimum 8 characters
Enter option number to select OR [Exit][Previous][Next]> 2
<------------------------------------------------------------------------------------------------------------------ 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]>
<------------------------------------------------------------------------------------------------------------------ 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]> weblogic12
<------------------------------------------------------------------------------------------------------------------ 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
** Invalid input, only integer selection or page movement command are accepted: ["weblogic12"]
Enter option number to select OR [Exit][Previous][Next]> 3
<------------------------------------------------------------------------------------------------------------------ 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]>
<------------------------------------------------------------------------------------------------------------------ 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]>
<------------------------------------------------------------------------------------------------------------------ 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]>
<------------------------------------------------------------------------------------------------------------------ Fusion Middleware Configuration Wizard ----------------------------------------------------------------------------------------------------------------->
Java SDK Selection:
-------------------
1|JRockit SDK 1.6.0_29 @ /SpyTest/PVT/Java/container/weblogic12/jrockit_160_29_D1.2.0-10
->2|Sun SDK 1.6.0_29 @ /SpyTest/PVT/Java/container/weblogic12/jdk160_29
3|Other Java SDK
Enter index number to select OR [Exit][Previous][Next]> 1
<------------------------------------------------------------------------------------------------------------------ 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
<------------------------------------------------------------------------------------------------------------------ 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]>
<------------------------------------------------------------------------------------------------------------------ Fusion Middleware Configuration Wizard ----------------------------------------------------------------------------------------------------------------->
Configure the Administration Server:
------------------------------------
Each WebLogic Server domain must have one Administration Server. The Administration Server 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]>
<------------------------------------------------------------------------------------------------------------------ Fusion Middleware Configuration Wizard ----------------------------------------------------------------------------------------------------------------->
Creating Domain...
0% 25% 50% 75% 100%
[------------|------------|------------|------------]
[***************************************************]
**** Domain Created Successfully! ****