当前位置: 首页 > news >正文

CentOS 7.6 安装 Weblogic

注:本教程是以虚拟机作为安装环境,如果您公司需要安装 Weblogic 服务器,请先以虚拟机模拟安装一遍,否则出现失误,概不负责😁。

一、环境
虚拟机:VMware Workstation 16

Linux:CentOS-7-x86_64-DVD-1908.iso

weblogic:fmw_12.2.1.3.0_wls_Disk1_1of1.zip

安装 weblogic 需要 JDK 环境:CentOS 7.6 安装 JDK

二、下载

三、安装

上传软件包

2、使用 xshell 连接目标主机

cd /usr/local/software

注:目录 software 是自己新建的文件,目的是存放自己上传的文件

3、解压 (fmw_12.2.1.3.0_wls_Disk1_1of1.zip)

 unzip fmw_12.2.1.4.0_wls_lite_Disk1_1of1.zip 

注:解压后的 fmw_12214_readme.html 文件是没什么用的,可以删掉
rm -rf fmw_12214_readme.html

四、配置
1、创建普通用户

groupadd weblogic				# groupadd <username> 创建一个用户组
useradd weblogic -g weblogic	# useradd <用户> -g <username> 创建一个用户
passwd weblogic					# passwd <weblogic> 给新建的用户添加密码

2、查看新建用户

cd /home/	# 查看 home 下的用户

4、建立两个文件 wls.rsp & oraInst.loc

(1)新建 wls.rsp 文件

touch wls.rsp
vim wls.rsp		# 编辑 wls.rsp 文件
[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=/home/weblogic/oracle_home# 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=

保存:先点击Esc键, 输入 “:wq”,点击回车键

(2)、新建 oraInst.loc 文件

touch oraInst.loc
vim oraInst.loc		# 编辑 oraInst.loc 文件
# 在 oraInst.loc 文件中加入下面内容
inventory_loc=/home/weblogic/oraInventory
inst_group=weblogic

5、转换到 weblogic 用户

su - weblogic

注:在root用户下 下面 “静默创建新域” 报错

6、静默创建新域

su weblogic
java -jar /usr/local/software/fmw_12.2.1.4.0_wls_lite_generic.ja -silent -responseFile /home/weblogic/wls.rsp -invPtrLoc /home/weblogic/oraInst.loc

7、找到 wlst.sh 文件所在目录

cd /home/weblogic/oracle_home/wlserver/common/bin/

8、新建 create_domain.py 文件

touch create_domain.py

vim create_domain.py	# 编辑 create_domain.py 文件
# 在 create_domain.py 文件中添加以下内容
readTemplate('/home/weblogic/oracle_home/wlserver/common/templates/wls/wls.jar')
cd('Servers/AdminServer')
set('ListenAddress','')
set('ListenPort',7001)
cd('/')
cd('Security/base_domain/User/weblogic')
cmo.setPassword('1qaz2wsx!')					# 此处设置你的密码
setOption('OverwriteDomain','true')
writeDomain('/home/weblogic/oracle_home/user_projects/domains/base_domain')
closeTemplate()
exit()

9、执行 create_domain.py 文件

sh /home/weblogic/oracle_home/wlserver/common/bin/wlst.sh create_domain.py

10、通过 root 用户修改hosts文件内容
(1)、转向 root 用户

su -

(2)、修改 hosts 的权限

chmod 666 /etc/hosts

(3)、编辑 hosts 的内容

# 本来文件里面只有前两行内容,加入下面内容
127.0.0.1    <hostname>    # hostname : 你的主机名

保存:先点击Esc键, 输入 “:wq”,点击回车键
再转向 weblogic 用户

11、找到 base_domain 目录下

cd /home/weblogic/oracle_home/user_projects/domains/base_domain/

12、执行 startWebLogic.sh 文件

sh ./startWebLogic.sh

13、打开浏览器

http://192.168.135.200:7001/console

http://www.lryc.cn/news/420452.html

相关文章:

  • 一键清除电脑隐私痕迹,Privacy Eraser助你轻松搞定!
  • 火语言RPA桌面元素库使用方法
  • FTP.JBoss,Ldap,Rsync未授权访问漏洞(附带修复方法)
  • 全新在线客服系统源码(pc+h5+uniapp+公众号小程序+抖音)附搭建接入教程
  • 为具有公网IPV6地址的服务器安装nextcloudAIO并使用NginxProxyManager配置反向代理
  • 挖矿宝藏之TCP/IP
  • 略谈set与map的pair封装与进入哈希
  • android13 串口编号修改 串口名修改
  • 工作中常用的软件竟可直接下载0.5m卫星影像(Esri影像、天地图、星图)、DEM、土地覆盖数据...
  • 1章3节:R 语言的产生与发展轨迹
  • html常用标签
  • 选择文件鼠标右键自定义菜单
  • Linux安全与高级应用(九)Linux远程访问与控制:安全与最佳实践
  • 前端已经学会vue,做粒子效果
  • Nessus——全面的漏洞扫描神器
  • 自动化部署的艺术:Conda包依赖管理的终极指南
  • 详解Xilinx FPGA高速串行收发器GTX/GTP(7)--IBERT IP核的使用
  • 瞬态噪声抑制算法流程解析
  • 只用一个 HTML 元素可以写出多少形状?——多边形篇
  • QT界面设计开发(Visual Studio 2019)—学习记录一
  • Kafka 单机和集群环境部署教程
  • 使用Python发送PDD直播间弹幕(协议算法分析)
  • 1056. Mice and Rice (25)-PAT甲级真题
  • 色轮在数据可视化中的应用
  • 编程-设计模式 8:组合模式
  • c语言指针(8.11)
  • 加密技术的发展
  • 编程-设计模式 22:策略模式
  • kafka 将log4j的项目升级到log4j2
  • 【CSP2019 模拟赛】Time