Weblogic--Linux下安装

2024-04-26 10:38
文章标签 linux 安装 weblogic

本文主要是介绍Weblogic--Linux下安装,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

weblogic是一款当前比较常用的web应用服务器,在web项目开发过程中,往往需要用到weblogic进行部署项目,当项目开发完毕之后,又需要将项目部署到服务器上,在工作这段时间里,我接触了weblogic,之前都是用tomcat的, 以下是我工作以来接触weblogic整理的一些笔记,现在分享出来。我这里使用的linux Red hat服务器。 准备安装:weblogic10g安装包(wls1034_generic.jar) ,我这里使用的是weblogic10g,具体版本需要根据服务器类型而定,可以自行到oracle官网下载。下载后将安装包上传到linux服务器上,就可以开始安装了。 安装步骤:

一,安装程序

用SSH连接linux服务器,切换到安装文件所在目录下,执行以下命令:

java -jar wls1034_generic.jar

即可启动安装过程, 默认启动的是图形界面的安装向导. 命令行方式的安装命令用如下方式启动:

java -jar wls1034_generic.jar -mode=console

由于linux一般都是不提供图形界面操作的,所以可以执行第二条命令。默认安装在Oracle目录下。

二,创建域

安装完程序之后,就开始创建域, 创建域步骤:

1、进入 cd /Oracle/Middleware/wlserver_10.3/common/bin目录
2、用ls命令查看目录下有哪些文件
3、执行. /config.sh 文件,创建域

<------------------- 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,Create a new WebLogic domain

4、选择域源

<------------------- 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,Choose Weblogic Platform components

5、设置域信息

<------------------- Fusion Middleware Configuration Wizard ------------------>
Edit Domain Information:
------------------------| Name | Value |_|________|_____________|1| *Name: | base_domain |Enter value for "Name" OR [Exit][Previous][Next]> next  ##这里直接输入next即可,也可以输入自定义域,默认是base_domain

6、为域选择模板域目录,输入next使用默认的域

<------------------- Fusion Middleware Configuration Wizard ------------------>
Select the target domain directory for this domain:
---------------------------------------------------"Target Location" = [Enter new value or use default
"/home/yinm/Oracle/Middleware/user_projects/domains"]Enter new Target Location OR [Exit][Previous][Next]>next  ##默认即可

7、设置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  #这里我使用默认的用户名weblogic,直接输入2设置密码

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."*User password:" = []
Enter new *User password: OR [Exit][Reset][Accept]> 12345678  ##这里是登录weblogic控制台的密码

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.| 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 ChangesEnter option number to select OR [Exit][Previous][Next]> 3  ##这里选择3,设置确认密码

10、输入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."*Confirm user password:" = []
Enter new *Confirm user password: OR [Exit][Reset][Accept]> 12345678  ##记住,确认密码必须与第8步设置的一致

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.| 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 ChangesEnter option number to select OR [Exit][Previous][Next]> next  ##如无线修改,直接输入next即可

12、配置域模式

<------------------- Fusion Middleware Configuration Wizard ------------------>
Domain Mode Configuration:
--------------------------
Enable Development or Production Mode for this domain.->1|Development Mode2|Production Mode
Enter index number to select OR [Exit][Previous][Next]> 2  ##这些选择2,Production Mode(生成模式)

13、选择JDK

<------------------- Fusion Middleware Configuration Wizard ------------------>
Java SDK Selection:
-------------------->1|Sun SDK 1.6.0_45 @ /usr/local/jdk1.6.0_452|Other Java SDKEnter index number to select OR [Exit][Previous][Next]> 1  ##这里选择1

14、可选配置

<------------------- Fusion Middleware Configuration Wizard ------------------>
Select Optional Configuration:
------------------------------1|Administration Server [ ]2|Managed Servers, Clusters and Machines [ ]3|RDBMS Security Store [ ]** Invalid input, only integer selection or page movement command are** accepted: y
Enter index number to select OR [Exit][Previous][Next]> 1#这里选择1

15、下一步,输入next

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

16、设置监听地址

<------------------- 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]>2  ##选择2,设置监听地址

17、配置监听地址

<------------------- 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 |
Enter value for "Listen address" OR [Exit][Previous][Next]>10.211.*.*  ##这里输入服务器的ip

18、配置监听端口

<------------------- 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: | 10.211.*.* |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"5 - Discard ChangesEnter option number to select OR [Exit][Previous][Next]> next  ##默认端口是7001,如果无需修改,直接输入next

19、创建weblogic域成功

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

20、启动weblogic

1、进入  cd /Oracle/Middleware/user_projects/domains/base_domain 目录
2、输入 ./startWebLogic.sh启动weblogic

这篇关于Weblogic--Linux下安装的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/937358

相关文章

防止Linux rm命令误操作的多场景防护方案与实践

《防止Linuxrm命令误操作的多场景防护方案与实践》在Linux系统中,rm命令是删除文件和目录的高效工具,但一旦误操作,如执行rm-rf/或rm-rf/*,极易导致系统数据灾难,本文针对不同场景... 目录引言理解 rm 命令及误操作风险rm 命令基础常见误操作案例防护方案使用 rm编程 别名及安全删除

Linux下MySQL数据库定时备份脚本与Crontab配置教学

《Linux下MySQL数据库定时备份脚本与Crontab配置教学》在生产环境中,数据库是核心资产之一,定期备份数据库可以有效防止意外数据丢失,本文将分享一份MySQL定时备份脚本,并讲解如何通过cr... 目录备份脚本详解脚本功能说明授权与可执行权限使用 Crontab 定时执行编辑 Crontab添加定

使用docker搭建嵌入式Linux开发环境

《使用docker搭建嵌入式Linux开发环境》本文主要介绍了使用docker搭建嵌入式Linux开发环境,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面... 目录1、前言2、安装docker3、编写容器管理脚本4、创建容器1、前言在日常开发全志、rk等不同

RabbitMQ 延时队列插件安装与使用示例详解(基于 Delayed Message Plugin)

《RabbitMQ延时队列插件安装与使用示例详解(基于DelayedMessagePlugin)》本文详解RabbitMQ通过安装rabbitmq_delayed_message_exchan... 目录 一、什么是 RabbitMQ 延时队列? 二、安装前准备✅ RabbitMQ 环境要求 三、安装延时队

linux系统上安装JDK8全过程

《linux系统上安装JDK8全过程》文章介绍安装JDK的必要性及Linux下JDK8的安装步骤,包括卸载旧版本、下载解压、配置环境变量等,强调开发需JDK,运行可选JRE,现JDK已集成JRE... 目录为什么要安装jdk?1.查看linux系统是否有自带的jdk:2.下载jdk压缩包2.解压3.配置环境

Linux搭建ftp服务器的步骤

《Linux搭建ftp服务器的步骤》本文给大家分享Linux搭建ftp服务器的步骤,本文通过图文并茂的形式给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友参考下吧... 目录ftp搭建1:下载vsftpd工具2:下载客户端工具3:进入配置文件目录vsftpd.conf配置文件4:

Linux实现查看某一端口是否开放

《Linux实现查看某一端口是否开放》文章介绍了三种检查端口6379是否开放的方法:通过lsof查看进程占用,用netstat区分TCP/UDP监听状态,以及用telnet测试远程连接可达性... 目录1、使用lsof 命令来查看端口是否开放2、使用netstat 命令来查看端口是否开放3、使用telnet

Linux系统管理与进程任务管理方式

《Linux系统管理与进程任务管理方式》本文系统讲解Linux管理核心技能,涵盖引导流程、服务控制(Systemd与GRUB2)、进程管理(前台/后台运行、工具使用)、计划任务(at/cron)及常用... 目录引言一、linux系统引导过程与服务控制1.1 系统引导的五个关键阶段1.2 GRUB2的进化优

Python库 Django 的简介、安装、用法入门教程

《Python库Django的简介、安装、用法入门教程》Django是Python最流行的Web框架之一,它帮助开发者快速、高效地构建功能强大的Web应用程序,接下来我们将从简介、安装到用法详解,... 目录一、Django 简介 二、Django 的安装教程 1. 创建虚拟环境2. 安装Django三、创

Linux查询服务器 IP 地址的命令详解

《Linux查询服务器IP地址的命令详解》在服务器管理和网络运维中,快速准确地获取服务器的IP地址是一项基本但至关重要的技能,下面我们来看看Linux中查询服务器IP的相关命令使用吧... 目录一、hostname 命令:简单高效的 IP 查询工具命令详解实际应用技巧注意事项二、ip 命令:新一代网络配置全