weblogic的基础安装

安装java环境

不能使用centos自带的openjdk  必须使用源码安装

把下载的jdk-8u181-linux-x64.tar 解压到 /usr/src目录下

[[email protected]199-137-5 weblogic]# rpm -qa | grep java
javapackages-tools-3.4.1-11.el7.noarch
java-1.8.0-openjdk-headless-1.8.0.181-3.b13.el7_5.x86_64
python-javapackages-3.4.1-11.el7.noarch
tzdata-java-2018e-3.el7.noarch
[[email protected]-ds-itstool-199-137-5 weblogic]# rpm -e --nodeps `rpm -qa | grep java`

删除已经安装的openjdk

[[email protected]199-137-5 src]# pwd
/usr/src
[[email protected]-ds-itstool-199-137-5 src]# cd /etc/profile.d/
[[email protected]-ds-itstool-199-137-5 profile.d]# ls
256term.csh  bash_completion.sh  colorgrep.sh  colorls.sh  lang.csh  less.csh  which2.csh
256term.sh   colorgrep.csh       colorls.csh   java.sh     lang.sh   less.sh   which2.sh
[[email protected]-ds-itstool-199-137-5 profile.d]# vi java.sh 

export JAVA_HOME=/usr/src/jdk1.8.0_181
export PATH=$PATH:$JAVA_HOME/bin

配置jdk

source /etc/profile

安装weblogic

[[email protected]199-137-5 ~]# groupadd weblogic
[[email protected]-ds-itstool-199-137-5 ~]# useradd weblogic -g weblogic
[[email protected]-ds-itstool-199-137-5 ~]# echo "weblogic" | passwd --stdin weblogic
Changing password for user weblogic.
passwd: all authentication tokens updated successfully.
[[email protected]-ds-itstool-199-137-5 ~]# cp fmw_12.2.1.3.0_wls.jar /home/weblogic/
[[email protected]-ds-itstool-199-137-5 ~]# cd /home/weblogic/
[[email protected]-ds-itstool-199-137-5 weblogic]# ls
fmw_12.2.1.3.0_wls.jar

创建普通用户

非静默安装一般要求启动图形界面 这种安装方式不适合在命令行窗口安装    java     -jar       fmw_12.2.1.3.0_wls.jar

[[email protected]199-137-5 ~]$ java -jar fmw_12.2.1.3.0_wls.jar
Launcher log file is /tmp/OraInstall2018-09-13_11-48-07AM/launcher2018-09-13_11-48-07AM.log.
Extracting the installer . . . . . . Done
Checking if CPU speed is above 300 MHz.   Actual 2199.996 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 999 MB    Passed
Checking if this platform requires a 64-bit JVM.   Actual 64    Passed (64-bit not required)
Checking temp space: must be greater than 300 MB.   Actual 28838 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/OraInstall2018-09-13_11-48-07AM
Exception in thread "main" java.awt.AWTError: Can‘t connect to X11 window server using ‘:0.0‘ as the value of the DISPLAY variable.
    at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
    at sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:65)
    at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:115)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:74)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:264)
    at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:103)
    at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82)
    at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:126)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:264)
    at java.awt.Toolkit$2.run(Toolkit.java:860)
    at java.awt.Toolkit$2.run(Toolkit.java:855)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:854)
    at com.jgoodies.looks.LookUtils.isLowResolution(LookUtils.java:484)
    at com.jgoodies.looks.LookUtils.<clinit>(LookUtils.java:249)
    at com.jgoodies.looks.plastic.PlasticLookAndFeel.<clinit>(PlasticLookAndFeel.java:136)
    at oracle.as.install.engine.util.LookAndFeelGenerator.loadLookAndFeel(LookAndFeelGenerator.java:34)
    at oracle.as.install.engine.util.LookAndFeelGenerator.setLookAndFeel(LookAndFeelGenerator.java:23)
    at oracle.as.install.engine.modules.presentation.ui.common.dialogs.SpecifyInventoryDirectoryDialog.showDialog(SpecifyInventoryDirectoryDialog.java:780)
    at oracle.sysman.oio.oioc.OiocOneClickInstaller.main(OiocOneClickInstaller.java:643)

The log(s) can be found here: /tmp/OraInstall2018-09-13_11-48-07AM.

非静默安装错误

使用静默安装模式 使用这种方式必须指定安装时候的应答文件 作用类似于自动化安装操作系统的kickstart文件 这样就可以实现自动化安装 无需人工干预

java -jar fmw_12.2.1.3.0_wls.jar -silent -responseFile /home/weblogic/wls.rsp -invPtrLoc /home/weblogic/oraInst.loc

[[email protected]199-137-5 weblogic]# pwd
/home/weblogic
[[email protected]-ds-itstool-199-137-5 weblogic]# ls
fmw_12.2.1.3.0_wls.jar  oracle_home  oraInst.loc  oraInventory  wls.rsp

[[email protected]-ds-itstool-199-137-5 weblogic]# vi oraInst.loc 

inventory_loc=/home/weblogic/oraInventory
inst_group=weblogic

[[email protected]-ds-itstool-199-137-5 weblogic]# vi 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>
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>
COLLECTOR_SUPPORTHUB_URL=

部署目录结构

[[email protected]199-137-5 ~]$ java -jar fmw_12.2.1.3.0_wls.jar  -silent -responseFile /home/weblogic/wls.rsp  -invPtrLoc /home/weblogic/oraInst.loc
Launcher log file is /tmp/OraInstall2018-09-13_12-06-09PM/launcher2018-09-13_12-06-09PM.log.
Extracting the installer . . . . . . . . . Done
Checking if CPU speed is above 300 MHz.   Actual 2199.996 MHz    Passed
Checking swap space: must be greater than 512 MB.   Actual 999 MB    Passed
Checking if this platform requires a 64-bit JVM.   Actual 64    Passed (64-bit not required)
Checking temp space: must be greater than 300 MB.   Actual 24484 MB    Passed
Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2018-09-13_12-06-09PM
Log: /tmp/OraInstall2018-09-13_12-06-09PM/install2018-09-13_12-06-09PM.log
Copyright (c) 1996, 2017, Oracle and/or its affiliates. All rights reserved.
Reading response file..
Skipping Software Updates
Starting check : CertifiedVersions
Expected result: One of oracle-6, oracle-7, redhat-7, redhat-6, SuSE-11, SuSE-12
Actual Result: redhat-null
Check complete. The overall result of this check is: Passed
CertifiedVersions Check: Success.

Starting check : CheckJDKVersion
Expected result: 1.8.0_131
Actual Result: 1.8.0_181
Check complete. The overall result of this check is: Passed
CheckJDKVersion Check: Success.

Validations are enabled for this session.
Verifying data
Copying Files
Percent Complete : 10
Percent Complete : 20
Percent Complete : 30
Percent Complete : 40
Percent Complete : 50
Percent Complete : 60
Percent Complete : 70
Percent Complete : 80
Percent Complete : 90
Percent Complete : 100

The installation of Oracle Fusion Middleware 12c WebLogic Server and Coherence 12.2.1.3.0 completed successfully.
Logs successfully copied to /home/weblogic/oraInventory/logs.

部署结果

[[email protected]199-137-5 ~]$ ls
fmw_12.2.1.3.0_wls.jar  oracle_home  oraInst.loc  oraInventory  wls.rsp
[[email protected]-ds-itstool-199-137-5 ~]$ cd oracle_home
[[email protected]-ds-itstool-199-137-5 oracle_home]$ ls
cfgtoollogs  inventory  oracle_common  oui      wlserver
coherence    OPatch     oraInst.loc    root.sh
[[email protected]-ds-itstool-199-137-5 oracle_home]$ cd wlserver/
[[email protected]-ds-itstool-199-137-5 wlserver]$ ls
common  modules  orasocket  plugins  server
[[email protected]-ds-itstool-199-137-5 wlserver]$ cd common/
[[email protected]-ds-itstool-199-137-5 common]$ ls
bin  deployable-libraries  derby  dpct  images  lifecycle  templates  wlst
[[email protected]-ds-itstool-199-137-5 common]$ cd bin
[[email protected]-ds-itstool-199-137-5 bin]$ ls
config.sh  pack.sh  unpack.sh  wlscontrol.sh  wlsifconfig.sh  wlst.sh
[[email protected]-ds-itstool-199-137-5 bin]$ export MW_HOME="/home/weblogic/oracle_home"
[[email protected]-ds-itstool-199-137-5 bin]$ export WL_HOME="/home/weblogic/oracle_home/oracle_common"
[[email protected]-ds-itstool-199-137-5 bin]$ ./wlst.sh
WARNING: This is a deprecated script. Please invoke the wlst.sh script under oracle_common/common/bin.

Initializing WebLogic Scripting Tool (WLST) ...

Jython scans all the jar files it can find at first startup. Depending on the system, this process may take a few minutes to complete, and WLST may not return a prompt right away.

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

wls:/offline> 

启动wlst脚本

使用wlst脚本自动执行脚本

[[email protected]199-137-5 bin]# find / -name wlst.sh
 /home/weblogic/oracle_home/oracle_common/common/bin/wlst.sh  #已经被废弃
 /home/weblogic/oracle_home/wlserver/common/bin/wlst.sh

vi  create_domain.py

readTemplate("/home/weblogic/oracle_home/wlserver/common/templates/wls/wls.jar")
cd(‘Servers/AdminServer‘)
set(‘ListenAddress‘,‘‘)
set(‘ListenPort‘,7008)
cd(‘/‘)
cd(‘Security/base_domain/User/weblogic‘)
cmo.setPassword(‘root123456‘)
setOption(‘OverwriteDomain‘,‘true‘)
writeDomain(‘/home/weblogic/oracle_home/user_pros/domains/test_domain‘)
closeTemplate()
exit()

#执行创建命令
sh /home/weblogic/oracle_home/wlserver/common/bin/wlst.sh create_doman.py

#跳转到创建域的根目录下
[[email protected]-ds-itstool-199-137-5 bin]# cd /home/weblogic/oracle_home/user_pros/domains/test_domain
[[email protected]-ds-itstool-199-137-5 test_domain]# ls
autodeploy  config       edit.lok                  init-info    orchestration  security
bin         console-ext  fileRealm.properties      lib          original       servers
common      derby.log    fileRealm.properties.bak  nodemanager  resources      startWebLogic.sh

#执行启动脚本
   ./startWeblogic.sh
   或者nohup startWeblogic.sh > note.log & tail -f note.log

#查看是否监听端口
[[email protected]-ds-itstool-199-137-5 ~]# ss -tnl
State       Recv-Q Send-Q               Local Address:Port                              Peer Address:Port
LISTEN      0      128                              *:22                                           *:*
LISTEN      0      100                      127.0.0.1:25                                           *:*
LISTEN      0      128                              *:10050                                        *:*
LISTEN      0      50                              :::8080                                        :::*
LISTEN      0      128                             :::22                                          :::*
LISTEN      0      50                ::ffff:127.0.0.1:1527                                        :::*
LISTEN      0      128                            ::1:7001                                        :::*
LISTEN      0      128            ::ffff:10.199.137.5:7001                                        :::*
LISTEN      0      128               ::ffff:127.0.0.1:7001                                        :::*
LISTEN      0      100                            ::1:25                                          :::*
LISTEN      0      128                            ::1:7008                                        :::*
LISTEN      0      128            ::ffff:10.199.137.5:7008                                        :::*
LISTEN      0      128               ::ffff:127.0.0.1:7008                                        :::*   

#打开浏览器访问对应的url
 http://192.168.1.1:7008/console

原文地址:https://www.cnblogs.com/yxh168/p/9639833.html

时间: 2024-11-05 23:32:27

weblogic的基础安装的相关文章

WebLogic中间件基础入门培训教程_WebLogic部署配置视频教程

WebLogic中间件基础入门培训教程_WebLogic部署配置视频教程 WebLogic中间件基础入门培训教程_WebLogic部署配置视频教程5 风哥主讲:介绍Oracle WebLogic中间件的概念,WebLogic概念,域,JDK,JVM,数据源,连接池,控制台,集群相关,Weblogic安装与部署. 视频学习地址: http://edu.51cto.com/course/course_id-3744.html

weblogic开发版安装

看到weblogic开发版安装的十几篇博客内容完全一样非常头疼,决定按自己想法走一遍 还有,安装weblogic需要的java_home中的路径不能有空格,单词中间不能有空格!!! 下载开发版 可以直接百度,这里我选择第二个进去 选择下载条件如下,其实安装教程在下面的readme里面已经说的很清楚了,我写安装教程只是把我遇到的坑说一说 配置环境变量如下,变量值为你解压的地址,如下 然后命令行切到你刚才文件解压路径下或者你自己的"MV_HOME" 输入: configure.cmd, 如

WebServer 之apache(httpd2.2和httpd2.4)基础安装部署

一.Httpd2.2基础安装部署 1.httpd-2.2软件的基础配置说明: 2.HTTPD配置练习 1)修改监听的地址端口: 2)持久连接配置 3)MPM机制配置 4)DSO:支持动态装载和卸载 5)'Main' Server'配置 6)站点资源访问控制 7) 定义站点主页面 8) 定义路径别名: 9)日志设定 10)httpd-manual 手册软件 11)基于用户的访问控制机制 12)虚拟主机 13)status页面:httpd程序自带的能够不断的反馈刷新的方式显示内部状态页面 14)cu

Nagios监控基础安装与监控项部署(上)

前言:NAGIOS介绍: Nagios是一款开源的电脑系统和网络监视工具,能有效监控Windows.Linux和Unix的主机状态,交换机路由器等网络设置,打印机等.在系统或服务状态异常时发出邮件或短信报警第一时间通知网站运维人员,在状态恢复后发出正常的邮件或短信通知. 主要功能 (1)网络服务监控(SMTP.POP3.HTTP.NNTP.ICMP.SNMP.FTP.SSH) (2)主机资源监控(CPU load.diskusage.system logs),也包括Windows主机(使用NSC

手把手教你nginx基础安装配置

手把手教你nginx基础安装配置! 一.Nginx安装及简单配置: 安装环境和依赖的包: #yum groupinstall "developmenttools" "server platform development" # yum -yinstall pcre-devel #yum install openssl-devel 下载相关nginx源码包: #wgethttp://nginx.org/download/nginx-1.6.2.tar.gz 解压缩源码

ios开发UI基础—安装苹果官方文档和Xcode模拟器

ios开发UI基础-安装苹果官方文档和Xcode模拟器 提示:准备资料 (1)com.apple.adc.documentation.AppleiOS7.1.iOSLibrary.docset.zip (2)iPhoneSimulator6.1.sdk.zip 一.安装苹果官方文档 1.安装路径 文档有两个安装路径: (1)~/资源库/Developer/Xcode/UserData/ (2)/Applications/Xcode.app/Contents/Developer/Documenta

CentOS 基础安装

1. 下载了 CentOS 的最小安装版本 与 VMware,基础安装流程参考百度经验:http://jingyan.baidu.com/article/eae0782787b4c01fec548535.html. 2. 启动后 yum 命令的镜像解析出错: 进入文件 /etc/sysconfig/network-scripts/ifcfg-enp0s3(每台机器不同 “-” 的后缀也可能不同)  将 ONBOOT=no 改为 ONBOOT=yes 重启网络服务 # service networ

Nagios监控基础安装与监控项部署(下)

上文总结了nagios监控的基础安装配置,现在来总结一下Nagios监控项部署 一.Nagios服务端监控部署 1.Nagios服务端目录与相关配置文件说明 Nagios 安装完成后,/usr/local/nagios/目录下会生成 nagios 相关目录及配置文件,默认的的配置文件在/usr/local/nagios/etc 目录下.详细的描述如下: a)nagios安装后的目录结构 [[email protected] ~]# ll /usr/local/nagios/           

[Java基础] 安装和使用JD-Eclipse插件

JD-Core 是一个免费的库,从一个或多个“.class”文件中 重构Java源代码.JD-Core可以用来恢复丢失的源代码,并深究Java运行时类库.支持Java 5的功能:如注释,泛型或键入“枚举” .JD-GUI 和 JD-Eclipse都包括JD-Core. JD-GUI 是一个独立的显示“.class” 文件Java源代码的图形用户界面工具.您可以使用JD-GUI浏览和重建源代码的即时访问方法和字段,以代码高度方式来显示反编译过来的代码. GUI下载地址:http://java.de