Oracle Weblogic--CentOS Linux 8.5.2安装weblogic11G

简介: Weblogic在centos上详细安装步骤及安装过程中可能遇到的问题

1 java的安装

下载java 1.6版本jdk,上传到服务器上

./jdk-6u45-linux-x64.bin

      上面的命令实际是解压jdk包至当前目录下,将解压的目录移动至/usr/local目录下,编辑root用户home目录下的.bash_profile文件,加入java相关内容,编辑后的.bash_profile文件如下。

[root@ ~]# cat .bash_profile# .bash_profile# Get the aliases and functionsif [ -f ~/.bashrc ]; then                . ~/.bashrc
fi# User specific environment and startup programsexportPS1='[\u@ \W]\$ 'exportJAVA_HOME=/usr/local/jdk1.6.0_45
PATH=$PATH:$HOME/bin
#export CLASSPATH=$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jarexport PATH
exportPATH=$PATH:/usr/local/mysql/bin:$JAVA_HOME/bin

编辑完后,运行一个这个脚本文件,使更改在当前会话生效。

[root@ ~]# source .bash_profile[root@ ~]#

看一下当前的java版本

[root@ ~]# java -version        java version "1.6.0_45"        Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
        Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)

2 安装weblogic

下载wls1036_generic.jar上传到服务器,使用java命令运行这个包安装weblogic

[root@ ~]# java -jar wls1036_generic.jar

进入安装向导,依据向导进行安装。

Unable to instantiate GUI, defaulting to console mode.
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]>

按回车键继续安装

Enter new Middleware Home OR [Exit][Previous][Next]> /usr/local/webogic/

输入weblogic的目标安装目录,按enter键继续

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->
Choose Middleware Home Directory:
---------------------------------"Middleware Home"= [/usr/local/webogic]
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]>

使用当前安装目录,按回车继续

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

键入3,回车

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

输入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"]
    ** Do you wish to bypass initiation of the configuration manager and
    **  remain uninformed of critical security issues in your configuration?
Enter [Yes][No]? Yes

输入yes回车

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

选择典型安装,键入1回车

  <-------------------- 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/local/jdk1.6.0_45[x]
           *Estimated size of installation:  690.2 MB
      Enter 1 to add or >=2 to toggle selection  OR [Exit][Previous][Next]>

这里如果jdk版本同weblogic不兼容,第2条不会出现,如果手动输入jdk的目录,会出现下面错误

<-------------------- 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
    ** Invalid input, only integer selection or page movement command are
    ** accepted: /usr/local/jdk-16.0.1
   *Estimated size of installation:  690.2 MB

weblogic兼容版本使1.6以上,不过如果jdk版本太高了,比如16,17 之类的,weblogic也不会兼容。

如果没有兼容性的问题,可以看到第二条最右边有个x,直接回车继续安装就可以了。

   <-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->
       Choose Product Installation Directories:
----------------------------------------       Middleware Home Directory: [/usr/local/webogic]
       Product Installation Directories:
1|WebLogic Server: [/usr/local/webogic/wlserver_10.3]
2|Oracle Coherence: [/usr/local/webogic/coherence_3.7]
      Enter index number to select OR [Exit][Previous][Next]>

直接回车进入下一步

--------------------------------------------------          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
          |_____Oracle Coherence
               |_____Coherence Product Files
          *Estimated size of installation: 690.3 MB
      Enter [Exit][Previous][Next]>

回车 继续

  Sep 1, 20222:24:07 PM java.util.prefs.FileSystemPreferences$2 run
      INFO: Created user preferences directory.
      <-------------------- 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 ...

3 配置weblogic域

进入下面这个目录

[root@ bin]# pwd/usr/local/webogic/wlserver_10.3/common/bin

运行配置脚本

[root@ ~]# ./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

选择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

这里没有定制模板可用,选择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]>

可以输入自己的域名,如果想使用默认域名,回车继续

<------------------- Fusion Middleware Configuration Wizard ------------------>
Select the target domain directory for this domain:
---------------------------------------------------"Target Location"= [Enter new value or use default
"/usr/local/webogic/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

输入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]> weblogic0

输入密码,回车

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

输入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]> weblogic0

再次输入密码,回车

<------------------- 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|Sun SDK 1.6.0_45 @ /usr/local/jdk1.6.0_45
2|Other Java SDK
Enter index number to select 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回车,也可以选择2配置weblogic集群

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

第一项Administration Server已经选择,回车继续

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%
    [------------|------------|------------|------------]
    [***************************************************]

安装在这里卡住了,解决的方案是进入/usr/local/jdk1.6.0_45/jre/lib/security目录,编辑java.security 文件,把其中一行改成这样

[root@ security]# vi java.security[root@ security]# grep securerandom.source java.security# the securerandom.source property. If an exception occurs when    securerandom.source=file:/dev/./urandom
# Specifying this system property will override the securerandom.source

这个文件编辑存盘之后,删去新建域文件夹,重新配置一遍,就可以完成配置了,最后的一屏显示如下。

  <------------------- Fusion Middleware Configuration Wizard ------------------>
    Creating Domain...
0%          25%          50%          75%          100%
    [------------|------------|------------|------------]
    [***************************************************]
    **** Domain Created Successfully! ****

4 启动并登录weblogic

进入下面这个目录

[root@ base_domain]# pwd   /usr/local/webogic/user_projects/domains/base_domain

运行weglogic启动脚本

./startWebLogic.sh

打开浏览器,就可以登录weblogic了

屏幕截图(1172).png





相关文章
|
3月前
|
存储 分布式计算 Linux
安装篇--CentOS 7 虚拟机安装
VMware 装 CentOS 7 不知道从哪下手?这篇超详细图文教程手把手教你在 VMware Workstation 中完成 CentOS 7 桌面系统的完整安装流程。从 ISO 镜像下载、虚拟机配置,到安装图形界面、设置用户密码,每一步都有截图讲解,适合零基础新手快速上手。装好之后无论你是要搭 Hadoop 集群,还是练 Linux ,这个环境都够你折腾一整天!
1320 2
|
4月前
|
Ubuntu Linux
计算机基础知识:linux系统怎么安装?
在虚拟机软件中创建一个新的虚拟机,并选择相应操作系统类型和硬盘空间大小等参数。将下载的 ISO 镜像文件加载到虚拟机中。启动虚拟机,进入安装界面,并按照步骤进行安装。安装完成后,可以在虚拟机中使用 Linux 系统。
|
2月前
|
安全 Linux iOS开发
Nessus Professional 10.10 Auto Installer for RHEL 10, AlmaLinux 10, Rocky Linux 10 - Nessus 自动化安装程序
Nessus Professional 10.10 Auto Installer for RHEL 10, AlmaLinux 10, Rocky Linux 10 - Nessus 自动化安装程序
196 6
Nessus Professional 10.10 Auto Installer for RHEL 10, AlmaLinux 10, Rocky Linux 10 - Nessus 自动化安装程序
|
3月前
|
安全 关系型数据库 MySQL
CentOS 7 yum 安装 MySQL教程
在CentOS 7上安装MySQL 8,其实流程很清晰。首先通过官方Yum仓库来安装服务,然后启动并设为开机自启。最重要的环节是首次安全设置:需要先从日志里找到临时密码来登录,再修改成你自己的密码,并为远程连接创建用户和授权。最后,也别忘了在服务器防火墙上放行3306端口,这样远程才能连上。
671 16
|
2月前
|
消息中间件 Kafka Linux
Linux下安装Kafka 3.9.1
本文介绍Kafka 3.9.1版本的安装与配置,包括通过ZooKeeper或KRaft模式启动Kafka。涵盖环境变量设置、日志路径修改、集群UUID生成、存储格式化及服务启停操作,适用于Linux环境下的部署实践。
316 0
|
4月前
|
存储 关系型数据库 MySQL
在CentOS 8.x上安装Percona Xtrabackup工具备份MySQL数据步骤。
以上就是在CentOS8.x上通过Perconaxtabbackup工具对Mysql进行高效率、高可靠性、无锁定影响地实现在线快速全量及增加式数据库资料保存与恢复流程。通过以上流程可以有效地将Mysql相关资料按需求完成定期或不定期地保存与灾难恢复需求。
400 10
|
4月前
|
网络协议 关系型数据库 Linux
【App Service Linux】在Linux App Service中安装 tcpdump 并抓取网络包
在App Service for Linux环境中,无法像Windows一样直接使用网络排查工具抓包。本文介绍了如何通过TCPDUMP在Linux环境下抓取网络包,包括SSH进入容器、安装tcpdump、执行抓包命令及下载分析文件的完整操作步骤。
228 5
|
4月前
|
弹性计算 安全 Linux
阿里云服务器ECS安装宝塔Linux面板、安装网站(新手图文教程)
本教程详解如何在阿里云服务器上安装宝塔Linux面板,涵盖ECS服务器手动安装步骤,包括系统准备、远程连接、安装命令执行、端口开放及LNMP环境部署,手把手引导用户快速搭建网站环境。
|
4月前
|
运维 网络协议 Linux
CentOS下Bind服务的安装与故障排查
通过以上的步骤,您应该能够在CentOS系统上安装并配置BIND DNS服务,并进行基本的故障排查。
426 0