We have an installed WebLogic, we want to install another weblogic or want to put WebLogic into another directory, the most straightforward way is to start from scratch.
But starting from scratch is more time-consuming and laborious, especially for patching and creating a domain; it would be nice if we could copy the existing WebLogic and use it in the past.
In fact, the use of replication is actually feasible, but the WebLogic configuration file uses an absolute path that needs to be modified after copying to a different directory.
Here we take the installation directory from/weblogic to/weblogic11g as an example
1. Modify each. sh file in the bin directory of domain to change the/weblgic/to/weblogic11g/
2. Modify each. sh file in the $wl_home/wlserver_10.3/common/bin directory to change the/weblgic/to/weblogic11g/
Go to the above directory and execute the Quick Replace script command:
sed ' s/\/weblogic\//\/weblogic11g\//g ' *.sh
WebLogic Modifying the installation path tutorial