【WebLogic】WebLogic11g(wls1036_generic.jar )在linux下的命令行安装

2023-10-19 15:10

本文主要是介绍【WebLogic】WebLogic11g(wls1036_generic.jar )在linux下的命令行安装,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

安装前:
下载好安装文件wls1036_generic.jar
安装好jdk,更改配置jdk对应环境变量
创建好用户weblogic及组,也可以用已有用户和组

安装步骤:
进入安装用户下,su - weblogic
1.安装WebLogic
2.升级补丁
3.更改jdk配置
用于解决控制台访问慢的问题
$JAVA_HOME/jre/lib/security/java.security 文件将securerandom.source=file:/dev/urandom 修改为securerandom.source=file:/dev/./urandom

securerandom.source=file:/dev/urandom

改为

securerandom.source=file:/dev/./urandom

在这里插入图片描述
2019年9月10日更新日志如下(CentOS release 6.5 (Final)):

安装日志如下:

[weblogic@localhost ~]$ java -jar wls1036_generic.jar
无法实例化 GUI, 默认进入控制台模式。
Extracting 0%....................................................................................................100%<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->欢迎使用:
-------------此安装程序将引导您完成 WebLogic 10.3.6.0 的安装。键入 "Next" 或按 Enter 键继续下一个提示。如果您希望更改以前输入的数据, 
请键入 "Previous"。您可以随时通过键入 "Exit" 退出安装程序。输入 [退出][下一步]> <-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->选择中间件主目录:
-------------------------"中间件主目录" = [输入新值或使用默认值 "/home/weblogic/Oracle/Middleware"]输入新值 中间件主目录 或 [退出][上一步][下一步]> /opt/weblogic<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->选择中间件主目录:
-------------------------"中间件主目录" = [/opt/weblogic]使用以上值或选择另一选项:1 - 输入新值 中间件主目录2 - 更改为默认值 [/home/weblogic/Oracle/Middleware]输入要选择的选项编号 或 [退出][上一步][下一步]> <-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->注册安全更新:
-------------------
请提供用于接收安全更新的电子邮件地址以及 以启动配置管理器。1|电子邮件:[]2|My Oracle Support 口令:[]3|接收安全更新:[Yes]输入要选择的索引号 或 [退出][上一步][下一步]> 3<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->注册安全更新:
-------------------请提供用于接收安全更新的电子邮件地址以及 以启动配置管理器。"接收安全更新:" = [输入新值或使用默认值 "Yes"]输入 [Yes][No]? No<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->注册安全更新:
-------------------请提供用于接收安全更新的电子邮件地址以及 以启动配置管理器。"接收安全更新:" = [输入新值或使用默认值 "Yes"]** 是否希望绕过配置管理器的启动过程并且**  不接收配置中存在严重安全问题的通知?输入 [Yes][No]? Yes<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->注册安全更新:
-------------------请提供用于接收安全更新的电子邮件地址以及 以启动配置管理器。1|电子邮件:[]2|My Oracle Support 口令:[]3|接收安全更新:[No]
输入要选择的索引号 或 [退出][上一步][下一步]> <-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->注册安全更新:
-------------------请提供用于接收安全更新的电子邮件地址以及 以启动配置管理器。1|电子邮件:[]2|My Oracle Support 口令:[]3|接收安全更新:[No]
输入要选择的索引号 或 [退出][上一步][下一步]> <-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->选择安装类型:
-------------------选择您要执行的安装类型。 ->1|典型|  安装以下产品和组件:| - WebLogic Server| - Oracle Coherence2|定制|  选择要安装的软件产品和组件并执行可选配置。输入要选择的索引号 或 [退出][上一步][下一步]> 1<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->JDK 选择 (所有 * 都指示 Oracle 提供的 VM):
----------------------------------------------------将安装所选 JDK。如果已安装, 默认值将 用于脚本字符串替换。1|添加本地 JDK2|/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.45.x86_64[x]*安装预计所需的大小: 690.2 MB输入 1 以添加, 或者输入 >= 2 可切换选定内容  或 [退出][上一步][下一步]> 1<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->JDK 选择 (所有 * 都指示 Oracle 提供的 VM):
----------------------------------------------------将安装所选 JDK。如果已安装, 默认值将 用于脚本字符串替换。"本地 Java 主目录 " = []输入新值 本地 Java 主目录  或 [退出][上一步][下一步]> /usr/jdk1.6<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->JDK 选择 (所有 * 都指示 Oracle 提供的 VM):
----------------------------------------------------将安装所选 JDK。如果已安装, 默认值将 用于脚本字符串替换。"本地 Java 主目录 " = [/usr/jdk1.6]输入新值 本地 Java 主目录  或 [退出][上一步][下一步]> <-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->JDK 选择 (所有 * 都指示 Oracle 提供的 VM):
----------------------------------------------------将安装所选 JDK。如果已安装, 默认值将 用于脚本字符串替换。1|添加本地 JDK2|/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.45.x86_64[x]3|/usr/jdk1.6[x]*安装预计所需的大小: 690.2 MB输入 1 以添加, 或者输入 >= 2 可切换选定内容  或 [退出][上一步][下一步]> <-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->选择产品安装目录:
-------------------------中间件主目录: [/opt/weblogic]产品安装目录:1|WebLogic Server: [/opt/weblogic/wlserver_10.3]2|Oracle Coherence: [/opt/weblogic/coherence_3.7]输入要选择的索引号 或 [退出][上一步][下一步]> <-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->将安装下列产品和 JDK:
-----------------------------WebLogic Platform 10.3.6.0|_____WebLogic Server|    |_____Core Application Server|    |_____Administration Console|    |_____Configuration Wizard and Upgrade Framework|    |_____Web 2.0 HTTP Pub-Sub Server|    |_____WebLogic SCA|    |_____WebLogic JDBC Drivers|    |_____Third Party JDBC Drivers|    |_____WebLogic Server Clients|    |_____WebLogic Web Server Plugins|    |_____UDDI and Xquery Support|    |_____Evaluation Database|_____Oracle Coherence|_____Coherence Product Files*安装预计所需的大小: 690.3 MB输入 [退出][上一步][下一步]> 
九月 10, 2019 6:50:38 下午 java.util.prefs.FileSystemPreferences$1 run
信息: Created user preferences directory.<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->正在安装文件...
0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]正在执行字符串替换...<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->正在配置 OCM...0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]
正在创建域...<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->安装完成祝贺您! 安装完成。按 [Enter] 键继续或键入 [退出]> <-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->清除过程正在进行中...
[weblogic@localhost ~]$ 

英文版安装日志(2020年6月3日更新,操作系统Redhat7.5):

[tmn@host-10 weblogic]$ java -jar wls1036_generic.jar 
Unable to instantiate GUI, defaulting to console mode.
Extracting 0%....................................................................................................100%<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->Welcome:
--------This installer will guide you through the installation of WebLogic 10.3.6.0. 
Type "Next" or enter to proceed to the next prompt.  If you want to change data entered previously, type "Previous".  You may quit the installer at any time by typing "Exit".Enter [Exit][Next]> <-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->Choose Middleware Home Directory:
---------------------------------"Middleware Home" = [Enter new value or use default 
"/home/tmn/Oracle/Middleware"]Enter new Middleware Home OR [Exit][Previous][Next]> <-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->Register for Security Updates:
------------------------------Provide your email address for security updates and  to initiate configuration manager.1|Email:[]2|Support Password:[]3|Receive Security Update:[Yes]Enter index number to select OR [Exit][Previous][Next]> 3<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->Register for Security Updates:
------------------------------Provide your email address for security updates and  to initiate configuration manager."Receive Security Update:" = [Enter new value or use default "Yes"]Enter [Yes][No]? No<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->Register for Security Updates:
------------------------------Provide your email address for security updates and  to initiate configuration manager."Receive Security Update:" = [Enter new value or use default "Yes"]** Do you wish to bypass initiation of the configuration manager and**  remain uninformed of critical security issues in your configuration?Enter [Yes][No]? yes<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->Register for Security Updates:
------------------------------Provide your email address for security updates and  to initiate configuration manager.1|Email:[]2|Support Password:[]3|Receive Security Update:[No]Enter index number to select OR [Exit][Previous][Next]> <-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->Register for Security Updates:
------------------------------Provide your email address for security updates and  to initiate configuration manager.1|Email:[]2|Support Password:[]3|Receive Security Update:[No]Enter index number to select OR [Exit][Previous][Next]> <-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->Choose Install Type:
--------------------Select the type of installation you wish to perform. ->1|Typical|  Install the following product(s) and component(s):| - WebLogic Server| - Oracle Coherence2|Custom|  Choose software products and components to install and perform optional |configuration.Enter index number to select OR [Exit][Previous][Next]> 1<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->JDK Selection (Any * indicates Oracle Supplied VM):
---------------------------------------------------JDK(s) chosen will be installed.  Defaults will be used in script string-substitution if installed.1|Add Local Jdk2|/usr/java/jdk1.6.0_45[x]*Estimated size of installation:  690.2 MBEnter 1 to add or >= 2 to toggle selection  OR [Exit][Previous][Next]> <-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->Choose Product Installation Directories:
----------------------------------------Middleware Home Directory: [/home/tmn/Oracle/Middleware]Product Installation Directories:1|WebLogic Server: [/home/tmn/Oracle/Middleware/wlserver_10.3]2|Oracle Coherence: [/home/tmn/Oracle/Middleware/coherence_3.7]Enter index number to select OR [Exit][Previous][Next]> <-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->The following Products and JDKs will be installed:
--------------------------------------------------WebLogic Platform 10.3.6.0|_____WebLogic Server|    |_____Core Application Server|    |_____Administration Console|    |_____Configuration Wizard and Upgrade Framework|    |_____Web 2.0 HTTP Pub-Sub Server|    |_____WebLogic SCA|    |_____WebLogic JDBC Drivers|    |_____Third Party JDBC Drivers|    |_____WebLogic Server Clients|    |_____WebLogic Web Server Plugins|    |_____UDDI and Xquery Support|    |_____Evaluation Database|_____Oracle Coherence|_____Coherence Product Files*Estimated size of installation: 690.3 MBEnter [Exit][Previous][Next]> 
Jun 3, 2020 4:00:38 PM java.util.prefs.FileSystemPreferences$2 run
INFO: Created user preferences directory.<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->Installing files..0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]Performing String Substitutions... <-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->Configuring OCM...0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]Creating Domains...<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->Installation CompleteCongratulations! Installation is complete.Press [Enter] to continue or type [Exit]> <-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->Clean up process in progress ...
[tmn@host-10 weblogic]$ timed out waiting for input: auto-logout

补丁升级参考:
【WebLogic】10.3.6.0.0补丁升级p29204678_1036_Generic.zip

补充问题:
今天在安装时遇到的几个问题

1.jdk更改目录提示无效

本例原因为设置jdk目录为/usr/jdk1.6,用的是root账号,用weblogic账号设置时,无权限访问此目录,切换root账号赋权后就可以了
2.提示自解压过程中遇到致命错误[设备上没有空间]
其实问题源于上面那个错误,解决了半天中断了半天,导致tmp临时文件夹被塞满了,bea1132347807347059860.tmp等bea开头的都是中断文件夹,为了安全,我把几个bea开头的文件夹挪到其他地方了,然后在运行就没问题了,其实看weblogic 安装的最后日志中就能看出, 清除过程正在进行中… ,这个应该就是删tmp的
问题日志

[weblogic@localhost ~]$ java -jar wls1036_generic.jar
无法实例化 GUI, 默认进入控制台模式。
Extracting 0%..............................................
自解压过程中遇到致命错误。[设备上没有空间]
<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->
欢迎使用:
-------------
此安装程序将引导您完成 WebLogic 10.3.6.0 的安装。键入 "Next" 或按 Enter 键继续下一个提示。如果您希望更改以前输入的数据, 
请键入 "Previous"。您可以随时通过键入 "Exit" 退出安装程序。输入 [退出][下一步]> ^C[weblogic@localhost ~]$ 
[weblogic@localhost ~]$ df -hl
Filesystem           Size  Used Avail Use% Mounted on
/dev/sda2             51G  5.9G   42G  13% /
tmpfs                7.8G   72K  7.8G   1% /dev/shm
/dev/sda1            194M   34M  151M  19% /boot
/dev/sda5            5.0G  4.2G  500M  90% /tmp
/dev/sda6            5.0G  286M  4.4G   6% /var
…………
[weblogic@localhost ~]$ cd /tmp
[weblogic@localhost tmp]$ ll
总用量 68
drwxr-x---  4 security security  4096 9月  10 18:04 bea1132347807347059860.tmp
drwxr-x---  4 security security  4096 9月  10 16:39 bea2085629923409137027.tmp
drwxr-x---  4 security security  4096 9月  10 18:08 bea281767808974268159.tmp
drwxr-x---  4 security security  4096 9月  10 18:11 bea5713597393837103468.tmp
drwxr-x---  2 security security  4096 9月  10 18:41 hsperfdata_security
………………
[weblogic@localhost tmp]$ cd bea1132347807347059860.tmp/
[weblogic@localhost bea1132347807347059860.tmp]$ ll
总用量 4148
-rw-r----- 1 security security 2549575 9月  10 18:00 com.oracle.ocm_1.0.0.0.jar
-rw-r----- 1 security security  427520 9月  10 18:00 jni_win64.dll
-rw-r----- 1 security security  197632 9月  10 18:00 jni_win.dll
-rw-r----- 1 security security  198656 9月  10 18:00 jni_winx64.dll
-rw-r----- 1 security security  121781 9月  10 18:00 libjni.aix.a
-rwxr-xr-x 1 security security  229796 9月  10 18:00 libjni.hpux64.so
-rwxr-xr-x 1 security security   90112 9月  10 18:00 libjni.hpux.sl
-rwxr-xr-x 1 security security  165273 9月  10 18:00 libjni.linux64.so
-rwxr-xr-x 1 security security   83820 9月  10 18:00 libjni.linux.so
-rwxr-xr-x 1 security security  120032 9月  10 18:00 libjni.solaris.so
drwxr-x--- 2 security security    4096 9月  10 18:00 media
drwxr-x--- 3 security security   36864 9月  10 18:00 modules
[security@localhost bea1132347807347059860.tmp]$ cd ..

这篇关于【WebLogic】WebLogic11g(wls1036_generic.jar )在linux下的命令行安装的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/240626

相关文章

Linux中压缩、网络传输与系统监控工具的使用完整指南

《Linux中压缩、网络传输与系统监控工具的使用完整指南》在Linux系统管理中,压缩与传输工具是数据备份和远程协作的桥梁,而系统监控工具则是保障服务器稳定运行的眼睛,下面小编就来和大家详细介绍一下它... 目录引言一、压缩与解压:数据存储与传输的优化核心1. zip/unzip:通用压缩格式的便捷操作2.

Python中win32包的安装及常见用途介绍

《Python中win32包的安装及常见用途介绍》在Windows环境下,PythonWin32模块通常随Python安装包一起安装,:本文主要介绍Python中win32包的安装及常见用途的相关... 目录前言主要组件安装方法常见用途1. 操作Windows注册表2. 操作Windows服务3. 窗口操作

Linux中SSH服务配置的全面指南

《Linux中SSH服务配置的全面指南》作为网络安全工程师,SSH(SecureShell)服务的安全配置是我们日常工作中不可忽视的重要环节,本文将从基础配置到高级安全加固,全面解析SSH服务的各项参... 目录概述基础配置详解端口与监听设置主机密钥配置认证机制强化禁用密码认证禁止root直接登录实现双因素

sqlite3 命令行工具使用指南

《sqlite3命令行工具使用指南》本文系统介绍sqlite3CLI的启动、数据库操作、元数据查询、数据导入导出及输出格式化命令,涵盖文件管理、备份恢复、性能统计等实用功能,并说明命令分类、SQL语... 目录一、启动与退出二、数据库与文件操作三、元数据查询四、数据操作与导入导出五、查询输出格式化六、实用功

在Linux终端中统计非二进制文件行数的实现方法

《在Linux终端中统计非二进制文件行数的实现方法》在Linux系统中,有时需要统计非二进制文件(如CSV、TXT文件)的行数,而不希望手动打开文件进行查看,例如,在处理大型日志文件、数据文件时,了解... 目录在linux终端中统计非二进制文件的行数技术背景实现步骤1. 使用wc命令2. 使用grep命令

springboot项目打jar制作成镜像并指定配置文件位置方式

《springboot项目打jar制作成镜像并指定配置文件位置方式》:本文主要介绍springboot项目打jar制作成镜像并指定配置文件位置方式,具有很好的参考价值,希望对大家有所帮助,如有错误... 目录一、上传jar到服务器二、编写dockerfile三、新建对应配置文件所存放的数据卷目录四、将配置文

解决未解析的依赖项:‘net.sf.json-lib:json-lib:jar:2.4‘问题

《解决未解析的依赖项:‘net.sf.json-lib:json-lib:jar:2.4‘问题》:本文主要介绍解决未解析的依赖项:‘net.sf.json-lib:json-lib:jar:2.4... 目录未解析的依赖项:‘net.sf.json-lib:json-lib:jar:2.4‘打开pom.XM

Linux如何快速检查服务器的硬件配置和性能指标

《Linux如何快速检查服务器的硬件配置和性能指标》在运维和开发工作中,我们经常需要快速检查Linux服务器的硬件配置和性能指标,本文将以CentOS为例,介绍如何通过命令行快速获取这些关键信息,... 目录引言一、查询CPU核心数编程(几C?)1. 使用 nproc(最简单)2. 使用 lscpu(详细信

python如何调用java的jar包

《python如何调用java的jar包》这篇文章主要为大家详细介绍了python如何调用java的jar包,文中的示例代码简洁易懂,具有一定的借鉴价值,有需要的小伙伴可以参考一下... 目录一、安装包二、使用步骤三、代码演示四、自己写一个jar包五、打包步骤六、方法补充一、安装包pip3 install

linux重启命令有哪些? 7个实用的Linux系统重启命令汇总

《linux重启命令有哪些?7个实用的Linux系统重启命令汇总》Linux系统提供了多种重启命令,常用的包括shutdown-r、reboot、init6等,不同命令适用于不同场景,本文将详细... 在管理和维护 linux 服务器时,完成系统更新、故障排查或日常维护后,重启系统往往是必不可少的步骤。本文