女人天堂在线_美女福利视频在线观看_欧美影院天天5g天天爽_九九久久久久久_国产一区在线精品_国产精品suv一区二区_亚洲国产你懂的_99久久99久久免费精品小说_日韩av中文字幕在线_伊人影院蕉久552

Tomcat Setup

Table of Contents

Introduction

There are several ways to set up Tomcat for running on different platforms. The main documentation for this is a file called RUNNING.txt. We encourage you to refer to that file if the information below does not answer some of your questions.

Windows

Installing Tomcat on Windows can be done easily using the Windows installer. Its interface and functionality is similar to other wizard based installers, with only a few items of interest.

  • Installation as a service: Tomcat will be installed as a Windows service no matter what setting is selected. Using the checkbox on the component page sets the service as "auto" startup, so that Tomcat is automatically started when Windows starts. For optimal security, the service should be run as a separate user, with reduced permissions (see the Windows Services administration tool and its documentation).
  • Java location: The installer will provide a default JRE to use to run the service. The installer uses the registry to determine the base path of a Java 7 or later JRE, including the JRE installed as part of the full JDK. When running on a 64-bit operating system, the installer will first look for a 64-bit JRE and only look for a 32-bit JRE if a 64-bit JRE is not found. If a JRE cannot be found when running on a 64-bit operating system, the installer will look for a 64-bit JDK. Finally, if a JRE or JDK has not been found, the installer will try to use the JAVA_HOME environment variable. It is not mandatory to use the default JRE detected by the installer. Any installed Java 7 or later JRE (32-bit or 64-bit) may be used.
  • Tray icon: When Tomcat is run as a service, there will not be any tray icon present when Tomcat is running. Note that when choosing to run Tomcat at the end of installation, the tray icon will be used even if Tomcat was installed as a service.
  • Defaults: The defaults used by the installer may be overridden by use of the /C=<config file> command line argument. The configuration file uses the format name=value with each pair on a separate line. The names of the available configuration options are:
    • JavaHome
    • TomcatPortShutdown
    • TomcatPortHttp
    • TomcatMenuEntriesEnable
    • TomcatShortcutAllUsers
    • TomcatServiceDefaultName
    • TomcatServiceName
    • TomcatServiceFileName
    • TomcatServiceManagerFileName
    • TomcatAdminEnable
    • TomcatAdminUsername
    • TomcatAdminPassword
    • TomcatAdminRoles
    By using /C=... along with /S and /D= it is possible to perform fully configured unattended installs of Apache Tomcat.
  • Refer to the Windows Service How-To for information on how to manage Tomcat as a Windows service.

The installer will create shortcuts allowing starting and configuring Tomcat. It is important to note that the Tomcat administration web application can only be used when Tomcat is running.

Unix daemon

Tomcat can be run as a daemon using the jsvc tool from the commons-daemon project. Source tarballs for jsvc are included with the Tomcat binaries, and need to be compiled. Building jsvc requires a C ANSI compiler (such as GCC), GNU Autoconf, and a JDK.

Before running the script, the JAVA_HOME environment variable should be set to the base path of the JDK. Alternately, when calling the ./configure script, the path of the JDK may be specified using the --with-java parameter, such as ./configure --with-java=/usr/java.

Using the following commands should result in a compiled jsvc binary, located in the $CATALINA_HOME/bin folder. This assumes that GNU TAR is used, and that CATALINA_HOME is an environment variable pointing to the base path of the Tomcat installation.

Please note that you should use the GNU make (gmake) instead of the native BSD make on FreeBSD systems.

cd $CATALINA_HOME/bin
tar xvfz commons-daemon-native.tar.gz
cd commons-daemon-1.1.x-native-src/unix
./configure
make
cp jsvc ../..
cd ../..

Tomcat can then be run as a daemon using the following commands.

CATALINA_BASE=$CATALINA_HOME
cd $CATALINA_HOME
./bin/jsvc \
    -classpath $CATALINA_HOME/bin/bootstrap.jar:$CATALINA_HOME/bin/tomcat-juli.jar \
    -outfile $CATALINA_BASE/logs/catalina.out \
    -errfile $CATALINA_BASE/logs/catalina.err \
    -Dcatalina.home=$CATALINA_HOME \
    -Dcatalina.base=$CATALINA_BASE \
    -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager \
    -Djava.util.logging.config.file=$CATALINA_BASE/conf/logging.properties \
    org.apache.catalina.startup.Bootstrap

When running on Java 9 you will need to additionally specify the following when starting jsvc to avoid warnings on shutdown.

...
--add-opens=java.base/java.lang=ALL-UNNAMED \
--add-opens=java.base/java.io=ALL-UNNAMED \
--add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED \
...

You may also need to specify -jvm server if the JVM defaults to using a server VM rather than a client VM. This has been observed on OSX.

jsvc has other useful parameters, such as -user which causes it to switch to another user after the daemon initialization is complete. This allows, for example, running Tomcat as a non privileged user while still being able to use privileged ports. Note that if you use this option and start Tomcat as root, you'll need to disable the org.apache.catalina.security.SecurityListener check that prevents Tomcat starting when running as root.

jsvc --help will return the full jsvc usage information. In particular, the -debug option is useful to debug issues running jsvc.

The file $CATALINA_HOME/bin/daemon.sh can be used as a template for starting Tomcat automatically at boot time from /etc/init.d with jsvc.

Note that the Commons-Daemon JAR file must be on your runtime classpath to run Tomcat in this manner. The Commons-Daemon JAR file is in the Class-Path entry of the bootstrap.jar manifest, but if you get a ClassNotFoundException or a NoClassDefFoundError for a Commons-Daemon class, add the Commons-Daemon JAR to the -cp argument when launching jsvc.

日本免费乱理伦片在线观看2018| 亚洲精品影院| 国产亚洲男人的天堂在线观看| 一级女人毛片人一女人| 精品国产一区二区三区久久久蜜臀| 精品国产三级a| 国产麻豆精品| 日韩专区第一页| 午夜在线影院| 日本免费乱理伦片在线观看2018| 九九干| 成人高清免费| 四虎论坛| 亚飞与亚基在线观看| 麻豆污视频| 高清一级毛片一本到免费观看| 日韩专区在线播放| 欧美国产日韩一区二区三区| 欧美日本免费| 99热精品在线| 日本免费乱理伦片在线观看2018| 精品视频一区二区三区免费| 可以免费在线看黄的网站| 好男人天堂网 久久精品国产这里是免费 国产精品成人一区二区 男人天堂网2021 男人的天堂在线观看 丁香六月综合激情 | 欧美国产日韩一区二区三区| 亚洲精品中文字幕久久久久久| 香蕉视频久久| 高清一级毛片一本到免费观看| 国产麻豆精品免费视频| 亚洲天堂免费| 精品在线观看国产| 亚洲精品中文字幕久久久久久| 国产一区二区精品久久91| 欧美一级视频高清片| 精品视频一区二区三区免费| 亚洲精品影院| 久久久久久久男人的天堂| 国产麻豆精品免费视频| 免费的黄视频| 国产激情一区二区三区| 你懂的福利视频| 国产视频一区二区在线播放| 91麻豆精品国产片在线观看| 青青青草影院 | 精品国产香蕉伊思人在线又爽又黄| 四虎影视库| 亚欧乱色一区二区三区| 久久国产精品自线拍免费| 精品久久久久久中文| 日日夜人人澡人人澡人人看免| 深夜做爰性大片中文| 青青青草影院 | 午夜家庭影院| 九九热国产视频| 精品久久久久久中文| 久久国产一久久高清| 四虎影视库| 亚洲第一页乱| 免费毛片基地| 高清一级毛片一本到免费观看| 尤物视频网站在线| 四虎论坛| 中文字幕一区二区三区精彩视频| 国产麻豆精品免费视频| 亚洲精品影院| 久久99欧美| 九九干| 精品国产三级a| 99色视频| 九九干| 亚洲第一页乱| 九九热国产视频| 欧美激情一区二区三区在线播放 | 精品视频一区二区三区免费| 免费毛片基地| 国产国语对白一级毛片| 日韩在线观看视频免费| 久久久久久久男人的天堂| 国产视频一区二区在线播放| 久久国产精品自线拍免费| 毛片高清| 深夜做爰性大片中文| 亚洲 激情| 久久国产精品自线拍免费| 99色视频| 欧美激情一区二区三区视频高清| 亚洲精品中文字幕久久久久久| 欧美激情中文字幕一区二区| 国产激情一区二区三区| 美女免费精品高清毛片在线视 | 麻豆污视频| 日韩免费在线视频| 欧美a级大片| 日本在线不卡视频| 国产一区二区精品久久91| 精品国产三级a| 国产成人精品影视| 一级女人毛片人一女人| 国产视频久久久久| 日韩在线观看视频免费| 欧美另类videosbestsex久久| 久久福利影视| 欧美电影免费| 九九干| 欧美国产日韩一区二区三区| 午夜家庭影院| 青青久久精品| 九九久久99综合一区二区| 久久久成人网| 日本特黄特黄aaaaa大片| 91麻豆精品国产片在线观看| 国产精品自拍在线观看| 午夜在线影院| 成人a大片在线观看| 精品久久久久久综合网| 久久福利影视| 青青青草影院 | 国产视频一区二区在线播放| 午夜激情视频在线观看 | 好男人天堂网 久久精品国产这里是免费 国产精品成人一区二区 男人天堂网2021 男人的天堂在线观看 丁香六月综合激情 | 四虎论坛| 日韩在线观看视频免费| 99热精品在线| 午夜家庭影院| 青青久久精品| 日本伦理片网站| 精品视频一区二区三区免费| 美女被草网站| 欧美激情中文字幕一区二区| 精品在线观看国产| 精品久久久久久综合网| 午夜家庭影院| 你懂的福利视频| 精品在线观看国产| 日本久久久久久久 97久久精品一区二区三区 狠狠色噜噜狠狠狠狠97 日日干综合 五月天婷婷在线观看高清 九色福利视频 | 99久久精品国产高清一区二区| 青青青草影院 | 精品国产亚洲一区二区三区| 欧美国产日韩一区二区三区| 欧美激情中文字幕一区二区| 亚洲精品中文字幕久久久久久| 黄视频网站免费看| 久久久成人网| 欧美日本免费| 久久99欧美| 韩国毛片| 精品国产亚洲一区二区三区| 亚洲 激情| 精品国产三级a| 精品视频一区二区三区免费| 日韩中文字幕一区二区不卡| 美女免费精品高清毛片在线视 | 亚洲天堂免费| 欧美一级视频高清片| 国产网站免费| 精品视频在线观看一区二区| 欧美国产日韩一区二区三区| 国产成人精品影视| 日日夜人人澡人人澡人人看免| 99热精品在线| 日韩中文字幕一区二区不卡| 国产a毛片| 国产一区二区精品| 欧美激情一区二区三区在线播放 | 精品久久久久久综合网| 99热精品在线| 亚洲精品影院| 日韩av成人| 国产一区二区精品久久91| 国产成人啪精品| 日本久久久久久久 97久久精品一区二区三区 狠狠色噜噜狠狠狠狠97 日日干综合 五月天婷婷在线观看高清 九色福利视频 | 99色视频| 九九热国产视频| 亚欧乱色一区二区三区| 成人高清免费| 久久久久久久男人的天堂| 国产不卡福利| 精品国产一区二区三区精东影业 | 精品国产一区二区三区久久久蜜臀| 久久精品店| 日韩在线观看视频免费| 可以免费在线看黄的网站| 久久精品店| 欧美大片aaaa一级毛片| 欧美日本免费| 欧美电影免费| 欧美大片aaaa一级毛片| 天天做日日爱夜夜爽| 欧美激情中文字幕一区二区| 国产网站免费| 国产亚洲男人的天堂在线观看| 欧美a级大片| 精品视频在线观看一区二区| 精品毛片视频| 黄视频网站免费看| 久草免费在线视频| 国产国语对白一级毛片| 91麻豆国产| 久久精品欧美一区二区| 欧美电影免费|