登录  | 加入社区

黑狼游客您好!登录后享受更多精彩

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

查看: 646|回复: 0

centos 7安装WebLogic

[复制链接]

389

主题

12

帖子

0

现金

黑狼菜鸟

Rank: 1

积分
16
发表于 2018-9-10 12:32:20 | 显示全部楼层 |阅读模式 来自 山东济宁
D0QaRTt0v5sqn5T1.jpg

一,创建用户组和用户
[root@localhost weblogic]# groupadd weblogic
[root@localhost weblogic]# useradd –g weblogic weblogic
[root@localhost weblogic]# passwd weblogic 输入weblogic用户的暗码
二,预备weblogic目次
[root@localhost weblogic]# mkdir /opt/weblogic
[root@localhost weblogic]# chown -R weblogic /opt/weblogic
安装WebLogic
[root@localhost weblogic]# chown weblogic:weblogic /home/weblogic/fmw_12.1.3.0.0_wls.jar
[root@localhost weblogic]# chmod a+x /home/weblogic/fmw_12.1.3.0.0_wls.jar
[root@localhost weblogic]# su weblogic
[weblogic@localhost ~]$ java -d64 -jar fmw_12.1.3.0.0_wls.jar
weblogic Server 12.1.1全部都可以用原来方式.
WebLogic Server 12.1.2后已经取消了console安装模式,现在只有gui和静默安装模式。而且安装方式下也有很大变革
三, 创建初始化情况文件oraInst.loc
inventory_loc=/home/weblogic/oraInventory
inst_group=weblogic
有的文档上写成 inst_group=oui_install_group
四,创建相应文件wls.resp
[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=/opt/weblogic
#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=
#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=
#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=
五, 实行安装
java -jar -d64 /home/weblogic/fmw_12.1.3.0.0_wls.jar -silent -invPtrLoc /home/weblogic/oraInst.loc -responseFile /home/weblogic/wls.resp
Oracle Fusion Middleware 12c WebLogic Server 和 Coherence 12.1.3.0.0 的 安装 已乐成完成。
日记已乐成复制到/home/weblogic/oraInventory/logs。 -----打印此信息,阐明weblogic安装乐成了。
六. 创建domain
[weblogic@localhost bin]$ pwd /opt/weblogic/wlserver/common/bin
[weblogic@localhost bin]$ ./commEnv.sh MW_HOME or WL_HOME is not set.
[weblogic@localhost bin]$
注:export MW_HOME=$ORACLE_HOME 见相应文件 wls.resp 中的 ORACLE_HOME
export MW_HOME=/opt/weblogic
export WLS_HOME=$MW_HOME/wlserver
export WL_HOME=$WLS_HOME
cd /opt/weblogic/wlserver/common/bin
bash$ pwd
/opt/weblogic/wlserver/common/bin
bash$ ./commEnv.sh
bash$ ./wlst.sh
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Initializing WebLogic Scripting Tool (WLST) ...
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
wls:/offline> readTemplate('/opt/weblogic/wlserver/common/templates/wls/wls.jar')
wls:/offline/base_domain>cd('Servers/AdminServer')
wls:/offline/base_domain/Server/AdminServer>set('ListenAddress','')
wls:/offline/base_domain/Server/AdminServer>set('ListenPort', 7001)
wls:/offline/base_domain/Server/AdminServer>cd('../..')
wls:/offline/base_domain>cd('Security/base_domain/User/weblogic')
wls:/offline/base_domain/Security/base_domain/User/weblogic>cmo.setPassword('weblogic12')
wls:/offline/base_domain/Security/base_domain/User/weblogic>setOption('OverwriteDomain', 'true')
wls:/offline/base_domain/Security/base_domain/User/weblogic>writeDomain('/opt/weblogic/user_projects/domains/test')
closeTemplate()
exit()
七, 启动nodeManager和weblogic
cd /opt/weblogic/user_projects/domains/test
./startWebLogic.sh &
./startNodeManager.sh &




上一篇:史上最全(ThinkPHP5底子解说、实战及源码)资源热心分享! ...
下一篇:Ubuntu16.04体系美化、常用软件安装等,恒久更新
您需要登录后才可以回帖 登录 | 加入社区

本版积分规则

 

QQ|申请友链|小黑屋|手机版|Hlshell Inc. ( 豫ICP备16002110号-5 )

GMT+8, 2024-7-2 04:01 , Processed in 0.132773 second(s), 47 queries .

HLShell有权修改版权声明内容,如有任何爭議,HLShell將保留最終決定權!

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表