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