WebLogic 12c Wlst Silent build domain

Source: Internet
Author: User

1. Install WebLogic 12C can refer to the previous article (install WebLogic with Java must be the same as the construction of the domain or error)

2. Manually build the domain, initialize the environment variables

$sh/home/weblogic/oracle/middleware/oracle_home/wlserver/server/bin/setwlsenv.sh

3. Execute the 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 ', ') #监听地址

Set (' Listenport ', 7001) #端口

CD ('/')

CD (' Security/base_domain/user/weblogic ')

Cmo.setpassword (' weblogic123 ') #设置控制台登录密码

SetOption (' Overwritedomain ', ' true ')

SetOption (' Javahome ', '/home/bea64/jdk1.8.0_131 ') #制定JDK位置

Writedomain ('/home/bea64/domains/jydomain ') #新建域指定路径

Closetemplate ()

Exit () #退出



############################### #脚本建域 ##############################

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 rationale is to reset the source of random numbers under the Linux system so that the domain can be built faster.

$export config_jvm_args= '-djava.security.egd=file:/dev/urandom '


Execute the script and the domain will be built.

$/home/weblogic/oracle/middleware/oracle_home/wlserver/common/bin/wlst.sh domain.py


This article is from the "linux_oracle" blog, make sure to keep this source http://pankuo.blog.51cto.com/8651697/1980098

WebLogic 12c Wlst Silent build domain

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.