搜档网
当前位置:搜档网 › Weblogic 12c 静默安装

Weblogic 12c 静默安装

1、上传JDK
2、上传WEBLOGIC安装包
目前软件包位置在 /software中
fmw_12.1.3.0.0_wls.jar
jdk-7u51-linux-x64.tar.gz

3、安装JDK
tar xzf jdk-7u51-linux-x64.tar.gz -C /opt/jdk/
cd /opt/jdk
mv jdk1.7.51 jdk1.7
修改环境变量
vi /etc/profile
添加
export JAVA_HOME=/opt/jdk/jdk1.7
export CLASSPATH=$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:.
export PATH=$JAVA_HOME/bin:$PATH

生效
source /etc/profile

4、安装WEBLOGIC软件
采用静默安装
创建WEBLOGIC用户
useradd weblogic
passwd weblogic 修改密码

chown weblogic.weblogic /software/fmw_12.1.3.0.0_wls.jar

su - weblogic
创建响应文件

cd ~
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/wls

#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 conf
iguration
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=
#########################################################

创建LOC文件
vi oraInst.loc
内容如下
inventory_loc=/home/weblogic/oraInventory1
inst_group=weblogic
########################################################

然后开始安装
执行命令
cd /software
java -jar fmw_12.1.3.0.0_wls.jar -silent -response /home/weblogic/wls.rsp -invPtrLoc /home/weblogic/oraInst.loc
出现以下输出为成功
######################
正在提取文件............
预期的结果: 1.7
实际结果: 1.7.51
检查完成。此次检查的总体结果为: 通过
CheckJDKVersion 检查: 成功。
正在验证数据...
正在复制文件...
-----------20%----------40%----------60%----------80%--------100%
WebLogic Server installation 已成功完成。
############################



5、创建DOMAIN
创建静默响应文件
cd ~
vi create_domain.rsp
###################

#############################################################
read template from "/home/weblogic/Oracle/wls/wlserver/common/templates/wls/wls.jar";

set JavaHome "/opt/jdk/jdk1.7";
set ServerStartMode "dev";

find Server "AdminServer" as AdminServer;
set AdminServer.ListenAddress "";
set AdminServer.ListenPort "8001";
set AdminServer.SSL.Enabled "true";
set AdminServer.SSL.ListenPort "8002";

//We can directly create a new managed server.
create Server "ms1" as MS1;
set MS1.ListenAddress "";
set MS1.ListenPort "8003";
//set MS1.SSL.Enabled "true";
//set MS1.SSL.ListenPort "7004″;


//Create Machine
create Machine "https://www.sodocs.net/doc/0812061346.html," as Machinename;


//use templates default weblogic user
find User "weblogic" as u1;
set u1.password "weblogic123";

//create a new user
create User "weblogic2" as u2;
set u2.password "weblogic123";

write domain to "/home/weblogic/Oracle/wls/user_projects/domains/test_domain"; // The domain name will be "demo-domain"

close template;
###########################################################################################

cd /home/weblogic/Oracle/wls/wlserver/common/bin
./config.sh -mode=silent -silent_script=/home/weblogic/create_domain.rsp -logfile=/home/weblogic/create_domain.log

出现如下输出
<< read template from "/home/weblogic/Oracle/wls/wlserver/common/templates/wls/wls.jar"
>> succeed: read template from "/home/weblogic/Oracle/wls/wlserver/common/templates/wls/wls.jar"
<< set config option JavaHome to "/opt/jdk/jdk1.7"
>> succeed: set config option JavaHome to "/opt/jdk/jdk1.7"
<< set config option ServerStartMode to "dev"
>> succeed: set config option ServerStartMode to "dev"
<< 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 "8001"
>> succeed: set AdminServer attribute ListenPort to "8001"
<< set AdminServer attribute SSL!Enabled to "true"
>> succeed: set AdminServer attribute SSL!Enabled to "true"
<< set AdminServer attribute SSL!ListenPort to "8002"
>> succeed: set AdminServer attribute SSL!ListenPort to "8002"
<< create Server "ms1" as MS1
>> succeed: create Server "ms1" as MS1
<< set MS1 attribute ListenAddress to ""
>> succeed: set MS1 attribute ListenAddress to ""
<< set MS1 attribute ListenPort to "8003"
>> succeed: set MS1 attribute ListenPort to "8003"
<< create Machine "shaiksameer!com" as Machinename
>> succeed: create Machine "shaiksameer!com" as Machinename
<< find User "weblogic" as u1
>> succeed: find User "weblogic" as u1
<< set u1 attribute Password to "********"
>> succeed: set u1 attribute Password to "********"
<< create User "weblogic2" as u2
>> succeed: create User "weblogic2" as u2
<< set u2 attribute Password to "********"
>> succeed: set u2 attribute Password to "********"
<< write Domain to

"/home/weblogic/Oracle/wls/user_projects/domains/test_domain"
..........................................................................................
>> succeed: write Domain to "/home/weblogic/Oracle/wls/user_projects/domains/test_domain"
<< close template
>> succeed: close template

创建DOMIAN完成在/home/weblogic/Oracle/wls/user_projects/domains/test_domain中

启动WEBLOGIC
cd /home/weblogic/Oracle/wls/user_projects/domains/test_domain
./startWebLogic.sh &

netstat -anltp | grep 8001
tcp 0 0 ::ffff:127.0.0.1:8001 :::* LISTEN 17661/java



相关主题