weblogic 服务启动然后停止 [英] the weblogic service started and then stopped
问题描述
我正在尝试将 Weblogic 服务器安装为 Windows 服务.安装完成,当我尝试运行该服务时,它抛出以下错误.
I am trying to install Weblogic server as a windows service. The installation is complete and when i tried to run the service its throwing the following error.
本地计算机上的 XX 服务启动然后停止.如果其他服务或程序未使用某些服务,它们会自动停止.
下面是我用来安装服务的脚本.
Below is the script that I used for installing the service.
REM echo off
SETLOCAL
set DOMAIN_NAME=FrDomain
set USERDOMAIN_HOME=C:\Oracle\Middleware1\user_projects\domains\FrDomain
set SERVER_NAME=AdminServer
set WL_HOME=C:\Oracle\Middleware1\wlserver_10.3
set ADMIN_URL=http://someUrl:7001/
set WLS_USER=weblogic
set WLS_PW=weblogic
set PRODUCTION_MODE=true
cd %USERDOMAIN_HOME%
call "%USERDOMAIN_HOME%\bin\setDomainEnv.cmd"
call "%WL_HOME%\server\bin\installSvc.cmd"
ENDLOCAL
我参考了论坛,他们建议清除事件日志并增加日志大小,检查需要时覆盖事件",或尝试日志作为本地系统帐户.那些在这种情况下不起作用.如何解决上述错误并启动服务.请帮助解决这个问题.
I had referred forums where they advised to clear the Event log and increase the log size, check "Overwrite events when needed", or to try Log on as Local System Account. Those not worked in this case. How to resolve the above error and start the service. Kindly help on this issue.
推荐答案
试试下面哪个对我有用,没有任何问题
Try below which is working for me without any issue
回声SETLOCAL
-设置 JAVA_OPTIONS=-Dweblogic.Stdout="\stdout.out"-Dweblogic.Stderr="\stderr.txt" %JAVA_OPTIONS%
- set JAVA_OPTIONS=-Dweblogic.Stdout="\stdout.out" -Dweblogic.Stderr="\stderr.txt" %JAVA_OPTIONS%
调用\server\bin\installSvc.cmd"本地
call "\server\bin\installSvc.cmd" ENDLOCAL
这篇关于weblogic 服务启动然后停止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!