linux (centos7)安装weblogic12c(静默安装)

安装步骤

1.创建weblogic组

 groupadd weblogic

2.创建weblogic用户

useradd -g weblogic weblogic

3.为用户创建密码

passwd weblogic

4.拷贝weblogic安装包到/usr/local/src/weblogic/下,修改文件的权限

chown -R weblogic:weblogic /usr/local/src/weblogic/

5.切换到weblogic用户

su - weblogic

6.解压安装包

7.在/usr/local/src/weblogic/install/目录下新建文件wsl.rsp(我把脚本文件放在了install目录下),输入内容(设置安装存放路径为:/usr/local/src/weblogic/oracle):


[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=/usr/local/src/weblogic/oracle


INSTALL_TYPE=WebLogic Server


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=
 

8.在/usr/local/src/weblogic/install/目录下新建文件oraInst.loc(我把脚本文件放在了install目录下),输入内容:

inventory_loc=/usr/local/src/weblogic/oraInventory

inst_group=weblogic

9.执行安装操作(命令必须为绝对路径)

 java -jar fmw_12.2.1.4.0_wls.jar -silent -responseFile /usr/local/src/weblogic/install/wsl.rsp  -invPtrLoc  /usr/local/src/weblogic/install/oraInst.loc

出现如下内容,安装成功 

 

10.新建域目录

mkdir -p /usr/local/src/weblogic/oracle/user_projects/domains/base_domain/

11.在/usr/local/src/创建域脚本create_domain.rsp,输入内容(需要注意jdk路径,安装安装域目录,密码等,红色部分):

read template from "/usr/local/src/weblogic/oracle/wlserver/common/templates/wls/wls.jar";

set JavaHome "/usr/local/jdk1.8.0";

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 "h5" as Machinename;

//use templates default weblogic user

find User "weblogic" as u1;

set u1.password "weblogic123";

write domain to "/usr/local/src/weblogic/oracle/user_projects/domains/base_domain/";

// The domain name will be "base_domain"

close template;

12.加速创建域,找到使用的jdk的如下文件:(按需操作)

find / -name java.security

将securerandom.source=file:/dev/urandom 修改为

securerandom.source=file:/dev/./urandom

13.执行创建域脚本

cd /usr/local/src/weblogic/oracle/wlserver/common/bin

[weblogic@bogon bin]$ ./config.sh -mode=silent -silent_script=/usr/local/src/create_domain.rsp -logfile=/usr/local/src/weblogic/create_domain.log

 

启动服务

14.切换到安装目录下增加控制台用户名和密码(启动以后会出现此目录)

cd /usr/local/src/weblogic/oracle/user_projects/domains/base_domain/servers/AdminServer/

mkdir security

cd security/

vi boot.properties

设置用户名密码

username=weblogic

password=weblogic123

15.启动weblogic(weblogic用户)

cd /usr/local/src/weblogic/oracle/user_projects/domains/base_domain/bin

./startWebLogic.sh

在浏览器输入URL地址 http://ip:7001/console/ ,输入在boot.properties文件中配置用户名和密码

 注意: 如果是在虚拟机里边装的环境,在本机访问上述地址时,可能访问不到,需要关闭防火墙或者是开放端口;

1.禁用防火墙

systemctl stop firewalld

2.启动防火墙

systemctl start firewalld

  • 8
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值