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 WLST silently build a domain

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

1. Please refer to past articles for installing weblogic 12C (the java used to install weblogic must be the same as when you built the domain, otherwise an error will be reported.)

two。 Manually create domains and initialize environment variables

$sh / home/weblogic/Oracle/Middleware/Oracle_Home/wlserver/server/bin/setWLSEnv.sh

3. Execute wlst script

$/ home/bea64/Oracle/Middleware/Oracle_Home/wlserver/common/bin/wlst.sh

Wls:/offline >

Execute the following statement

ReadTemplate ("/ home/bea64/Oracle/Middleware/Oracle_Home/wlserver/common/templates/wls/wls.jar")

Cd ('Servers/AdminServer')

Set ('ListenAddress','') # listening address

Set ('ListenPort', 7001) # port

Cd ('/')

Cd ('Security/base_domain/User/weblogic')

Cmo.setPassword ('weblogic123') # set the console login password

SetOption ('OverwriteDomain',' true')

SetOption ('JavaHome',' / home/bea64/jdk1.8.0_131') # define the JDK location

WriteDomain ('/ home/bea64/domains/jydomain') # specify the path for the new domain

CloseTemplate ()

Exit () # exit

# # creating a domain by script # #

Weblogic user execution

Write a script

$cat domain.py

ReadTemplate ("/ home/weblogic/Oracle/Middleware/Oracle_Home/wlserver/common/templates/wls/wls.jar")

Cd ('Servers/AdminServer')

Set ('ListenAddress','')

Set ('ListenPort', 7001)

Cd ('/')

Cd ('Security/base_domain/User/weblogic')

Cmo.setPassword ('weblogic123')

SetOption ('OverwriteDomain',' true')

SetOption ('JavaHome',' / usr/java/jdk1.8.0_141')

WriteDomain ('/ home/weblogic/domains/jydomain')

CloseTemplate ()

Exit ()

The basic principle is to reset the source of random numbers under the Linux system, so that the domain will be built more quickly.

$export CONFIG_JVM_ARGS='-Djava.security.egd=file:/dev/urandom'

Execute the script and the domain will be built in a minute.

$/ home/weblogic/Oracle/Middleware/Oracle_Home/wlserver/common/bin/wlst.sh domain.py

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: 0

*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

Servers

Wechat

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

12
Report