D:\bea\user_projects\domains\oatsingtao_domain\bin\installNtService.cmd
weblogic9 没有这个文件,weblogic8 有这个文件
SETLOCAL
cd d:\bea\wlserver\config\mydomain
rem *** Set Classpath to load Weblogic Classes
set CLASSPATH=.\lib\crack.jar;.;D:\bea\weblogic92\server\lib\weblogic_sp.jar;D:\bea\weblogic92\server\lib\weblogic.jar
rem *** Set Command Line for service to execute
rem *** %Java_HOME%\java will automatically be prepended.
set CMDLINE="-ms64m -mx64m -classpath \"%CLASSPATH%\" -Dweblogic.Domain=mydomain -Dweblogic.Name=myserver -Djava.security.policy==\"D:\bea\weblogic92\server/lib/weblogic.policy\" -Dbea.home=\"d:\bea\" weblogic.Server"
rem *** Install the service
"D:\bea\weblogic92\server\bin\beasvc" -install -svcname:myserver -javahome:"D:\jdk1.5" -execdir:"D:\bea\weblogic92\server" -extrapath:"D:\bea\weblogic92\server\bin" -cmdline:%CMDLINE% -password:"oatsingtao"
pause
ENDLOCAL
---------
weblogic8 installService.cmd
@rem *************************************************************************
@rem This script is used to install WebLogic Server as a service for the
@rem domain in the current working directory.
@rem
@rem To create your own domain script, all you need to set is
@rem SERVER_NAME, then call %WL_HOME%\server\bin\installSvc.cmd
@rem
@rem Other variables that installService takes are:
@rem
@rem WLS_USER - cleartext user for server startup
@rem WLS_PW - cleartext password for server startup
@rem PRODUCTION_MODE - 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 -hotspot, etc.)
@rem MEM_ARGS - The variable to override the standard memory arguments
@rem passed to java
@rem
@rem For additional information, refer to the WebLogic Server Administration
@rem Console Online Help(http://e-docs.bea.com/wls/docs81/ConsoleHelp/startstop.html)
@rem *************************************************************************
echo off
SETLOCAL
set WL_HOME=d:\bea\weblogic81
@rem Set Production Mode. When this is set to true, the server starts up in
@rem production mode. When set to false, the server starts up in development
@rem mode. If it is not set, it will default to false.
set PRODUCTION_MODE=
@rem Set JAVA_VENDOR to java virtual machine you want to run on server side.
set JAVA_VENDOR=Sun
@rem Set JAVA_HOME to java virtual machine you want to run on server side.
set JAVA_HOME=D:\jdk1.5.0_01
call "%WL_HOME%\common\bin\commEnv.cmd"
@rem USERDOMAIN_HOME is preset to the domain directory.
set USERDOMAIN_HOME=d:\bea\user_projects\domains\tsingtao2
@rem Set SERVER_NAME to the name of the server you wish to start up.
set SERVER_NAME=myserver
@rem Set DOMAIN_NAME to the name of the server you wish to start up.
set DOMAIN_NAME=tsingtao2
@rem Set WLS_USER equal to your system username and WLS_PW equal
@rem to your system password for no username and password prompt
@rem during server startup. Both are required to bypass the startup
@rem prompt.
set WLS_USER=tsingtao2
set WLS_PW=
if NOT "%1" == "" set WLS_USER=%1
if NOT "%2" == "" set WLS_PW=%2
if "%WLS_USER%" == "" goto usage
if "%WLS_PW%" == "" goto usage
goto continue
:usage
echo Need to set WLS_USER and WLS_PW environment variables or specify
echo them in command line:
echo Usage: installService.cmd [WLS_USER] [WLS_PW]
echo for example:
echo installService.cmd user password
goto finish
:continue
@rem Set JAVA_OPTIONS to the java flags you want to pass to the vm. i.e.:
@rem set JAVA_OPTIONS=-Dweblogic.attribute=value -Djava.attribute=value
set JAVA_OPTIONS=
@rem Set JAVA_VM to the java virtual machine you want to run. For instance:
@rem set JAVA_VM=-server
@rem set JAVA_VM=
@rem Set MEM_ARGS to the memory args you want to pass to java. For instance:
@rem set MEM_ARGS=-Xms32m -Xmx200m
@rem set MEM_ARGS=
@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
@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 installSvc
: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"
:installSvc
rem *** Set up extrapath for win32 and win64 platform separately
if not "%WL_USE_64BITDLL%" == "true" set EXTRAPATH=%WL_HOME%\server\bin;%JAVA_HOME%\jre\bin;%JAVA_HOME%\bin;%WL_HOME%\server\bin\oci920_8
if "%WL_USE_64BITDLL%" == "true" set EXTRAPATH=%WL_HOME%\server\bin\win64;%WL_HOME%\server\bin;%JAVA_HOME%\jre\bin;%JAVA_HOME%\bin;%WL_HOME%\server\bin\win64\oci920_8
rem *** Install the service
"%WL_HOME%\server\bin\beasvc" -install -svcname:"beasvc %DOMAIN_NAME%_%SERVER_NAME%" -javahome:"%JAVA_HOME%" -execdir:"%USERDOMAIN_HOME%" -extrapath:"%EXTRAPATH%" -password:"%WLS_PW%" -cmdline:%CMDLINE%
:finish
ENDLOCAL
分享到:
相关推荐
### Maximo WebLogic Server 设置为 Windows 服务的方法 在企业级应用环境中,Maximo 和 WebLogic 服务器常常作为核心组件来支持企业的业务流程。为了确保这些系统的稳定运行,经常需要将 WebLogic 服务器配置为 ...
最后,本教程还将指导用户如何将WebLogic Server配置为Windows服务,实现自动启动和后台运行,增强了系统的稳定性和可用性。 #### 结论 通过《WebLogic教程全攻略》,用户将全面掌握WebLogic Server 10g R3的核心...
- **域目录**:每个WebLogic Server实例都属于一个域,域目录存储了服务器实例、集群、应用程序和服务的配置信息。 **三、启动WebLogic Server** WebLogic Server的启动是通过运行`weblogic.Server`类来完成的。在...
在 Windows 平台下配置 WebLogic 服务器,以便实现对 Microsoft SQL Server 2000 的连接和数据源配置。本文将详细介绍配置过程,包括安装 SQL Server 2000,配置 WebLogic 服务器,建立数据源和 Connection Pool 等...
### WebLogic Server 10.3的安装与配置详尽指南 #### 一、WebLogic Server简介 WebLogic Server是由Oracle公司开发的一款企业级应用服务器,它提供了强大的平台支持Java EE应用程序的部署与运行,特别是在高可用性...
Oracle WebLogic Server 11g 安装和部署(Windows) Oracle WebLogic Server 11g 是一个功能强大且广泛使用的Java EE应用服务器,用于构建企业级的Web应用程序。以下是Oracle WebLogic Server 11g 安装和部署在...
本教程将详细讲解如何在Windows环境下配置WebLogic Server 11g的集群以及Session复制。 ### 1. 预备知识 在开始配置之前,确保你对以下概念有基本理解: - Java Enterprise Edition (Java EE):标准的服务器端开发...
将WebLogic Server设置为服务,意味着它可以独立于终端用户会话运行,提供持续的、非交互式的应用程序支持。 配置步骤如下: 1. **创建启动脚本**: a.bat和r.bat是用于启动和停止WebLogic服务的批处理文件。通常...
本篇将详细讲解如何在Windows环境下配置WebLogic Server 11g的集群以及实现Session复制。 ### 1. 预备知识 在开始配置之前,需要了解以下基本概念: - **Java EE (Enterprise Edition)**:一种用于开发分布式、...
确认安装目录无误后,进入Windows服务配置,用户可以选择是否将Oracle WebLogic Server NodeManager服务作为Windows服务安装,以便于管理和监控WebLogic实例。 快捷方式位置的设定则允许用户决定WebLogic Server的...
本文将详细介绍如何在Windows环境下配置WebLogic Server 11g的集群以及实现Session复制。 1. **预备知识** 在开始配置之前,需要了解基本的WebLogic Server概念,包括节点管理器、域、管理服务器和受管服务器。...
- **下载WebLogic安装包:** 从Oracle官网下载与JDK兼容的WebLogic Server安装包。 - **解压安装包:** 使用解压缩软件将安装包解压到一个合适的目录中,该目录不能包含任何中文字符或空格。 - **定义ORACLE_HOME...
#### 2.1 WebLogic Server配置 配置WebLogic Server主要包括创建域、设置服务器属性、配置应用程序和数据源等。 - **创建Standalone Server Domain**:用于设置单一服务器实例,适合小型应用或测试环境。步骤包括...
在WebLogic中,“域”是管理和配置WebLogic Server实例、集群、数据源、JMS队列等各种服务和资源的基本单位。本文将深入探讨WebLogic Server的域配置。 一、域的概念 在WebLogic中,一个域包含一个或多个服务器实例...
Oracle WebLogic Server 是一款企业级应用服务器,它为开发、部署和管理基于 Java 的应用程序提供了全面的支持。Oracle WebLogic Server 12c (12.1.1) 版本在原有的基础上进行了大量的改进与增强,不仅提高了性能和...