为降低维护难度,把脚本分成两部分
1 把%WL_HOME%\server\bin的installSvc.cmd复制到域目录下,并进行修改:
@rem ************************************************************************* @rem This script is used to install WebLogic Server as a Windows Service. @rem @rem To create your own start script for your domain, simply set the @rem SERVER_NAME variable to your server name then call this script from your @rem domain directory. @rem @rem This script sets the following variables before installing @rem WebLogic Server as a Windows Service: @rem @rem WL_HOME - The root directory of your WebLogic installation @rem JAVA_HOME - Location of the version of Java used to start WebLogic @rem Server. This variable must point to the root directory of a @rem JDK installation and will be set for you by the installer. @rem See the Oracle Fusion Middleware Supported System Configurations page @rem (http://www.oracle.com/technology/software/products/ias/files/fusion_certification.html) @rem for an up-to-date list of supported JVMs. @rem PATH - Adds the JDK and WebLogic directories to the system path. @rem CLASSPATH - Adds the JDK and WebLogic jars to the classpath. @rem @rem Other variables that installSvc takes are: @rem @rem WLS_USER - admin username for server startup @rem WLS_PW - cleartext password for server startup @rem ADMIN_URL - if this variable is set, the server started will be a @rem managed server, and will look to the url specified (i.e. @rem http://localhost:7001) as the admin server. @rem PRODUCTION_MODE - set to true for production mode servers, false for @rem development mode @rem JAVA_OPTIONS - Java command-line options for running the server. (These @rem will be tagged on to the end of the JAVA_VM and MEM_ARGS) @rem JAVA_VM - The java arg specifying the VM to run. (i.e. -server, @rem -client, etc.) @rem MEM_ARGS - The variable to override the standard memory arguments @rem passed to java @rem @rem @rem MAX_CONNECT_RETRIES - Number of attempts the Windows Service will make to check @rem if the Weblogic Server is started. If this variable @rem is specified along with HOST and PORT, the Windows Service will @rem wait until the Weblogic Server is started. @rem HOST - IP address of the Weblogic Server @rem PORT - Port number where the WebLogic Server is listening for requests @rem @rem jDriver for Oracle users: This script assumes that native libraries @rem required for jDriver for Oracle have been installed in the proper @rem location and that your system PATH variable has been set appropriately. @rem @rem For additional information, refer to "Managing Server Startup and Shutdown for Oracle WebLogic Server" @rem (http://download.oracle.com/docs/cd/E23943_01/web.1111/e13708/overview.htm). @rem ************************************************************************* @echo on SETLOCAL set DOMAIN_HOME=%~dp0 call "%DOMAIN_HOME%\setServiceEnv.cmd" @rem Check that the WebLogic classes are where we expect them to be :checkWLS if exist "%WL_HOME%\server\lib\weblogic.jar" goto checkJava echo The WebLogic Server wasn't found in directory %WL_HOME%\server. echo Please edit your script so that the WL_HOME variable points echo to the WebLogic installation directory. goto finish @rem Check that java is where we expect it to be :checkJava if exist "%JAVA_HOME%\bin\java.exe" goto runWebLogic echo The JDK wasn't found in directory %JAVA_HOME%. echo Please edit your script so that the JAVA_HOME variable echo points to the location of your JDK. goto finish :runWebLogic if not "%JAVA_VM%" == "" goto noResetJavaVM if "%JAVA_VENDOR%" == "BEA" set JAVA_VM=-jrocket if "%JAVA_VENDOR%" == "HP" set JAVA_VM=-server if "%JAVA_VENDOR%" == "Sun" set JAVA_VM=-server :noResetJavaVM if not "%MEM_ARGS%" == "" goto noResetMemArgs set MEM_ARGS=-Xms32m -Xmx200m :noResetMemArgs @echo on set CLASSPATH=%WEBLOGIC_CLASSPATH%;%CLASSPATH% @echo *************************************************** @echo * To start WebLogic Server, use the password * @echo * assigned to the system user. The system * @echo * username and password must also be used to * @echo * access the WebLogic Server console from a web * @echo * browser. * @echo *************************************************** rem *** Set Command Line for service to execute within created JVM @echo off if "%ADMIN_URL%" == "" goto runAdmin @echo on set CMDLINE="%JAVA_VM% %MEM_ARGS% %JAVA_OPTIONS% -classpath \"%CLASSPATH%\" -Dweblogic.Name=%SERVER_NAME% -Dweblogic.management.username=%WLS_USER% -Dweblogic.management.server=\"%ADMIN_URL%\" -Dweblogic.ProductionModeEnabled=%PRODUCTION_MODE% -Djava.security.policy=\"%WL_HOME%\server\lib\weblogic.policy\" weblogic.Server" goto finish :runAdmin @echo on set CMDLINE="%JAVA_VM% %MEM_ARGS% %JAVA_OPTIONS% -classpath \"%CLASSPATH%\" -Dweblogic.Name=%SERVER_NAME% -Dweblogic.management.username=%WLS_USER% -Dweblogic.ProductionModeEnabled=%PRODUCTION_MODE% -Djava.security.policy=\"%WL_HOME%\server\lib\weblogic.policy\" weblogic.Server" :finish rem *** Set up extrapath for win32 and win64 platform separately if "%WL_USE_X86DLL%" == "true" set EXTRAPATH=%WL_HOME%\server\native\win\32;%WL_HOME%\server\bin;%JAVA_HOME%\jre\bin;%JAVA_HOME%\bin;%WL_HOME%\server\native\win\32\oci920_8 if "%WL_USE_IA64DLL%" == "true" set EXTRAPATH=%WL_HOME%\server\native\win\64\;%WL_HOME%\server\bin;%JAVA_HOME%\jre\bin;%JAVA_HOME%\bin;%WL_HOME%\server\native\win\64\oci920_8 if "%WL_USE_AMD64DLL%" == "true" set EXTRAPATH=%WL_HOME%\server\native\win\x64\;%WL_HOME%\server\bin;%JAVA_HOME%\jre\bin;%JAVA_HOME%\bin;%WL_HOME%\server\native\win\x64\oci920_8 rem *** Install the service "%WL_HOME%\server\bin\beasvc" -install -svcname:"beasvc %DOMAIN_NAME%_%SERVER_NAME%" -javahome:"%JAVA_HOME%" -execdir:"%USERDOMAIN_HOME%" -maxconnectretries:"%MAX_CONNECT_RETRIES%" -host:"%HOST%" -port:"%PORT%" -extrapath:"%EXTRAPATH%" -password:"%WLS_PW%" -cmdline:%CMDLINE% ENDLOCAL
2 域目录下创建setServiceEnv.cmd, 变量根据实际情况修改
set WL_HOME=D:\Oracle\Middleware\wlserver_10.3 set DOMAIN_NAME=base_domain set SERVER_NAME=AdminServer set USERDOMAIN_HOME=D:\Oracle\Middleware\user_projects\domains\base_domain set WLS_USER=weblogic set WLS_PW=weblogic123 set PRODUCTION_MODE=true set USER_MEM_ARGS=-Xms1g -Xmx2g call "%USERDOMAIN_HOME%\bin\setDomainEnv.cmd"
3 运行installSvc.cmd即可完成注册
相关推荐
weblogic10.3.6最新补丁 【2022-1-18日】发布的最新补丁 weblogic10.3.6最新补丁 【2022-1-18日】发布的最新补丁 weblogic10.3.6最新补丁 【2022-1-18日】发布的最新补丁 weblogic10.3.6最新补丁 【2022-1-18日】...
weblogic 10.3.6 Windows 32位下载
Weblogic10.3.6补丁升级包2021.04(亲测有效,附安装过程),淘宝卖200块的
Linux 下,weblogic10.3.6版本,集群的安装配置及调试
对weblogic 10.3.6版本的安全补丁,可以有效对反序列化安全进行修补,里面有具体的安装手册,都是自己安装成功后整理好的,直接安装步骤就可以安装成功
weblogic10.3.3之后升级到weblogic10.3.6详细操作文档,可以安装文档说明进行操作对weblogic低版本进行升级操作。
weblogic 10.3.6补丁 2018年7月17日
Weblogic10.3.6-2204-2207补丁集 WLS PATCH SET UPDATE 10.3.6.0.220719 Patch 34009030 10.3.6.0.220419 Patch 33791826 10.3.6.0.220118 Patch 33494814 Patch 32973233 Coherence 3.7.1 Patch 22 (3.7.1.22) wls...
Weblogic10.3.6 for AIX安装手册
Weblogic10.3.6(wls1036_generic.jar)安装包linux,windows,mac操作系统通用百度网盘下载
weblogic10.3.6.0反序列化补丁包,p20780171_1036_Generic (2).zip补丁包和p22248372_1036012_Generic.zip升级包,要先安装升级包在安装补丁包
Weblogic10.3.6 for Linux安装手册
weblogic10.3.6补丁(java反序列化漏洞更新步骤).docx
weblogic10.3.6补丁,包含p20780171_1036_Generic.zip p22248372_1036012_Generic.zip
weblogic 10.3.6 2020年10月补丁包 p31641257_1036_Generic.zip
Linux下命令行安装运行weblogic10.3.6
Oracle WebLogic Server 10.3.6 2021年7月发布的累积更新补丁包 p32832785_1036_Generic 主要修复各种Bug和安全漏洞等问题 安装之前须先卸载老的补丁 遭到过攻击的服务器、域 建议删除域并重建
Oracle WebLogic Server 10.3.6 2020年4月发布的累积更新补丁包 p30857748_1036_Generic 主要修复各种Bug和安全漏洞等问题 安装之前须先卸载老的补丁 遭到过攻击的服务器、域 建议删除域并重建
Oracle WebLogic Server 10.3.6 2020年7月发布的累积更新补丁包 (p31178492_1036_Generic_20200714.zip),补丁名称:I37G,下载文件中包含补丁安装说明和方法(自用详细步骤)。服务器打补丁前请注意做好备份,若...
Oracle WebLogic Server 10.3.6 2020年1月发布的累积更新补丁包 p30463097_1036_Generic 主要修复各种Bug 解决反序列化安全漏洞等问题 安装之前须先卸载老的补丁 遭到过攻击的服务器、域 建议删除域并重建