一、安装前准备工作:安装jdk,配置环境变量

二、开始安装:

1、进入安装路径:/home/weblogic

2、将安装文件wls1036_generic.jar放入安装目录

3、chmod a+x wls1036_generic.jar  赋予安装文件可执行的权限

4、执行安装命令:java -jar filename.jar -mode=console

注:如果安装文件是.bin格式的文件,安装命令为:./wls1036_generic.bin -mode=console;(你可以不加“-mode=console”的控制台文本模式,因为在你安装时无法启动图形安装界面时它会自动的进入文本控制台模式的)

5、控制台安装:

一、安装weblogic10.3.6 64位:

-bash-4.1$ java -jar wls1036_generic.jar
Unable to instantiate GUI, defaulting to console mode.无法实例化 GUI,默认进入控制台模式。
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
"/bea/weblogic/Oracle/Middleware"]

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

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

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

"Middleware Home" = [/bea/weblogic]

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

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

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

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

"Middleware Home" = [/bea/weblogic]

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

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

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

Warning

/bea/weblogic directory is not empty. Proceed with installation?

Enter [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"]

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]> 2

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

Choose Products and Components:
-------------------------------

Release 10.3.6.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: 690.2 MB

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

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

Choose Products and Components:
-------------------------------

Release 10.3.6.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]
        |_____Coherence Product Files [2.1]
        |_____Coherence Examples [2.2]

*Estimated size of installation: 678.7 MB

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

<-------------------- 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/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64[x]

*Estimated size of installation:  678.7 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: [/bea/weblogic]

Product Installation Directories:

"WebLogic Server" = [Enter new value or use default
"/bea/weblogic/wlserver_10.3"]

Enter new WebLogic Server 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

*Estimated size of installation: 678.8 MB

Enter [Exit][Previous][Next]>

<-------------------- 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 ...

二、配置domains

cd /home/weblogic/Oracle/Middleware/wlserver_10.3/common/bin
-bash-4.1$ ./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 - 10.3.6.0 [wlserver_10.3]x
    |_____Basic WebLogic SIP Server Domain - 10.3.6.0 [wlserver_10.3] [2]
    |_____WebLogic Advanced Web Services for JAX-RPC Extension - 10.3.6.0 [wlserver_10.3] [3]
    |_____WebLogic Advanced Web Services for JAX-WS Extension - 10.3.6.0 [wlserver_10.3] [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]> wlyxweb

<------------------- Fusion Middleware Configuration Wizard ------------------>

Edit Domain Information:
------------------------

|  Name  |  Value  |
  _|________|_________|
  1| *Name: | wlyxweb |

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

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

<------------------- Fusion Middleware Configuration Wizard ------------------>

Select the target domain directory for this domain:
---------------------------------------------------

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

Enter new Target Location OR [Exit][Previous][Next]> /wlyx/webapp/domains

<------------------- 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]> welwlyx50

<------------------- 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]> welwlyx50

<------------------- 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]> 2

<------------------- Fusion Middleware Configuration Wizard ------------------>

Java SDK Selection:
-------------------

->1|N/A SDK 1.6.0_24 @ /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64
  2|Other Java SDK

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

<------------------- Fusion Middleware Configuration Wizard ------------------>

Java SDK Selection:
-------------------

"JVM Directory" = []

Enter new JVM Directory OR [Exit][Previous][Next]> /bea/jdk/jdk1.6.0_37

<------------------- Fusion Middleware Configuration Wizard ------------------>

Java SDK Selection:
-------------------

"JVM Directory" = [/bea/jdk/jdk1.6.0_37]

Enter new JVM Directory OR [Exit][Previous][Next]>

<------------------- 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! ****

四:weblogic的使用

1、启动服务时无需输入用户名和密码

进入到你新建的域中:cd /home/weblogic/Oracle/Middleware/user_projects/domains/base_domain/servers/AdminServer

然后在该文件夹下新建名为security的文件夹:mkdir security

在刚刚新建是文件夹中新建名为boot.properties文件:vi boot.properties

然后在该文件中输入:

username=weblogic

password=weblogc123

保存后退出。重启weblogic。此时你会发觉,weblogic再也不会提示要求你输入weblogic管理台的用户名和密码了。

重启后我们来到刚刚的新建的文件夹中查看新建的文件:
cd /home/weblogic/Oracle/Middleware/user_projects/domains/base_domain/servers/AdminServer/security

vi boot.properties发现它的内容已经变成下面这个样子了:

#Sun Aug 04 10:23:54 CST 2013

password={AES}KWRQeICbIyJLO3zh+v+/9JeJtCzpK9ge6j4pqf9sSqA\=

username={AES}ICJVfwErXU5MOQyVPzcvVpKBkK6gI6UFlwqkkEuVgBg\=

Weblogic把它给加密了,因此只有装Weblogic的那个人即System Admin才真正知道Weblogic控制台的登录信息,这样就很安全了。

2、启动weblogic服务

cd /home/weblogic/Oracle/Middleware/user_projects/domains/base_domain

./startWeblogic.sh

nohup ./startWeblogic.sh &(nohup命令:如果你正在运行一个进程,而且你觉得在退出帐户时该进程还不会结束,那么可以使用nohup命令。
该命令可以在你退出帐户/关闭终端之后继续运行相应的进程。nohup就是不挂起的意思( no hang up),& 就是在后台运行),如果该命令无法执行,可换成

sudo nohup ./startWeblogic.sh &

3、停止Weblogic服务

cd /home/weblogic/Oracle/Middleware/user_projects/domains/base_domain

./stopWeblogic.sh

找台服务器 启动浏览器 输入 http://10.85.31.242:7001/console

输入用户名、密码登录后一直在首页转圈,这是因为Linux下JDK的BUG造成的,修改下配置即可:

修改 $JAVA_HOME/jre/lib/security/java.security  文件,

替换securerandom.source=file:/dev/random

为 securerandom.source=file:/dev/./urandom。对所有使用JVM的应用生效。

转载于:https://www.cnblogs.com/JOEH60/p/11280682.html

Linux下命令行安装WebLogic 10.3.6相关推荐

  1. Linux下命令行安装weblogic10.3.6

    先创建weblogic账户 groupadd weblogic useradd -g weblogic weblogic passwd weblogic mkdir /home/weblogic ch ...

  2. linux下命令行安装anaconda3+pytorch+fastai

    为啥用anaconda anaconda 确实很好用,切换python版本也方便.而且如果服务器用的人多,用anaconda搞个自己的环境很舒服. anaconda3安装 官网选择要下载的版本.我用的 ...

  3. 命令行给Linux安装中文,Linux下命令行安装TeamViewer

    CentOS 7安装和远程登录 1.下载安装包 [root@centos7 ~]# wget https://dl.fedoraproject.org/pub/epel/epel-release-la ...

  4. LibOpenCM3(一) Linux下命令行开发环境配置

    目录 LibOpenCM3(一) Linux下命令行开发环境配置 LibOpenCM3(二) 项目模板 Makefile分析 LibOpenCM3(三) .ld文件(连接器脚本)和startup代码说 ...

  5. Linux下命令行压缩照片或图片的脚本 (ImageMagick使用心得,convert,import,display实例)

    from: Linux下命令行压缩照片或图片的脚本 (ImageMagick使用心得,convert,import,display实例) 在认识ImageMagick之前,我使用的图像浏览软件是Kui ...

  6. windows、linux下命令行登录oracle数据库方法,查询sga参数值sql语句

    windows 下 cmd 命令行登录 oracle 数据库方法.直接就登录进来了. C:\Users\Administrator>sqlplusSQL*Plus: Release 11.2.0 ...

  7. Kali Linux下命令行终端的中英文切换

    Kali Linux下命令行终端的中英文切换 由于自己想下载个kali linux学习,但是苦于自己设备受限,下载了kali官网的light版本: kali-linux-light-2019.1a-a ...

  8. linux命令行处理图片基础,linux下命令行图片处理工具ImageMagick

    linux下命令行图片处理工具ImageMagick (2012-05-25 21:21:40) 标签: linux imagemagick 命令行图片处理 it ImageMagick的主要命令如下 ...

  9. linux中C编译命令,linux下命令行下编译c程式

    linux下命令行下编译c程式 2008-02-23 05:41:36来源:互联网 阅读 () C 是任何版本的UNIX上的系统语言. C 在过去的二十年中有了很大的发展. 在80年代末期美国国家标准 ...

  10. Linux下命令行打开word、excel、pdf文件

    Linux下命令行打开word.excel.pdf文件 1.打开word文件 wps xxx.docx xdg-open xxx.docx 2.打开excel文件 et xxx.xlsx xdg-op ...

最新文章

  1. 如何去掉系统快捷方式的箭头(转载)
  2. 整合分页pageHelper||整合分页pageHelper-starter不用做任何分页相关的配置
  3. kali怎么成为管理员_网站死链是什么、是怎么引起的以及死链对SEO优化的影响?...
  4. python之路 mysql 博客园_Python之路(二十七):Mysql(下)
  5. zabbix基础之环境搭建
  6. 从你的全世界路过-论演员的自我修养
  7. 了解如何使用ASP.NET Core 3.1构建Web应用程序
  8. python儿童入门视频-老男孩Python视频教程全套完整版!无偿分享~
  9. mysql用 fifo 记录日志_Python学习第四十七天记录打call:mysqlclient操作MySQL关系型数据库...
  10. FFMPEG编译ffplay
  11. 13个不容错过的Java项目
  12. 单片机蜂鸣器唱歌c语言程序,STC89C52单片机蜂鸣器唱歌实验
  13. sin30度用c语言转换弧度制,【数学】弧度和角度的转换
  14. JVM-垃圾回收机制
  15. html5怎么给图片加边框,怎么给图片加边框 【解决模式】
  16. Salesforce随笔: 解决被指定给Chatter相关用户的RecordType无法被删除的问题
  17. vivo系统升级服务器无响应,vivo系统升级教程
  18. 【基础版】大学计算机-计算思维导论
  19. sql server 设置自动备份
  20. DRAM 内存介绍(一)

热门文章

  1. 类似于Function.bind的dojo.hitch --dojo Quick Start/dojo入门手册4
  2. 统计挖掘那些事(五)--(理论+案例)如何通俗地理解极大似然估计?
  3. html没有prefix属性,HTML前缀属性(Open Graph Protocol)的含义?
  4. Reading Thinking in Java #3
  5. 第二章:09流程控制[2switch]
  6. SaltStact自动化运维工具03
  7. windows server 2003 远程桌面最大连接数调整与windows 2008远程桌面后,本地帐号自动锁定...
  8. Spring mvc框架 controller间跳转 ,重定向 ,传参
  9. NTP授时系统(GPS时钟产品-GPS授时产品)
  10. [转]ffmpeg库音频解码示例