Installing Apache Tomcat on Windows
Mục lục bài viết
Installing Apache Tomcat on Windows
The following topics are included in this section:
Installing Apache Tomcat From Zip File
To install Apache Tomcat 7.0.x or later, proceed as follows:
-
Open Apache Tomcat home page at http://tomcat.apache.org/index.html.
-
In the left-hand Download menu, click the latest available Tomcat version.
-
Locate the Binary Distributions area and in the Core list click on the ZIP file corresponding to the required Windows
version. -
Save the ZIP file in a temporary directory.
-
Unpack the downloaded ZIP file into the target folder on the computer.
-
Configure JVM options for Tomcat web server as follows:
-
For Windows, create
TOMCAT_HOME/bin/setenv.bat
file and write: -
Open the
TOMCAT_HOME/conf/server.xml
file and add theURIEncoding="UTF-8"
attribute for all<Connector>
elements.
This folder is referred as <TOMCAT_HOME>
further in this document.
set JAVA_OPTS=%JAVA_OPTS% -Xms256m -Xmx1024m -XX:+UseParallelOldGC
-XX:PermSize=128m
-XX:MaxPermSize=384m
For example:
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000" redirectPort="8443"
URIEncoding="UTF-8"/>
Installing Apache Tomcat Using Windows Service Installer
This section describes how to install Apache Tomcat using Windows
Service
Installer.
Note: It is not recommended to select this type of installation when planning
to edit rule tables in Excel files from OpenL Tablets WebStudio. See the
Modifying Tables section in [OpenL Tablets WebStudio User Guide] because additional settings are required for that. Please contact your
OpenL Tablets administrator to solve the
issue.
Note: For OpenL Tablets administrator. To allow editing rule tables in Excel
files from OpenL Tablets WebStudio, please enable the Allow service to
interact with desktop Tomcat service option using MMC or from the
command
line.
To install Apache Tomcat using Windows Service Installer, proceed as
follows:
-
Navigate to Apache Tomcat site at http://tomcat.apache.org/index.html and n the left-hand Download menu, click the latest available Tomcat version.
-
Locate the Binary Distributions area and in the Core list click the 32-bit/64-bit Windows Service Installer link.
-
Run the exe file and follow the instructions of the installation wizard.
-
In the License Agreement window, click I Agree.
-
In the Choose Components dialog, leave the default Normal type of installation.
-
In the Configuration dialog, leave the settings at their default values.
-
In the next window the Wizard displays the folder where Tomcat will be
installed the
Destination Folder. -
Click Install to start the installation.
-
Click Finish to complete.
-
Configure JVM options for Tomcat.
-
To restart Tomcat, right click the Tomcat icon in the Notification Area
and select
Stop service (the Tomcat icon changes to) and then select Start Service again.
Save the apache-tomcat exe file in a temporary folder.
Click Next to move to the next step or return to the previous step by clicking the
Back button.
Experienced Tomcat users can also select another installation type from
the drop-down
list.
This folder is referred as <TOMCAT_HOME>
further in this document.
As a result, Apache Tomcat is installed and started on the users
computer. In the Notification Area located next to the clock, the
icon appears. Tomcat is managed by using this icon or from the Start
menu.
For that right click the Apache Tomcat icon in the Notification area and
select Configure; or click start->All Programs->Apache Tomcat
7.0-> Configure Tomcat. The Apache Tomcat Properties dialog
appears.
Click the Java tab and add in the Java Options text box. Note that every
option must be manually entered in a separate
row:
-Xms256m
-Xmx1024m
-XX:+UseParallelOldGC
-XX:PermSize=128m
-XX:MaxPermSize=384m
Click Apply and then click OK.
Tomcat can also be restarted from the General tab in the Apache Tomcat Properties dialog which appears after selecting Start->All Programs->Apache Tomcat 7.0-> Configure Tomcat.
From this point OpenL Tablets WebStudio can be run as described in Step 3: Deploying OpenL Tablets WebStudio.