WebLogic 笔记汇总

news/2024/9/18 12:08:02/ 标签: 笔记

WebLogic 笔记汇总

一、weblogic安装

1、创建用户和用户组

groupadd weblogicuseradd -g weblogic  weblogic
# 添加用户,并用-g参数来制定 web用户组passwd weblogic
# passwd命令修改密码# 在文件末尾增加以下内容
cat >>/etc/security/limits.conf<<'EOF'
weblogic soft nofile 65535
weblogic hard nofile 65536
weblogic soft nproc 16384
weblogic soft stack 10240
EOF

image-20240902190615414

2、安装Java

Java Archive Downloads - Java SE 11 | Oracle 中国

mkdir /data/businessServer/ -p
tar xf jdk-11.0.23_linux-x64_bin.tar.gz -C /data/businessServer/cat >>/etc/profile<<'EOF'
JAVA_HOME=/data/businessServer/jdk-11.0.23
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
EOFsource /etc/profile

image-20240902191501310

3、安装weblogic

Oracle Fusion Middleware Software Downloads | Oracle 中国

image-20240902103443821

weblogic版本区别

Free Oracle WebLogic Server 12c (12.2.1) Installers for Development | Oracle 中国

三个版本 的主要区别:

lite版主要为开发和测试使用,也可以使用OPatch工具打补丁;

supplemental版也主要为开发和测试使用,还包含一些demo程序和帮助文档;

slim版主要为虚拟化用于开发、测试和生产环境使用,包含一些运行时需要的软件,但不包含demo示例程序、weblogic console、weblogic clients、Maven插件 和 JavaDB

image-20240903131853046

1、上传并解压
# 上传并解压
mkdir /data/businessServer/software 
mv  fmw_14.1.1.0.0_wls_lite_Disk1_1of1.zip  /data/businessServer/software
cd /data/businessServer/software
unzip fmw_14.1.1.0.0_wls_lite_Disk1_1of1.zipchown weblogic:weblogic /data/businessServer/software/fmw_14.1.1.0.0_wls_lite_generic.jar
chown weblogic:weblogic /data/businessServer/jdk-11.0.23

image-20240902191950316

2、创建oraInst.loc
mkdir /u01/oraInventory -p
chown -R weblogic.weblogic /u01
su - weblogiccd /u01
cat >oraInst.loc<<'EOF'
inventory_loc=/u01/oraInventory
inst_group=weblogic
EOF

image-20240902192042741

3、创建响应文件wls.rsp
cat >wls.rsp<<'EOF'
[ENGINE]
#DO NOT CHANGE THIS.
Response File Version=1.0.0.0.0
[GENERIC]
#The oracle home location. This can be an existing Oracle Home or a new Oracle Home
ORACLE_HOME=/u01/Middleware
#Set this variable value to the Installation Type selected. e.g. WebLogic Server, Coherence, Complete with Examples.
INSTALL_TYPE=WebLogic Server
#Provide the My Oracle Support Username. If you wish to ignore Oracle Configuration Manager configuration provide empty string for user name.
MYORACLESUPPORT_USERNAME=
#Provide the My Oracle Support Password
MYORACLESUPPORT_PASSWORD=<SECURE VALUE>
#Set this to true if you wish to decline the security updates. Setting this to true and providing empty string for My Oracle Support username will ignore the Oracle Configuration Manager configuration
DECLINE_SECURITY_UPDATES=true
#Set this to true if My Oracle Support Password is specified
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
#Provide the Proxy Host
PROXY_HOST=
#Provide the Proxy Port
PROXY_PORT=
#Provide the Proxy Username
PROXY_USER=
#Provide the Proxy Password
PROXY_PWD=<SECURE VALUE>
#Type String (URL format) Indicates the OCM Repeater URL which should be of the format [scheme[Http/Https]]://[repeater host]:[repeater port]
COLLECTOR_SUPPORTHUB_URL=
EOF

image-20240902192146311

4、安装weblogic
java -jar /data/businessServer/software/fmw_14.1.1.0.0_wls_lite_generic.jar -silent -responseFile /u01/wls.rsp -invPtrLoc /u01/oraInst.loc

image-20240902192529046

二、weblogic配置

1、建域方式

1、wlst命令行
su - weblogic[weblogic@oracle ~]$ cd /u01/Middleware/oracle_common/common/bin
[weblogic@oracle bin]$ ./wlst.sh Initializing WebLogic Scripting Tool (WLST) ...Welcome to WebLogic Server Administration Scripting ShellType help() for help on available commands# 读入基本模板
wls:/offline> readTemplate("/u01/Middleware/wlserver/common/templates/wls/wls.jar")
WARNING: The readTemplate is deprecated. Use selectTemplate followed by loadTemplates in place of readTemplate.
# 进入管理server
wls:/offline/base_domain>cd('Servers/AdminServer')
# 配置监听地址
wls:/offline/base_domain/Server/AdminServer>set('ListenAddress','')
# 配置监听端口
wls:/offline/base_domain/Server/AdminServer>set('ListenPort', 7001) 
wls:/offline/base_domain/Server/AdminServer>cd('../..')
wls:/offline/base_domain>cd('Security/base_domain/User/weblogic')
# 设置管理员密码
wls:/offline/base_domain/Security/base_domain/User/weblogic>cmo.setPassword('passw0rd') 
wls:/offline/base_domain/Security/base_domain/User/weblogic>setOption('OverwriteDomain', 'true')
# 设置jdk路径
wls:/offline/base_domain/Security/base_domain/User/weblogic>setOption('JavaHome','/data/businessServer/jdk1.8.0_411/')
# 设置生产模式,默认是开发模式
wls:/offline/base_domain/Security/base_domain/User/weblogic>setOption('ServerStartMode','prod')
# 为新建域指定路径
wls:/offline/base_domain/Security/base_domain/User/weblogic>writeDomain('/u01/Middleware/user_projects/domains/test_sk')
# 关闭模板
wls:/offline/test_sk/Security/test_sk/User/weblogic>closeTemplate()
# 退出
wls:/offline>exit()Exiting WebLogic Scripting Tool.[weblogic@oracle bin]$ 

image-20240902111555193

2、参数文件方式
1、备份wlsd文件,将# Create a JMS Server到# Write the domain and close the domain template.这一部份的内容删除(可以使用命令sed -i “62,127d” /u01/Middleware/wlserver/common/templates/scripts/wlst/basicWLSDomain.py),然后添加修改部份参数。
正确参数如下:cd  /u01/Middleware/wlserver/common/templates/scripts/wlst/
mv  basicWLSDomain.py  basicWLSDomain.py.bakcat >basicWLSDomain.py<<'EOF'
#=======================================================================================
# This is an example of a simple WLST offline configuration script. The script creates 
# a simple WebLogic domain using the Basic WebLogic Server Domain template. The script 
# demonstrates how to open a domain template, create and edit configuration objects, 
# and write the domain configuration information to the specified directory.
#
# This sample uses the demo Derby Server that is installed with your product.
# Before starting the Administration Server, you should start the demo Derby server
# by issuing one of the following commands:
#
# Windows: WL_HOME\common\derby\bin\startNetworkServer.cmd
# UNIX: WL_HOME/common/derby/bin/startNetworkServer.sh
#
# (WL_HOME refers to the top-level installation directory for WebLogic Server.)
#
# The sample consists of a single server, representing a typical development environment. 
# This type of configuration is not recommended for production environments.
#
# Please note that some of the values used in this script are subject to change based on 
# your WebLogic installation and the template you are using.
#
# Usage: 
#      java weblogic.WLST <WLST_script> 
#
# Where: 
#      <WLST_script> specifies the full path to the WLST script.
#=======================================================================================#================================================&

http://www.ppmy.cn/news/1525059.html

相关文章

SpringMVC基于注解使用

01-拦截器介绍 首先在pom.xml里面加入springmvc的依赖 创建拦截类 在spring-mvc.xml配置拦截器配置 创建控制类测试 拦截器中处理方法之前的方法介绍 拦截器中处理方法之后&#xff0c;渲染之前的方法介绍 拦截器中处理方法之后&#xff0c;渲染之后的方法介绍 判断拦截器和过…

element form rules 验证数组对象属性时如何写判断规则

需求&#xff1a;一个el-form-item里放了2个下拉选择框&#xff0c;规定是最少选择一个&#xff0c;最多这俩都选择值&#xff1b;下拉框的值设置为对象了&#xff0c;所以这俩select的值组成了一个数组里的两个对象 逻辑&#xff1a;感觉只需要把第一个下拉框值&#xff08;即…

默认端口被占用后,如何修改Apache2 端口

你可以通过以下步骤修改 Apache2 的默认端口&#xff08;80 端口&#xff09;&#xff1a; 1. 修改 Apache2 配置文件 首先&#xff0c;你需要编辑 Apache2 的端口配置文件&#xff1a; sudo nano /etc/apache2/ports.conf在文件中&#xff0c;你会看到类似以下的内容&#…

【PostgreSQL里的restartpoint重启点】

不知道大家有没有关注过&#xff0c;配置文件里archive_cleanup_command参数的注释部分有着这么一句"command to execute at every restartpoint",意思是在每个restartpoint时执行的命令。 提起checkpoint大家可能比较熟悉&#xff0c;对于这个restartpoint&#xff…

fs::copy中的recursive和overwriting的区别是什么,如何一起使用

fs::copy中的recursive和overwriting参数关注于文件复制的不同方面&#xff1a; recursive&#xff1a;当设置为true时&#xff0c;允许复制目录及其所有子目录和文件。如果设置为false&#xff0c;则只复制单个文件或空目录。 overwriting&#xff1a;当设置为true时&#xf…

vulnhub靶机:21 LTR: Scene1

下载 下载地址&#xff1a;https://www.vulnhub.com/entry/21ltr-scene-1,3/ 导入靶机 一直按默认的来&#xff0c;一直下一步 修改网卡 修改靶机和 kali 攻击机网络模式为仅主机模式 把仅主机模式的 IP 修改为 192.168.2.0 信息收集 主机发现 arp-scan -l 靶机 IP 是 192.…

golang panic

在 Go 语言中&#xff0c;panic 是一种用于处理异常情况的机制。当程序遇到无法继续执行的错误时&#xff0c;可以使用 panic 来引发运行时错误。以下是关于 panic 的一些关键点和示例。 1. 使用 panic 当调用 panic 时&#xff0c;程序会停止执行当前函数&#xff0c;并开始…

传承中华文脉·弘扬北疆文化“四季内蒙古演出季”区内外文艺院团交流演出活动即将启动

为推进“北疆文化”品牌建设&#xff0c;由内蒙古自治区文化和旅游厅、呼和浩特市人民政府主办&#xff0c;呼和浩特市文化旅游广电局承办的传承中华文脉弘扬北疆文化——“四季内蒙古演出季”区内外文艺院团交流演出活动将于9月14日至11月期间在呼和浩特市举办。 传承中华文脉…

Go入门指南(The Way to Go) 完整版PDF

The Way To Go可以说是入门 Go 的经典书籍&#xff0c;这本书有内容丰富各种资料链接&#xff0c;这是截止到目前&#xff0c;大叔看到的写得最好的go 语言教材&#xff0c;非常详细.一口气读下来&#xff0c;舍不得放手&#xff0c;大叔强烈推荐你去学习 百度网盘分享

环境变量和本地变量

什么是环境变量&#xff1f; 环境变量是操作系统里保存的具有特殊用途的参数 常见的环境变量 PATH&#xff1a;存放操作系统默认的搜索路径 HOME&#xff1a;当前的登入账户 USER&#xff1a;当前的使用者 如何查询环境变量&#xff1f; echo $name&#xff08;环境变量名…

数学建模笔记—— 线性规划

数学建模笔记—— 线性规划 线性规划1. 模型引出1.1 线性规划模型的三要素1.2 线性规划模型建立步骤1.3 线性规划的表现形式1.4 线性规划的模型特点 2.典型例题3. python代码求解3.1 求解KK升级的问题3.2 求解投资收益问题 线性规划 在人们的生产实践中&#xff0c;经常会遇到…

『功能项目』管理器基类【38】

我们打开上一篇37单例模式框架的项目&#xff0c; 本章要做的事情是编写管理器基类 首先创建脚本&#xff1a;ManagerBase.cs using UnityEngine; public abstract class ManagerBase : MonoBehaviour{public virtual void Init() { } } public class ManagerBase<T> : …

Linux 防火墙:iptables (二)

文章目录 SNAT 原理与应用SNAT 应用环境SNAT 原理SNAT 转换前提条件SNAT 格式SNAT 转换规则配置 DNAT 原理与应用DNAT 应用环境DNAT 原理DNAT 转换前提条件DNAT 格式DNAT 转换规则配置 iptables 规则的备份和还原导出&#xff08;备份&#xff09;所有表的规则导入&#xff08;…

【网络通信基础与实践第二讲】包括互联网概述、互联网发展的三个阶段、互联网的组成、计算机网络的体系结构

一、互联网概述 计算机网络是由若干节点&#xff08;node&#xff09;和连接这些节点的链路&#xff08;link&#xff09;组成。 网络之间还可以通过路由器互联起来&#xff0c;这就构成了一个覆盖范围更大的计算机网络。这样的网络称为互联网。 网络把许多计算机连接在一起…

如何将本地项目上传到GitHub(SSH连接)

在个人GitHub中新建项目(远程仓库)&#xff0c;添加一个README文件&#xff0c;方便后面验证 记住这个默认分支&#xff0c;我这里是main&#xff0c;你的可能是master或其他 先复制下SSH地址 在项目文件夹中右键打开Git命令行 初始化本地仓库&#xff0c;同时指定默认分支为ma…

微信小程序登录与获取手机号 (Python)

文章目录 相关术语登录逻辑登录设计登录代码 相关术语 调用接口[wx.login()]获取登录凭证&#xff08;code&#xff09;。通过凭证进而换取用户登录态信息&#xff0c;包括用户在当前小程序的唯一标识&#xff08;openid&#xff09;、微信开放平台账号下的唯一标识&#xff0…

C语言---程序设计练习题目及学习方法1

学习方法 要多练习 在这些题目中的代码和题目 自己动手去敲练习也是在熟悉语法&#xff0c;写代码第一步就是熟悉语法练习是在锻炼编程思维&#xff0c;把实际问题转换为代码的能力 学会画图 画图去理解内存&#xff0c;理解指针这些比较难懂的知识画图可以更好的理清思路辅助…

Linux环境下安装FFmpeg的教程

下面是一个关于在Linux环境下安装FFmpeg的教程&#xff0c;它结合了理论知识与实际操作步骤。请注意&#xff0c;本教程假设您具备基本的Linux命令行使用经验&#xff0c;并且您的系统已经安装了必要的开发工具包。 FFmpeg简介 FFmpeg 是一个强大的跨平台音视频处理工具集&am…

详解Diffusion扩散模型:理论、架构与实现

本文深入探讨了Diffusion扩散模型的概念、架构设计与算法实现&#xff0c;详细解析了模型的前向与逆向过程、编码器与解码器的设计、网络结构与训练过程&#xff0c;结合PyTorch代码示例&#xff0c;提供全面的技术指导。 关注TechLead&#xff0c;复旦AI博士&#xff0c;分享A…

Linux网络:应用层协议http/https

认识URL URL是我们平时说的网址 eg&#xff1a;http常见的URL http://user:passwww.example.jp:80/dir/index.htm?uid1#ch1 注意&#xff1a; 服务器地址就是域名&#xff0c;相当于服务器ip地址 像http服务绑定80端口号&#xff0c;https服务绑定443端口。ssh服务端口绑定…