Weblogic--Linux下安装

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

本文主要是介绍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

相关文章

wordpress安装教程_如何在linux中安装wordpress程序-apache php(服务器学习十二)

最后附带安装工程中的问题! wordpress安装教程_如何在linux中安装wordpress程序 本套wordpress安装教程是本人在linux中安装wordpress程序之后记录下来的,所有的步骤也都是经过本人自己验证过的,所以请放心看完整个wordpress程序的安装过程。   在linux系统中安装wordpress程序之前需要准备安装好php,mysql,apache htt

Linux下安装mysql(服务器学习十)

参考   https://www.jianshu.com/p/276d59cbc529   针对自己的问题略有改动!亲测可用!! Mysql数据库的安装对于开发者来说,是我们必然会面对的问题,它的安装过程其实并不复杂,并且网络上的安装教程也非常多,但是对于新手来说,各种不同形式的安装教程,又给新手们带来了要选择哪种方式进行安装的难题,而且很多时候按照教程也没有能够安装成功,安装过程出现各种各

CentOS、Ubuntu、Debian三个linux选择哪一个(服务器学习九)

Linux有非常多的发行版本,从性质上划分,大体分为由商业公司维护的商业版本与由开源社区维护的免费发行版本。 商业版本以Redhat为代表,开源社区版本则以debian为代表。这些版本各有不同的特点,在不同的应用领域发挥着不同的作用,不能一概而论。而绝大多数VPS上只提供开源社区维护的发行版本。下面就这些不同的Linux发行版进行简单的分析。 Ubuntu Ubuntu近些年的粉丝越来越多,

谷歌云tomcat安装成功后,ip:8080 访问网络一直等待,访问不到tomcat的首页问题解决(学习五)

问题排查如下: 1 内网  netstat -tunlp |grep 8080 检测端口情况 说明8080端口正常 2 外网ping ip  正常 3.外网 telnet ip 8080  无法通讯 于是判定谷歌云 8080端口未开放。开放步骤如下: 1创建如下防火墙规则: 2 添加网络标记 保存后    telnet ip  8080  这时候应该就通了,浏览器再访问

Linux下启动Tomcat遇到问题解决(学习四)

原来在Linux使用Tomcat不输工程使用的是新创建的用户非ROOT权限创建的,但可能会碰到一种情况,在这种用户身份下启动工程后,关闭SSH工具,工程便无法访问,于是需要换到root来执行,但会出现以下报错,导致工程无法启动!报错如下: Neither the JAVA_HOME nor the JRE_HOME environment variable is definedAt least

基于docker安装flink

文章目录 环境准备Flinkdocker-compose方式二进制部署 KafkaMysql Flink 执行 SQL命令进入SQL客户端CLI执行SQL查询表格模式变更日志模式Tableau模式窗口计算 窗口计算滚动窗口demo滑动窗口 踩坑 环境准备 Flink docker-compose方式 version: "3"services:jobmanager:imag

rust打包编译为mac或者linux可执行文件,发送到别的电脑不能运行

如果使用rust项目编译为linux或者mac可执行文件,发送到别的电脑之后,不可以直接运行,而是显示一个空白文件,双击也没有反应,其实这是因为这个文件没有可执行权限导致的,添加可执行权限就可以了: 使用命令添加可执行权限: chmod 777 文件名 添加完成之后,就显示可执行了: 然后再双击或者命令行运行就可以了:

linux 权限和权限的设置

在Linux中,文件和目录的权限是一个重要的安全特性。这些权限决定了哪些用户可以读取、写入或执行某个文件或目录。以下是关于Linux权限和如何设置它们的基本信息。 权限类型 Linux中有三种基本的权限类型: 读取(r):允许用户读取文件的内容或列出目录的内容。写入(w):允许用户修改文件的内容或在目录中创建和删除文件。执行(x):允许用户执行文件(如果它是一个程序或脚本)或进入目录(即cd

centos7安装nginx 报./configure: error: C compiler cc is not found

CentOS 7 下 安装 nginx 执行配置命令 ./configure  时提示以下错误:                解决: 执行以下命令: yum -y install gcc gcc-c++ autoconf automake make  上述安装成功后在尝试安装显示安装成功

LINUX下安装卸载软件

1、源代码包的安装       gzip   -d   apache_1.3.20.tar.gz   (解压)       tar   xvf   apache_1.3.20.tar   (解包)       cd   apache_1.3.20       ./configure   (配置)   ----./configure   --help(查看configure选项)