Linux安装weblogic 12

准备weblogic安装包:
链接: https://pan.baidu.com/s/1AkNKD2GPSGq0xqfmim9AeQ 密码: amc0
准备JDK1.8: java 1.8 linux 64位版本:
https://www.oracle.com/cn/java/technologies/javase-jdk8-downloads.html

创建weblogic组
 [root@localhost ~]# groupadd weblogic

创建weblogic用户
 [root@loaclhost ~]# useradd -g weblogic weblogic

为用户创建密码
 [root@localhost ~]# passwd weblogic
修改文件的权限
[root@localhost ~]# chown -R weblogic:weblogic /home/weblogic/

切换到weblogic用户
[root@localhost weblogic]# su - weblogic
[weblogic@localhost ~]$ unzip fmw_12.2.1.3.0_wls_Disk1_1of1.zip

得到
fmw_12.2.1.3.0_wls.jar
fmw_12213_readme.htm

[weblogic@localhost ~]$ vi .bash_profile 
写入以下
export JAVA_HOME=/home/weblogic/jdk1.8.0_191
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$PATH:$JAVA_HOME/bin
[weblogic@localhost ~]$  source .bash_profile
[weblogic@localhost ~]$ touch wsl.rsp
[weblogic@localhost ~]$ chmod 766 wsl.rsp
[weblogic@localhost ~]$ touch oraInst.loc
[weblogic@localhost ~]$ chmod 766 oraInst.loc
[weblogic@localhost ~]$ vi wsl.rsp 
写入以下:
      [ENGINE]
Response File Version=1.0.0.0.0
 
[GENERIC]
 
ORACLE_HOME=/home/weblogic/oracle    //安装路径(安装时删掉该提示)
 
INSTALL_TYPE=WebLogic Server
 
MYORACLESUPPORT_USERNAME=
 
MYORACLESUPPORT_PASSWORD=<SECURE VALUE>
 
DECLINE_SECURITY_UPDATES=true
 
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
 
PROXY_HOST=
 
PROXY_PORT=
 
PROXY_USER=
 
PROXY_PWD=<SECURE VALUE>
 
COLLECTOR_SUPPORTHUB_URL=

[weblogic@localhost ~]$ mkdir oracle
[weblogic@localhost ~]$ chmod 766 oracle/
[weblogic@localhost ~]$ chmod -R 766 oracle/

[weblogic@localhost ~]$ vi oraInst.loc
写入以下:
inventory_loc=/home/weblogic/oraInventory
inst_group=weblogic  

执行安装:

[weblogic@localhost ~]$ java -jar fmw_12.2.1.3.0_wls.jar  -silent -responseFile                  /home/weblogic/wsl.rsp -invPtrLoc  /home/weblogic/oraInst.loc

正在提取安装程序… . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 完成
检查 CPU 速度是否大于 300 MHz。 实际为 2200.314 MHz 通过
检查交换空间: 必须大于 512 MB。 实际为 2536 MB 通过
检查此平台是否需要 64 位 JVM。 实际为64 通过 (不需要 64 位)
检查临时空间: 必须大于 300 MB。 实际为 22104 MB 通过
准备从/tmp/OraInstall2019-08-23_01-22-25PM启动 Oracle Universal Installer
日志:/tmp/OraInstall2019-08-23_01-22-25PM/install2019-08-23_01-22-25PM.log
版权所有 © 1996, 2017, Oracle 和/或其附属公司。保留所有权利。
正在读取响应文件…
跳过软件更新
开始检查: CertifiedVersions
预期的结果: oracle-6, oracle-7, redhat-7, redhat-6, SuSE-11, SuSE-12之一
实际结果: redhat-null
检查完成。此次检查的总体结果为: 通过
CertifiedVersions 检查: 成功。

开始检查: CheckJDKVersion
预期的结果: 1.8.0_131
实际结果: 1.8.0_191
检查完成。此次检查的总体结果为: 通过
CheckJDKVersion 检查: 成功。

已启用此会话的验证。
正在验证数据
复制文件
完成百分比: 10
完成百分比: 20
完成百分比: 30
完成百分比: 40
完成百分比: 50
完成百分比: 60
完成百分比: 70
完成百分比: 80
完成百分比: 90
完成百分比: 100

Oracle Fusion Middleware 12c WebLogic Server 和 Coherence 12.2.1.3.0 的 安装 已成功完成。
日志已成功复制到/home/weblogic/oraInventory/logs。
到此安装已经完成


启动演示
[weblogic@localhost ~]$ cd oracle/
[weblogic@localhost oracle]$ pwd
/home/weblogic/oracle
[weblogic@localhost oracle]$ mkdir -p /home/weblogic/oracle/user_projects/domains/base_domain/
[weblogic@localhost oracle]$ chmod -R 766 /home/weblogic/oracle/user_projects/domains/base_domain/
[weblogic@localhost oracle]$ cd …
[weblogic@localhost ~]$ vi create_domain.rsp

read template from “/home/weblogic/oracle/wlserver/common/templates/wls/wls.jar”;
set JavaHome “/home/weblogic/jdk1.8.0_191”;
set ServerStartMode “prod”;
find Server “AdminServer” as AdminServer;
set AdminServer.ListenAddress “”;
set AdminServer.ListenPort “7001”;
set AdminServer.SSL.Enabled “true”;
set AdminServer.SSL.ListenPort “7002”;
//Create Machine
//create Machine “base” as Machinename;
//use templates default weblogic user
find User “weblogic” as u1;
set u1.password “weblogic”;
write domain to “/home/weblogic/oracle/user_projects/domains/base_domain/”;
// The domain name will be “demo-domain”
close template;

[weblogic@localhost ~]$ pwd
/home/weblogic
[weblogic@localhost bin]$ pwd
/home/weblogic/oracle/wlserver/common/bin
[weblogic@localhost bin]$ ./config.sh -mode=silent -silent_script=/home/weblogic/create_domain.rsp -logfile=/home/weblogic/create_domain.log
由于写的路径不对 检查路径create_domain.rsp文件检查WARNING: This is a deprecated script. Please invoke the config.sh script under oracle_common/common/bin.

[weblogic@localhost bin]$ ./config.sh -mode=silent -silent_script=/home/weblogic/create_domain.rsp-logfile=/home/weblogic/create_domain.log
WARNING: This is a deprecated script. Please invoke the config.sh script under oracle_common/common/bin.
<< read template from “/home/weblogic/oracle/wlserver/common/templates/wls/wls.jar”

succeed: read template from “/home/weblogic/oracle/wlserver/common/templates/wls/wls.jar”
<< set config option JavaHome to “/home/weblogic/jdk1.8.0_191”

succeed: set config option JavaHome to “/home/weblogic/jdk1.8.0_191”
<< set config option ServerStartMode to “prod”

succeed: set config option ServerStartMode to “prod”
<< find Server “AdminServer” as AdminServer

succeed: find Server “AdminServer” as AdminServer
<< set AdminServer attribute ListenAddress to “”

succeed: set AdminServer attribute ListenAddress to “”
<< set AdminServer attribute ListenPort to “7001”

succeed: set AdminServer attribute ListenPort to “7001”
<< set AdminServer attribute SSL!Enabled to “true”

succeed: set AdminServer attribute SSL!Enabled to “true”
<< set AdminServer attribute SSL!ListenPort to “7002”

succeed: set AdminServer attribute SSL!ListenPort to “7002”
<< find User “weblogic” as u1

succeed: find User “weblogic” as u1
<< set u1 attribute Password to “********”

succeed: set u1 attribute Password to “********”
<< write Domain to “/home/weblogic/oracle/user_projects/domains/base_domain/”

succeed: write Domain to “/home/weblogic/oracle/user_projects/domains/base_domain/”
<< close template

succeed: close template
[weblogic@localhost bin]$ mkdir -p /home/weblogic/oracle/user_projects/domains/base_domain/servers/AdminServer/
[weblogic@localhost bin]$ chmod -R 766 /home/weblogic/oracle/user_projects/domains/base_domain/servers/AdminServer/
[weblogic@localhost bin]$ cd /home/weblogic/oracle/user_projects/domains/base_domain/
[weblogic@localhost base_domain]$ ll
总用量 16
drwxr-x—. 2 weblogic weblogic 24 8月 23 13:36 autodeploy
drwxr-x—. 6 weblogic weblogic 4096 8月 23 13:36 bin
drwxr-x—. 8 weblogic weblogic 124 8月 23 13:36 config
drwxr-x—. 2 weblogic weblogic 24 8月 23 13:36 console-ext
-rw-r-----. 1 weblogic weblogic 327 7月 19 2017 fileRealm.properties
drwxr-x—. 3 weblogic weblogic 4096 8月 23 13:36 init-info
drwxr-x—. 2 weblogic weblogic 24 8月 23 13:36 lib
drwxr-x—. 2 weblogic weblogic 63 8月 23 13:36 nodemanager
drwxr-x—. 2 weblogic weblogic 6 7月 19 2017 resources
drwxr-x—. 2 weblogic weblogic 143 8月 23 13:36 security
drwxrwxr-x. 3 weblogic weblogic 25 8月 23 13:38 servers
-rwxr-x—. 1 weblogic weblogic 271 8月 23 13:36 startWebLogic.sh
[weblogic@localhost base_domain]$ cd servers/
[weblogic@localhost servers]$ ll
总用量 0
drwxrw-rw-. 2 weblogic weblogic 6 8月 23 13:38 AdminServer
[weblogic@localhost servers]$ cd AdminServer/
[weblogic@localhost AdminServer]$ ll
总用量 0
[weblogic@localhost AdminServer]$ mksir -p security
-bash: mksir: 未找到命令
[weblogic@localhost AdminServer]$
[weblogic@localhost AdminServer]$ mkdir -p security
[weblogic@localhost AdminServer]$ chmod -R 766 security/
[weblogic@localhost AdminServer]$ cd security/
[weblogic@localhost security]$ vi boot.properties登录账号和密码
View Code
[weblogic@localhost security]$ cd /home/weblogic/oracle/user_projects/domains/base_domain/
[weblogic@localhost base_domain]$ ll
总用量 16
drwxr-x—. 2 weblogic weblogic 24 8月 23 13:36 autodeploy
drwxr-x—. 6 weblogic weblogic 4096 8月 23 13:36 bin
drwxr-x—. 8 weblogic weblogic 124 8月 23 13:36 config
drwxr-x—. 2 weblogic weblogic 24 8月 23 13:36 console-ext
-rw-r-----. 1 weblogic weblogic 327 7月 19 2017 fileRealm.properties
drwxr-x—. 3 weblogic weblogic 4096 8月 23 13:36 init-info
drwxr-x—. 2 weblogic weblogic 24 8月 23 13:36 lib
drwxr-x—. 2 weblogic weblogic 63 8月 23 13:36 nodemanager
drwxr-x—. 2 weblogic weblogic 6 7月 19 2017 resources
drwxr-x—. 2 weblogic weblogic 143 8月 23 13:36 security
drwxrwxr-x. 3 weblogic weblogic 25 8月 23 13:38 servers
-rwxr-x—. 1 weblogic weblogic 271 8月 23 13:36 startWebLogic.sh
[weblogic@localhost base_domain]$ ./startWebLogic.sh
.
.
JAVA Memory arguments: -Xms256m -Xmx512m
.
CLASSPATH=/home/weblogic/jdk1.8.0_191/lib/tools.jar:/home/weblogic/oracle/wlserver/server/lib/weblogic.jar:/home/weblogic/oracle/wlserver/…/oracle_common/modules/thirdparty/ant-contrib-1.0b3.jar:/home/weblogic/oracle/wlserver/modules/features/oracle.wls.common.nodemanager.jar::/home/weblogic/oracle/wlserver/common/derby/lib/derbynet.jar:/home/weblogic/oracle/wlserver/common/derby/lib/derbyclient.jar:/home/weblogic/oracle/wlserver/common/derby/lib/derby.jar:.:/home/weblogic/jdk1.8.0_191/lib/dt.jar:/home/weblogic/jdk1.8.0_191/lib/tools.jar
.
PATH=/home/weblogic/oracle/user_projects/domains/base_domain/bin:/home/weblogic/oracle/wlserver/server/bin:/home/weblogic/oracle/wlserver/…/oracle_common/modules/thirdparty/org.apache.ant/1.9.8.0.0/apache-ant-1.9.8/bin:/home/weblogic/jdk1.8.0_191/jre/bin:/home/weblogic/jdk1.8.0_191/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/weblogic/.local/bin:/home/weblogic/bin:/home/weblogic/.local/bin:/home/weblogic/bin:/home/weblogic/jdk1.8.0_191/bin
.


  • To start WebLogic Server, use a username and *
  • password assigned to an admin-level user. For *
  • server administration, use the WebLogic Server *
  • console at http://hostname:port/console *
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值