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线程之线程的创建、属性、回收、退出、取消方式

《Linux线程之线程的创建、属性、回收、退出、取消方式》文章总结了线程管理核心知识:线程号唯一、创建方式、属性设置(如分离状态与栈大小)、回收机制(join/detach)、退出方法(返回/pthr... 目录1. 线程号2. 线程的创建3. 线程属性4. 线程的回收5. 线程的退出6. 线程的取消7.

SQL server数据库如何下载和安装

《SQLserver数据库如何下载和安装》本文指导如何下载安装SQLServer2022评估版及SSMS工具,涵盖安装配置、连接字符串设置、C#连接数据库方法和安全注意事项,如混合验证、参数化查... 目录第一步:打开官网下载对应文件第二步:程序安装配置第三部:安装工具SQL Server Manageme

Linux下进程的CPU配置与线程绑定过程

《Linux下进程的CPU配置与线程绑定过程》本文介绍Linux系统中基于进程和线程的CPU配置方法,通过taskset命令和pthread库调整亲和力,将进程/线程绑定到特定CPU核心以优化资源分配... 目录1 基于进程的CPU配置1.1 对CPU亲和力的配置1.2 绑定进程到指定CPU核上运行2 基于

golang程序打包成脚本部署到Linux系统方式

《golang程序打包成脚本部署到Linux系统方式》Golang程序通过本地编译(设置GOOS为linux生成无后缀二进制文件),上传至Linux服务器后赋权执行,使用nohup命令实现后台运行,完... 目录本地编译golang程序上传Golang二进制文件到linux服务器总结本地编译Golang程序

Linux下删除乱码文件和目录的实现方式

《Linux下删除乱码文件和目录的实现方式》:本文主要介绍Linux下删除乱码文件和目录的实现方式,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录linux下删除乱码文件和目录方法1方法2总结Linux下删除乱码文件和目录方法1使用ls -i命令找到文件或目录

Linux在线解压jar包的实现方式

《Linux在线解压jar包的实现方式》:本文主要介绍Linux在线解压jar包的实现方式,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录linux在线解压jar包解压 jar包的步骤总结Linux在线解压jar包在 Centos 中解压 jar 包可以使用 u

linux解压缩 xxx.jar文件进行内部操作过程

《linux解压缩xxx.jar文件进行内部操作过程》:本文主要介绍linux解压缩xxx.jar文件进行内部操作,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录一、解压文件二、压缩文件总结一、解压文件1、把 xxx.jar 文件放在服务器上,并进入当前目录#

Linux系统性能检测命令详解

《Linux系统性能检测命令详解》本文介绍了Linux系统常用的监控命令(如top、vmstat、iostat、htop等)及其参数功能,涵盖进程状态、内存使用、磁盘I/O、系统负载等多维度资源监控,... 目录toppsuptimevmstatIOStatiotopslabtophtopdstatnmon

在Linux中改变echo输出颜色的实现方法

《在Linux中改变echo输出颜色的实现方法》在Linux系统的命令行环境下,为了使输出信息更加清晰、突出,便于用户快速识别和区分不同类型的信息,常常需要改变echo命令的输出颜色,所以本文给大家介... 目python录在linux中改变echo输出颜色的方法技术背景实现步骤使用ANSI转义码使用tpu

linux hostname设置全过程

《linuxhostname设置全过程》:本文主要介绍linuxhostname设置全过程,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录查询hostname设置步骤其它相关点hostid/etc/hostsEDChina编程A工具license破解注意事项总结以RHE