问题描述
有哪位大侠知道为什么我的apache-tomcat-6.0.20安装完成后bin目录下没有shutdown.bat和startup.bat,也没有service.bat。如果要启动只能靠myeclipse启动。郁闷。
解决方案
解决方案二:
没有人知道么?》
解决方案三:
service.bat@echooffremLicensedtotheApacheSoftwareFoundation(ASF)underoneormoreremcontributorlicenseagreements.SeetheNOTICEfiledistributedwithremthisworkforadditionalinformationregardingcopyrightownership.remTheASFlicensesthisfiletoYouundertheApacheLicense,Version2.0rem(the"License");youmaynotusethisfileexceptincompliancewithremtheLicense.YoumayobtainacopyoftheLicenseatremremhttp://www.apache.org/licenses/LICENSE-2.0remremUnlessrequiredbyapplicablelaworagreedtoinwriting,softwareremdistributedundertheLicenseisdistributedonan"ASIS"BASIS,remWITHOUTWARRANTIESORCONDITIONSOFANYKIND,eitherexpressorimplied.remSeetheLicenseforthespecificlanguagegoverningpermissionsandremlimitationsundertheLicense.if"%OS%"=="Windows_NT"setlocalrem---------------------------------------------------------------------------remNTServiceInstall/UninstallscriptremremOptionsreminstallInstalltheserviceusingTomcat6asservicename.remServiceisinstalledusingdefaultsettings.remremoveRemovetheservicefromtheSystem.remremname(optional)Ifthesecondargumentispresentitisconsideredremtobenewservicenameremrem$Id:service.bat9087492010-02-1023:26:42Zmarkt$rem---------------------------------------------------------------------------remGuessCATALINA_HOMEifnotdefinedset"CURRENT_DIR=%cd%"ifnot"%CATALINA_HOME%"==""gotogotHomeset"CATALINA_HOME=%cd%"ifexist"%CATALINA_HOME%bintomcat6.exe"gotookHomeremCDtotheupperdircd..set"CATALINA_HOME=%cd%":gotHomeifexist"%CATALINA_HOME%bintomcat6.exe"gotookHomeechoThetomcat.exewasnotfound...echoTheCATALINA_HOMEenvironmentvariableisnotdefinedcorrectly.echoThisenvironmentvariableisneededtorunthisprogramgotoendremMakesureprerequisiteenvironmentvariablesaresetifnot"%JAVA_HOME%"==""gotookHomeechoTheJAVA_HOMEenvironmentvariableisnotdefinedechoThisenvironmentvariableisneededtorunthisprogramgotoend:okHomeifnot"%CATALINA_BASE%"==""gotogotBaseset"CATALINA_BASE=%CATALINA_HOME%":gotBaseset"EXECUTABLE=%CATALINA_HOME%bintomcat6.exe"remSetdefaultServicenamesetSERVICE_NAME=Tomcat6setPR_DISPLAYNAME=ApacheTomcat6if"%1"==""gotodisplayUsageif"%2"==""gotosetServiceNamesetSERVICE_NAME=%2setPR_DISPLAYNAME=ApacheTomcat%2:setServiceNameif%1==installgotodoInstallif%1==removegotodoRemoveif%1==uninstallgotodoRemoveechoUnknownparameter"%1":displayUsageecho.echoUsage:service.batinstall/remove[service_name]gotoend:doRemoveremRemovetheservice"%EXECUTABLE%"//DS//%SERVICE_NAME%echoTheservice'%SERVICE_NAME%'hasbeenremovedgotoend:doInstallremInstalltheserviceechoInstallingtheservice'%SERVICE_NAME%'...echoUsingCATALINA_HOME:"%CATALINA_HOME%"echoUsingCATALINA_BASE:"%CATALINA_BASE%"echoUsingJAVA_HOME:"%JAVA_HOME%"remUsetheenvironmentvariablesasanexampleremEachcommandlineoptionisprefixedwithPR_setPR_DESCRIPTION=ApacheTomcat6.0.32Server-http://tomcat.apache.org/set"PR_INSTALL=%EXECUTABLE%"set"PR_LOGPATH=%CATALINA_BASE%logs"set"PR_CLASSPATH=%CATALINA_BASE%bintomcat-juli.jar;%CATALINA_HOME%bintomcat-juli.jar;%CATALINA_HOME%binbootstrap.jar"remSettheserverjvmfromJAVA_HOMEset"PR_JVM=%JAVA_HOME%jrebinserverjvm.dll"ifexist"%PR_JVM%"gotofoundJvmremSettheclientjvmfromJAVA_HOMEset"PR_JVM=%JAVA_HOME%jrebinclientjvm.dll"ifexist"%PR_JVM%"gotofoundJvmsetPR_JVM=auto:foundJvmechoUsingJVM:"%PR_JVM%""%EXECUTABLE%"//IS//%SERVICE_NAME%--StartClassorg.apache.catalina.startup.Bootstrap--StopClassorg.apache.catalina.startup.Bootstrap--StartParamsstart--StopParamsstopifnoterrorlevel1gotoinstalledechoFailedinstalling'%SERVICE_NAME%'servicegotoend:installedremCleartheenvironmentvariables.Theyarenotneededanymore.setPR_DISPLAYNAME=setPR_DESCRIPTION=setPR_INSTALL=setPR_LOGPATH=setPR_CLASSPATH=setPR_JVM=remSetextraparameters"%EXECUTABLE%"//US//%SERVICE_NAME%--JvmOptions"-Dcatalina.base=%CATALINA_BASE%;-Dcatalina.home=%CATALINA_HOME%;-Djava.endorsed.dirs=%CATALINA_HOME%endorsed"--StartModejvm--StopModejvmremMoreextraparametersset"PR_LOGPATH=%CATALINA_BASE%logs"setPR_STDOUTPUT=autosetPR_STDERROR=auto"%EXECUTABLE%"//US//%SERVICE_NAME%++JvmOptions"-Djava.io.tmpdir=%CATALINA_BASE%temp;-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager;-Djava.util.logging.config.file=%CATALINA_BASE%conflogging.properties"--JvmMs128--JvmMx256echoTheservice'%SERVICE_NAME%'hasbeeninstalled.:endcd"%CURRENT_DIR%"
startup.bat@echooffremLicensedtotheApacheSoftwareFoundation(ASF)underoneormoreremcontributorlicenseagreements.SeetheNOTICEfiledistributedwithremthisworkforadditionalinformationregardingcopyrightownership.remTheASFlicensesthisfiletoYouundertheApacheLicense,Version2.0rem(the"License");youmaynotusethisfileexceptincompliancewithremtheLicense.YoumayobtainacopyoftheLicenseatremremhttp://www.apache.org/licenses/LICENSE-2.0remremUnlessrequiredbyapplicablelaworagreedtoinwriting,softwareremdistributedundertheLicenseisdistributedonan"ASIS"BASIS,remWITHOUTWARRANTIESORCONDITIONSOFANYKIND,eitherexpressorimplied.remSeetheLicenseforthespecificlanguagegoverningpermissionsandremlimitationsundertheLicense.if"%OS%"=="Windows_NT"setlocalrem---------------------------------------------------------------------------remStartscriptfortheCATALINAServerremrem$Id:startup.bat9087492010-02-1023:26:42Zmarkt$rem---------------------------------------------------------------------------remGuessCATALINA_HOMEifnotdefinedset"CURRENT_DIR=%cd%"ifnot"%CATALINA_HOME%"==""gotogotHomeset"CATALINA_HOME=%CURRENT_DIR%"ifexist"%CATALINA_HOME%bincatalina.bat"gotookHomecd..set"CATALINA_HOME=%cd%"cd"%CURRENT_DIR%":gotHomeifexist"%CATALINA_HOME%bincatalina.bat"gotookHomeechoTheCATALINA_HOMEenvironmentvariableisnotdefinedcorrectlyechoThisenvironmentvariableisneededtorunthisprogramgotoend:okHomeset"EXECUTABLE=%CATALINA_HOME%bincatalina.bat"remCheckthattargetexecutableexistsifexist"%EXECUTABLE%"gotookExecechoCannotfind"%EXECUTABLE%"echoThisfileisneededtorunthisprogramgotoend:okExecremGetremainingunshiftedcommandlineargumentsandsavetheminthesetCMD_LINE_ARGS=:setArgsif""%1""==""""gotodoneSetArgssetCMD_LINE_ARGS=%CMD_LINE_ARGS%%1shiftgotosetArgs:doneSetArgscall"%EXECUTABLE%"start%CMD_LINE_ARGS%:end
shutdown.bat@echooffremLicensedtotheApacheSoftwareFoundation(ASF)underoneormoreremcontributorlicenseagreements.SeetheNOTICEfiledistributedwithremthisworkforadditionalinformationregardingcopyrightownership.remTheASFlicensesthisfiletoYouundertheApacheLicense,Version2.0rem(the"License");youmaynotusethisfileexceptincompliancewithremtheLicense.YoumayobtainacopyoftheLicenseatremremhttp://www.apache.org/licenses/LICENSE-2.0remremUnlessrequiredbyapplicablelaworagreedtoinwriting,softwareremdistributedundertheLicenseisdistributedonan"ASIS"BASIS,remWITHOUTWARRANTIESORCONDITIONSOFANYKIND,eitherexpressorimplied.remSeetheLicenseforthespecificlanguagegoverningpermissionsandremlimitationsundertheLicense.if"%OS%"=="Windows_NT"setlocalrem---------------------------------------------------------------------------remStartscriptfortheCATALINAServerremrem$Id:startup.bat9087492010-02-1023:26:42Zmarkt$rem---------------------------------------------------------------------------remGuessCATALINA_HOMEifnotdefinedset"CURRENT_DIR=%cd%"ifnot"%CATALINA_HOME%"==""gotogotHomeset"CATALINA_HOME=%CURRENT_DIR%"ifexist"%CATALINA_HOME%bincatalina.bat"gotookHomecd..set"CATALINA_HOME=%cd%"cd"%CURRENT_DIR%":gotHomeifexist"%CATALINA_HOME%bincatalina.bat"gotookHomeechoTheCATALINA_HOMEenvironmentvariableisnotdefinedcorrectlyechoThisenvironmentvariableisneededtorunthisprogramgotoend:okHomeset"EXECUTABLE=%CATALINA_HOME%bincatalina.bat"remCheckthattargetexecutableexistsifexist"%EXECUTABLE%"gotookExecechoCannotfind"%EXECUTABLE%"echoThisfileisneededtorunthisprogramgotoend:okExecremGetremainingunshiftedcommandlineargumentsandsavetheminthesetCMD_LINE_ARGS=:setArgsif""%1""==""""gotodoneSetArgssetCMD_LINE_ARGS=%CMD_LINE_ARGS%%1shiftgotosetArgs:doneSetArgscall"%EXECUTABLE%"start%CMD_LINE_ARGS%:end
解决方案四:
你的tomcat如果是安装版的,那没有那几个文件的.只要启动bin目录下的tomcat6w.exe即可