WebLogic 12c 多节点Cluster静默安装
WebLogic集群架构

Weblogic角色
AdminServer:
172.16.65.130
NodeServer:
172.16.65.131、172.16.65.132
版本
weblogic 12.2.1.3.0
centos 7.3
通用安装步骤
-- 创建账号和目录 -- /usr/sbin/groupadd -g wladmin /usr/sbin/useradd -u -g wladmin -G wladmin wladmin /usr/bin/echo -e "P@ssw0rd\nP@ssw0rd" | (/usr/bin/passwd --stdin wladmin) /usr/bin/mkdir -p /WebLogic/oracle/inventory /usr/bin/chown -R wladmin:wladmin /WebLogic /usr/bin/chmod -R /WebLogic /usr/bin/su - wladmin -c "/usr/bin/mkdir -p /WebLogic/oracle/middleware" -- 创建oraInst.loc配置文件 -- /usr/bin/touch /etc/oraInst.loc /usr/bin/echo "inventory_loc=/WebLogic/oracle/inventory" > /etc/oraInst.loc /usr/bin/echo "inst_group=wladmin" >> /etc/oraInst.loc /usr/bin/chown wladmin:wladmin /etc/oraInst.loc /usr/bin/chmod /etc/oraInst.loc -- 创建Install.rsp配置文件 -- /usr/bin/cat > /WebLogic/oracle/Install.rsp << EOF
[ENGINE] #DO NOT CHANGE THIS. Response File Version=1.0.0.0. [GENERIC] #The oracle home location. This can be an existing Oracle Home or a new Oracle Home ORACLE_HOME=/WebLogic/oracle/middleware #Set this variable value to the Installation Type selected. e.g. Fusion Middleware Infrastructure, Fusion Middleware Infrastructure 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> #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=<SECURE VALUE> #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=
EOF /usr/bin/chown wladmin:wladmin /WebLogic/oracle/Install.rsp -- 开始安装 --
export WL_HOME=/WebLogic/oracle/middleware/wlserver /usr/bin/cp /root/fmw_12.2.1..0_wls.jar /home/wladmin/ /usr/bin/chown wladmin:wladmin /home/wladmin/fmw_12.2.1..0_wls.jar /usr/bin/su - wladmin -c "java -jar /home/wladmin/fmw_12.2.1.3.0_wls.jar -silent -invPtrLoc /etc/oraInst.loc -responseFile /WebLogic/oracle/Install.rsp" /usr/bin/ls -ltr /WebLogic/oracle/middleware -- 关闭防火墙 -- service firewalld stop
systemctl disable firewalld
AdminServer配置部分
-- 创建Adminserver --
/usr/bin/su - wladmin -c "/WebLogic/oracle/middleware/oracle_common/common/bin/wlst.sh" << EOF
readTemplate('/WebLogic/oracle/middleware/wlserver/common/templates/wls/wls.jar')
cd('Servers/AdminServer')
cmo.setListenAddress("172.16.65.130")
set('ListenPort', ) cd('/')
cd('Security/base_domain/User/weblogic')
cmo.setPassword('weblogic123')
setOption('ServerStartMode','prod')
setOption('OverwriteDomain', 'true')
writeDomain('/WebLogic/oracle/middleware/user_projects/domains/base_domain')
closeTemplate()
exit()
EOF -- 创建Node节点:MS- MS- --
/usr/bin/touch /tmp/answers.txt
/usr/bin/cat >> /tmp/answers.txt << EOF
readDomain('/WebLogic/oracle/middleware/user_projects/domains/base_domain') cd('/')
create('MS-01', 'Server')
cd('Servers')
cd('MS-01')
set('ListenPort', )
set('ListenAddress', '172.16.65.131') cd('/')
create('MS-02', 'Server')
cd('Servers')
cd('MS-02')
set('ListenPort', )
set('ListenAddress', '172.16.65.132') cd('/')
create('basecluster', 'Cluster')
assign('Server', 'MS-01','Cluster','basecluster')
assign('Server', 'MS-02','Cluster','basecluster')
cd('Cluster/basecluster')
set('ClusterMessagingMode', 'unicast')
set('WeblogicPluginEnabled', 'true') cd('/')
create('Machine01', 'Machine')
assign('Server', 'MS-01','Machine','Machine01')
cd('Machines/' + 'Machine01/')
create('Machine01', 'NodeManager')
cd('NodeManager/' + 'Machine01')
set('NMType', 'Plain')
set('ListenAddress', '172.16.65.130')
set('DebugEnabled', 'false') cd('/')
create('Machine02', 'Machine')
assign('Server', 'MS-02','Machine','Machine02')
cd('Machines/' + 'Machine02/')
create('Machine02', 'NodeManager')
cd('NodeManager/' + 'Machine02')
set('NMType', 'Plain')
set('ListenAddress', '172.16.65.131')
set('DebugEnabled', 'false') updateDomain()
closeDomain()
disconnect()
exit()
EOF /usr/bin/su - wladmin -c "/WebLogic/oracle/middleware/oracle_common/common/bin/wlst.sh < /tmp/answers.txt" -- 安全配置 --
export DOMAIN_HOME=/WebLogic/oracle/middleware/user_projects/domains/base_domain
export WL_HOME=/WebLogic/oracle/middleware/wlserver
/usr/bin/su - wladmin -c "/usr/bin/sed -i -e 's/SecureListener=true/SecureListener=false/g' /WebLogic/oracle/middleware/user_projects/domains/base_domain/nodemanager/nodemanager.properties"
/usr/bin/su - wladmin -c "/usr/bin/mkdir -p /WebLogic/oracle/middleware/user_projects/domains/base_domain/servers/AdminServer/security"
/usr/bin/su - wladmin -c "/usr/bin/cat > /WebLogic/oracle/middleware/user_projects/domains/base_domain/servers/AdminServer/security/boot.properties" << EOF
username=weblogic
password=weblogic123
EOF
-- pack node配置 --
/usr/bin/su - wladmin -c "/WebLogic/oracle/middleware/oracle_common/common/bin/pack.sh -managed=true -domain=/WebLogic/oracle/middleware/user_projects/domains/base_domain -template=/WebLogic/oracle/middleware/user_projects/domains/base_domain-wlsTemplate.jar -template_name=base_domain" -- 将配置复制到node节点 --
/usr/bin/su - wladmin -c "sshpass -p 'P@ssw0rd' scp -o StrictHostKeyChecking=no /WebLogic/oracle/middleware/user_projects/domains/base_domain-wlsTemplate.jar wladmin@172.16.65.131:/WebLogic/" ------ Start Server ------ /usr/bin/su - wladmin -c "nohup /WebLogic/oracle/middleware/user_projects/domains/base_domain/bin/startNodeManager.sh &" /usr/bin/su - wladmin -c "nohup /WebLogic/oracle/middleware/user_projects/domains/base_domain/bin/startWebLogic.sh &"
----- Node Server配置部分 ----- /usr/bin/su - wladmin -c "/usr/bin/mkdir -p /WebLogic/oracle/middleware/user_projects/domains/base_domain"
/usr/bin/su - wladmin -c "/WebLogic/oracle/middleware/oracle_common/common/bin/unpack.sh -domain=/WebLogic/oracle/middleware/user_projects/domains/base_domain -template=/WebLogic/base_domain-wlsTemplate.jar" /usr/bin/su - wladmin -c "nohup /WebLogic/oracle/middleware/user_projects/domains/base_domain/bin/startNodeManager.sh &"
效果验证
登录WebLogic

手动将两个Node启动

集群启动成功
参考链接:
https://www.sajaldebnath.com/oracle-weblogic-service-vrealize-automation/
WebLogic 12c 多节点Cluster静默安装的更多相关文章
- WebLogic 12c Linux 命令行 静默安装
CentOS 6.3安装配置Weblogic 10 http://www.linuxidc.com/Linux/2014-02/96918.htm Oracle WebLogic 11g 安装部署文 ...
- WebLogic 12c 修改节点 Managed Server 和 AdminServer 内存方法
1.进入管理节点: 2.添加JVM参数: -Xms1024m -Xmx2048m -XX:PermSize=512m -XX:MaxPermSize=1024m JAVA 8 可将-XX:PermSi ...
- Oracle 12c(12.1.0.5) oem agent silent install(静默安装agent)
注释: 文章自oracle support 文档 ID 1360083.1,静默安装agent采用的是把OMS服务端(即oem server端)的agent用压缩包download,远程传到agent ...
- Oracle 12c RAC 静默安装文档
参考文档: https://docs.oracle.com/en/database/oracle/oracle-database/12.2/cwlin/index.html https://docs. ...
- WebLogic 12c Linux 命令行 安装
最近负责在Linux上安装WebLogic Server 12c,客户说要安装最新的版本,版本号为 12.1.X(12.1.2,12.1.3).开始以为和旧版安装一样,使用控制台的方式,下载bin文件 ...
- vmware安装cent os 6.5 + oracle 11g xe + jboss eap 6.2 + weblogic 12c+ webshpere mq 7.5
前言: mac系统发展速度确实很快,短短数年,mac os上已经能网银支付(中行.招行.工商.支付宝等均已全面支持mac os了),windows上的经典常用软件:qq.飞信.旺旺.有道词典.有道云笔 ...
- Oracle 12c 静默安装(脚本自动化)
oracle 12C 自动化静默安装脚本 项目地址: github: https://github.com/spdir/oracle-single-install 下载安装脚本 wget https: ...
- Oracle 静默安装 oracle 12c
[oracle@local12cdg app]$ id oracleuid=501(oracle) gid=501(oinstall) groups=501(oinstall),502(dba)[or ...
- weblogic安装(无界面静默安装)
一.环境准备 1. 用户准备 Generic通用版weblogic不能用ROOT用户安装,如无其他用户需先创建用户,创建用户步骤此处略过 2. 下载weblogic 在官网下载weblogic,将下载 ...
随机推荐
- Linux 开机自动挂载分区
参考:http://linuxso.com/linuxrumen/3658.html 参考:http://www.jb51.net/os/RedHat/213998.html 查看磁盘UUID信息 [ ...
- POJ 1426 Find The Multiple && 51nod 1109 01组成的N的倍数 (BFS + 同余模定理)
Find The Multiple Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 21436 Accepted: 877 ...
- ROC 准确率,召回率 F-measure理解(转载)
ROC曲线.AUC.Precision.Recall.F-measure理解及Python实现 原文连接:http://www.cnblogs.com/haoguoeveryone/p/haogu ...
- Python gevent学习笔记
gevent是Python的一个用于网络IO的函数库,其中应用到了 coroutine(协同程序) 的思想.首先来了解下目前网络框架的几种基本的网络I/O模型: 阻塞式单线程:这是最基本的I/O模型, ...
- JS原生追加子节点
var fragment = document.createDocumentFragment(); li = document.createElement('li'); li.className = ...
- Java 基础巩固:装箱拆箱 你真的熟悉吗
先考两道题: Integer a1 = 300; Integer a2 =300; System.out.print(a1 == a2); Integer b1 = 1; Integer b2 = 1 ...
- Windows下批处理文件(.bat)的使用
cmd文件和bat文件的区别:在本质上两者没有区别,都是简单的文本编码方式,都可以用记事本创建.编辑和查看.两者所用的命令行代码也是共用的,只是cmd文件中允许使用的命令要比bat文件多.cmd文件只 ...
- ehcache 配置持久化到硬盘(四)
Ehcache默认配置的话 为了提高效率,所以有一部分缓存是在内存中,然后达到配置的内存对象总量,则才根据策略持久化到硬盘中,这里是有一个问题的,假如系统突然中断运行 那内存中的那些缓存,直接被释放掉 ...
- Qt 如何像 VS 一样创建项目模版?
qt 存储模版路径位置:Qt\Qt5.9.5\Tools\QtCreator\share\qtcreator\templates\wizards 在里面随意复制一个模版,修改三项即可在 qt 中显示该 ...
- python函数回顾:hex()
描述 hex() 函数用于将10进制整数转换成16进制,以字符串形式表示. 语法 hex 语法: hex(x) 参数说明: x -- 10进制整数 返回值 返回16进制数,以字符串形式表示. 实例 & ...
