`
cyqplay
  • 浏览: 94106 次
  • 性别: Icon_minigender_1
  • 来自: 青岛
社区版块
存档分类
最新评论

Weblogic Server配置为Windows服务

阅读更多
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
分享到:
评论

相关推荐

    BEA WebLogic Server管理指南

    在Windows、Linux和AIX上成功安装和配置WebLogic Application Server在一个或多个服务器与群集上部署和配置应用程序管理JMX对象,如MBean与MBeanServer 理解J2EE服务,包括EFB、JNDI、JDBC、JMS等 使用管理控制台来...

    配置WebLogic Server 11g集群、Session复制、定时任务(Windows&Linux)

    配置WebLogic Server 11g集群、Session复制、定时任务(Windows&Linux)

    Weblogic 安装与配置WIN

    Weblogic 在WINDOWS环境下安装步骤, WebLogic Server简化了可移植及可扩展的应用系统的开发, 并为其它应用 系统和系统提供了丰富的互操作性。 凭借其出色的群集技术,BEA WebLogic Server拥有最高水平的可扩展 性...

    配置WebLogic Server 11g集群、Session复制(Windows)

    WebLogic Server 11g集群、Session复制(Windows)

    配置WebLogic_Server_11g_集群、Session复制(Windows)

    配置WebLogic_Server_11g_集群、Session复制(Windows)

    配置WebLogic Server 11g 集群、Session复制(Windows).docx

    配置WebLogic Server 11g 集群、Session复制,windows版本,详细讲解~~

    Weblogic安装、配置、优化、集群教程大全

    BEA WebLogic管理员手册【】java实现自定义Weblogic监控【】Oracle weblogic Server 11 g R1【】RHEL5.4 ORACLE11G WEBLOGIC10.3集群安装部署手册【】Weblogic 10.3 集群配置手册【IT教程 资源太大,传百度网盘了,...

    weblogic 10.3 配置windows service

    NULL 博文链接:https://fourfire.iteye.com/blog/393274

    Weblogic实用教程及常用技巧集锦

    1. WEBLOGIC的安装 2 1.1安装简介 2 1.2在windows下安装WEBLOGIC 3 1. 3在linux下安装WEBLOGIC 3 1.3.1检查是否具有JAVA环境 3 1.3.2安装WebLogic 3 2. WEBLOGIC的域配置 8 ...4.5 配置WebLogic Server集群 17

    weblogic11g 在windows平台的安装与配置.doc

    Weblogic11ForWindows安装文档程序安装1.双击weblogic11安装程序,进行程序安装2.点击下一步3.指定bea安装目录,点击下一步4.去掉“我希望通过MyOracleSupport接收安全更新”前的勾,出现提示,选择YES5.安装...

    WebLogic815在windows2003下的安装及集群配置.doc

    WebLogic815在windows2003下的安装及集群配置网络拓补图AppServer1AppServer2DataBaseClientdizzyClusterProxyServermyserver规划表:Table1.基础规划ElementInstancesValueAdministrativeserver1...

    weblogic集群部署文档.docx

    9.填写各个受管理服务器的详细信息,这里要注意的是new_ManagedServer_2的监听地址填的是主机2的ip地址,因为这个服务实际是运行在主机2上nodes_1和nodes_2 的ip为实际节点机器的ip端口为实际生产环境的port , ...

    WebLogic103 for WINDOWS安装及Cluster配置步骤.doc

    WebLogic10.3.3forWindows安装及Cluster配置步骤安装前的准备操作系统版本要求:WindowsXPProfessionalwithSP2+WindowsVistawithSP1+Windows7Windows2003withSP2/R2+WindowsServer2008withSP1+/R2JDK版本要求:Sun...

    各类介质安装配置文档.rar

    实战中总结出来的一手资料,包括以下文档: 《CenterOS安装及配置手册》 《JDK安装及配置手册(Linux)》 ...《WinServer安装及配置手册》 《Weblogic安装与部属总结》 心之所向,素履以往;生如逆旅,一苇以航!

    weblogic平台J2EE调优策略

    2.3.1 调整连接池配置 2.4 WEB调优 2.4.1 调整WEB应用描述符 2.5 JMS调优 2.6 EJB调优 2.6.1 调整pool和cache 2.6.2 优化事务隔离级别和事务属性 2.6.3 其他一些小技巧 第三章 数据库调优 3.1.1 Oracle性能优化 ...

    安全加固手册

    cisco网络设备,IIS安全配置手册,Oracle数据库系统安全,主机安全设置手册-Linux系统,信息安全加固实施指南(试行)windows2003Weblogic Server安全检查,SQL Server数据库安全配置手册配置手册,

    服务器&中间件安全标准规范.doc

    3 适用系统 3.1 Windows:Windows Server 2003、Windows Server 2008 、Windows Server 2008 R2 、Windows Server 2012 R2、Windows Server 2016等操作系统服务器。 3.2 Linux:Red Hat Enterprise Linux 5/6/7和...

    WebSphere集群配置

    (19)在桌面的我的电脑图标右键选择“管理”打开计算机管理窗口,检查集群服务是否运行,服务的名称为:IBM Websphere Application Server V6 – 机器名CellManager01,此时应为启动状态,打开浏览器,输入...

    Oracle9i备课笔记——吕海东

    Client端: windows98, 2000 professional, windows ME, windows XP, 2000 Server. - 9iDS Server端安装: (1) DISK1 ->开始安装 (2) 选择安装路径 (3) 选择安装产品: (4) 选择版本: (5) 选择数据库配置: (6) ...

    架设WEB站点

    1.在Windows Server 2003中添加、删除IIS组件 2.在IIS中创建、管理Web网站 3.构建Xitami Web服务器 4.配置管理Xitami Web服务器 5.安装Sambar Web服务器 6.管理Sambar Web服务器 7.在Windows下安装Apache服务器 8....

Global site tag (gtag.js) - Google Analytics