weblogic安装配置教程
weblogic安装配置教程
1.root用户在/home目录下创建weblogic用户:
(1)useradd weblogic
(2)passwd weblogic (连续输入两次密码)
2.weblogic用户登录并导入fmw_12.2.1.4.0_wls.jar包至/home/weblogic/
3. 创建/home/weblogic/wsl.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/oraclethin
#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=
4.创建/home/weblogic/oraInst.loc文件:
inventory_loc=/home/weblogic/oraInventory
inst_group=weblogic
5.安装weblogic:
运行:
java -jar fmw_12.2.1.4.0_wls.jar -silent -responseFile /home/weblogic/wsl.rsp -invPtrLoc /home/weblogic/oraInst.loc
6.创建域目录:
运行:
mkdir -p /home/weblogic/oraclethin/user_projects/domains/base_domain/(该目录必须为空)
7.创建域脚本:在/home/weblogic/create_domain.rsp下创建域脚本:
read template from “/home/weblogic/oraclethin/wlserver/common/templates/wls/wls.jar”;
set JavaHome “/usr/java/jdk1.8.0_261”;
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/oraclethin/user_projects/domains/base_domain/”;
// The domain name will be “demo-domain”
close template;
8.执行创建域脚本:
运行:
cd /home/weblogic/oraclethin/wlserver/common/bin
sh config.sh -mode=silent -silent_script=/home/weblogic/create_domain.rsp -logfile=/home/weblogic/create_domain.log
9.修改启动脚本启动服务时无需输入账号密码:
在/home/weblogic/oraclethin/user_projects/domains/base_domain/bin/startWebLogic.sh脚本开始增加如下:
WLS_USER=weblogic
export WLS_USER
WLS_PW=weblogic
export WLS_PW
10.启动脚本:
依次运行:
1)cd /home/weblogic/oraclethin/user_projects/domains/base_domain
2)nohup sh startWebLogic.sh &