WebLogic 如何复制一个域并创建一个新域

ReadDomain

# Read the domain from the domain home located at /home/demoapp/demo_domain

wls:/offline> readDomain('/home/demoapp/demo_domain')

wls:/offline/demo_domain>

 

Create the template jar

# Create the template jarwls_demoapp.jar in /home/demoapp

wls:/offline/demo_domain> writeTemplate('/home/demoapp/wls_demoapp.jar')

wls:/offline/demo_domain>

[[email protected] ~]$ pwd

/home/demoapp

[[email protected] ~]$ ll wls_demoapp.jar

-rw-r-----. 1 demoapp demoapp 69620 Mar 24 10:50 wls_demoapp.jar

 

Create the new Domain

wls:/offline> createDomain('/home/demoapp/wls_demoapp.jar','/home/demoapp/goya_domain', 'weblogic', 'weblogic123')

wls:/offline>

[[email protected] goya_domain]$ pwd

/home/demoapp/goya_domain

[[email protected] goya_domain]$ ll

total 20

drwxr-x---. 6 demoapp demoapp 4096 Mar 24 11:18 bin

drwxr-x---. 9 demoapp demoapp  143 Mar 24 11:18 config

-rw-r-----. 1 demoapp demoapp  327 Mar 24 10:50 fileRealm.properties

drwxr-x---. 2 demoapp demoapp 4096 Mar 24 11:18 init-info

drwxr-x---. 2 demoapp demoapp   24 Mar 24 11:18 lib

drwxr-x---. 2 demoapp demoapp   63 Mar 24 11:18 nodemanager

drwxr-x---. 2 demoapp demoapp  143 Mar 24 11:18 security

drwxr-x---. 3 demoapp demoapp   25 Mar 24 11:18 servers

-rw-r-----. 1 demoapp demoapp  767 Mar 24 11:18 startManagedWebLogic_readme.txt

-rwxr-x---. 1 demoapp demoapp  241 Mar 24 11:18 startWebLogic.sh

 

Start weblogic

[[email protected] bin]$ pwd

/home/demoapp/goya_domain/bin

[[email protected] bin]$ nohup ./startWebLogic.sh &

 

Check the result. The servers and configuration also duplicated to the new domain.

WebLogic 如何复制一个域并创建一个新域转存失败重新上传取消WebLogic 如何复制一个域并创建一个新域