Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Weblogic 12c (12.1.3) Silent installation and creation of domain

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

OS:centos mini6.4 ip:192.168.1.115

First of all, install jdk, which is 1.7

# install java

Rpm-ivh jdk-7u75-linux-x64.rpm

Export 'JAVA_HOME=/usr/java/jdk1.7.0_75' > > / etc/profile.d/java.sh

Export 'PATH=$JAVA_HOME/bin:$PATH' > > / etc/profile.d/java.sh

Export 'CLASSPATH=.:$JAVA_HOME/jre/lib:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar' > > / etc/profile.d/java.sh

. / etc/profile.d/java.sh

# verify java

Java-version

# modify java arguement

Vim / usr/java/jdk1.7.0_75/jre/lib/security/java.security

At first

Securerandom.source=file:/dev/urandom

After modification

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

# create weblogic user

Groupadd web

Useradd-g web-m-d / home/weblogic weblogic

Passwd weblogic-> redhat

Chown-R weblogic:web / home/weblogic/

Rz-y fmw_12.1.3.0.0_wls.jar

Chmod 755 fmw_12.1.3.0.0_wls.jar

# create manifest files and groups

Echo'# Oracle Installer Location File Location' > > / etc/oraInst.loc

Echo 'inst_group=web' > > / etc/oraInst.loc

Echo 'inventory_loc=/home/weblogic/oraInventory' > > / etc/oraInst.loc

Chmod 755 / etc/oraInst.loc

Chown-R weblogic:web / etc/oraInst.loc

# create rsp

[root@weblogic weblogic] # cat 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/Middleware-"specify the directory path of the installation

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

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=

For details of the response file, please refer to the official document.

Chmod 755 wls.rsp

Chown-R weblogic:web / home/weblogic/

# install weblogic

Su-weblogic

Cd / home/weblogic

Java-jar fmw_12.1.3.0.0_wls.jar-silent-responseFile / home/weblogic/wls.rsp-invPtrLoc / etc/oraInst.loc

Now that the installation of weblogic is complete, let's start to create domain, which is also a silent method. Here we use two relatively different ways, as shown below:

1. Create a domain response file with reference to the original template

Vim / home/weblogic/create_domain.rsp

Read template from "/ home/weblogic/Oracle/Middleware/wlserver/common/templates/wls/wls.jar"

Set JavaHome "/ usr/java/jdk1.7.0_75"

Set ServerStartMode "dev"

Find Server "AdminServer" as AdminServer

Set AdminServer.ListenAddress ""

Set AdminServer.ListenPort "7001"

Set AdminServer.SSL.Enabled "true";-"of course, if you don't need it here, you don't have to set it.

Set AdminServer.SSL.ListenPort "8002"

/ / We can directly create a new managed server.

Create Server "base" as BASE

Set BASE.ListenAddress ""

Set BASE.ListenPort "8003"

/ / set BASE.SSL.Enabled "true"

/ / set BASE.SSL.ListenPort "8004"

/ / Create Machine

Create Machine "base" 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/Middleware/user_projects/domains/base_domain/"

/ / The domain name will be "demo-domain"

Close template

When the creation of the response file is complete, the creation of the domain begins

You can see that base_domain has been created successfully, and now you need to start the service, but the error is as follows

I thought there was something wrong with the domain I created, so I created the domain in the second way

2. The tool wlst-tool is adopted.

In this way, you don't have to create a file, but you can create a domain in both weeks.

When the domain is created, the service is started, but the same error is still reported

So he overturned the above conclusion that there was a problem in creating domain, and started google to find out the cause of this error.

Solution:

The environment variables for editing weblogic users are as follows: vim / home/weblogic/.bash_profile

PATH=$PATH:$HOME/bin

Export CONFIG_JVM_ARGS= "- Djava.security.egd=file:/dev/./urandom"

Export WL_HOME=/home/weblogic/Oracle/Middleware/wlserver

Export MW_HOME=/home/weblogic/Oracle/Middleware/

Export PATH

Then start the service again and no longer report an error

So look at the browser:

So the 12.1.3.0 version based on weblogic 12c was successfully built.

Oracle: http://docs.oracle.com/cd/E11882_01/install.112/e24326/toc.htm

If CentOS has already been installed without a graphical interface

You can install this with the following commands:

$yum groupinstall "X Window System"Desktop"Desktop Platform"

$yum install gdm

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 274

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report