静默模式下安装Weblogic 14.1.1.0.0
目录
- 一、下载weblogic安装包
- 二、安装JDK
- 三、安装weblogic
-
- 1、创建weblogic用户
- 2、创建weblogic的安装目录
- 3、上传并解压weblogic安装包
- 4、创建 oraInst.loc 文件
- 5、创建 wls.rsp 响应文件
- 6、静默安装weblogic
- 7、创建域
- 8、启动Weblogic
- 9、设置防火墙规则,以便其他服务器访问
- 10、访问weblogic管理控制台
- 11、输入用户名和密码进行登录
一、下载weblogic安装包
oracle官方下载地址:https://www.oracle.com/middleware/technologies/weblogic-server-installers-downloads.html
二、安装JDK
参考:Linux安装 JDK 17.0.13 教程
三、安装weblogic
默认情况下,执行java -jar /data/weblogic/fmw_14.1.1.0.0_wls.jar
安装weblogic
会自动弹窗在图形模式下交互安装,但由于我的服务器缺少图形环境
或X11
窗口,安装程序试图在图形模式下启动,服务器连接不成功,导致安装程序无法继续进行。为了解决这个问题,我选择在静默模式
下安装weblogic
。
报错如下可做参考:
[weblogic@app02 root]$ java -jar /data/weblogic/fmw_14.1.1.0.0_wls.jar
Launcher log file is /tmp/OraInstall2024-12-25_10-31-18PM/launcher2024-12-25_10-31-18PM.log.
Extracting the installer . . . . . . Done
Checking if CPU speed is above 300 MHz. Actual 2099.998 MHz Passed
Checking monitor: must be configured to display at least 256 colors. Actual unknown. Failed <<<<
Checking swap space: must be greater than 512 MB. Actual 1639 MB Passed
Checking temp space: must be greater than 300 MB. Actual 1764 MB Passed
Some system prerequisite checks failed.
You must fulfill these requirements before continuing.
Continue? (yes [y] / no [n]) [n]
y
You have confirmed that the product can be installed on this platform.
Continuing with the installation.
Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2024-12-25_10-31-18PM
Exception in thread "main" java.awt.AWTError: Can't connect to X11 window server using '192.168.1.128:0.0' as the value of the DISPLAY variable.
at java.desktop/sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at java.desktop/sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:101)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
at java.desktop/sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:60)
at java.desktop/sun.awt.PlatformGraphicsInfo.createGE(PlatformGraphicsInfo.java:36)
at java.desktop/java.awt.GraphicsEnvironment$LocalGE.createGE(GraphicsEnvironment.java:93)
at java.desktop/java.awt.GraphicsEnvironment$LocalGE.<clinit>(GraphicsEnvironment.java:84)
at java.desktop/java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:106)
at java.desktop/sun.awt.X11.XToolkit.<clinit>(XToolkit.java:224)
at java.desktop/sun.awt.PlatformGraphicsInfo.createToolkit(PlatformGraphicsInfo.java:40)
at java.desktop/java.awt.Toolkit.getDefaultToolkit(Toolkit.java:599)
at com.jgoodies.looks.LookUtils.isLowResolution(LookUtils.java:484)
at com.jgoodies.looks.LookUtils.<clinit>(LookUtils.java:249)
at com.jgoodies.looks.plastic.Plast