Correct, elegant close WebLogic 8

xiaoxiao2021-03-06  24

After the console launches WebLogic (Run WebLogic.cmd), how is it safe and correct? CTRL C? Turn off the command window directly? This problem has been troubled, I finally found the answer today!

Write StopWebLogic.cmd, save it to the domain directory you created, when you want to turn off WebLogic, you can only do it, it is very convenient, huh, huh.

[Stopweblogic.cmd] The content is as follows:

Remrem Setting Basic Environment Variable Remset Java_Home = D: / BEA / JDK141_05SET PlatformHome = D: / BEA / WebLogic81Set Admin_URL = "T3: // Localhost: 80"

This is forcibly closed REMREM REM set ARGUMENTS = weblogic.Admin FORCESHUTDOWN -url% ADMIN_URL% -username weblogic -password weblogicREMset ARGUMENTS = weblogic.Admin SHUTDOWN -url% ADMIN_URL% -username weblogic -password weblogic

Remrem Close WebLogicRemset ClassPath =% PlatformHome% / Server / lib / weblogic.jar "% java_home% / bin / java.exe" -cp "% classpath%"% arguments%

But there is also a drawback, found that the user name in the document is stored in a clear text! Undoubtedly, there is a great safety hazard. When you create a domain, WebLogic stores an administrator username and password encrypted in the boot.properties file, but how can you safely call the boot.properties file? After many parties to find information, I finally discovered a solution.

[STOPWEBLOGIC.CMD] The revision is as follows:

RemRem set basic environment variable Remset java_home = d: / bea / jdk141_05set platformHome = D: / bea / weblogic81set admin_url = "t3: // localhost: 80" SET DOMAINPATH = D: / bea / user_projects / domains / mydomain

This is forcibly closed REMREM REM set ARGUMENTS = weblogic.Admin FORCESHUTDOWN -url% ADMIN_URL% REMset ARGUMENTS = weblogic.Admin SHUTDOWN -url% ADMIN_URL% set ARGUMENTS = -Dweblogic.system.BootIdentityFile =% DOMAINPATH% / boot.properties -Dweblogic. Rootdirectory =% DomainPath%% arguments%

Remrem Close WebLogicRemset ClassPath =% PlatformHome% / Server / lib / weblogic.jar "% java_home% / bin / java.exe" -cp "% classpath%"% arguments%

Oh, is it perfect? ! Cool!

转载请注明原文地址:https://www.9cbs.com/read-39997.html

New Post(0)