Chapter 3: Tomcat Installation A service is clearly
Chapter 3: Tomcat Installation A service is clearly the better option for production servers, but may not be what you want for development; starting and stopping a service repeatedly can be a pain. Finishing the Installation Once you ve chosen the components you wish to install, click the Next button. You will be prompted to choose a directory into which Tomcat should be installed. While the default directory is C:Program FilesApache Software FoundationTomcat 6.x, you should consider installing Tomcat into a path that does not contain spaces in the name, such as c:javatomcat-6.x. Once you ve reviewed the destination folder, click Next. The next screen requests the Tomcat port and an administrator login. Leave the port value as 8080, but choose a unique username for the administrator login, and select a hard-to-guess password. When you are done, click Next. The final screen will ask for the location of the JDK you installed earlier. Enter it if it was not automatically found. Then, click Install. Setting Environment Variables While not strictly required when Tomcat s Windows installer is used, it is a good idea to add an environment variable that points to the directory in which you installed Tomcat. The environment variable is named CATALINA_HOME. To add the environment variable, navigate to your Control Panel and choose System. Now choose the Advanced tab and select the Environment Variables button. Select the New button in the system variables (lower half) section and enter CATALINA_HOMEas the variable name and the path to your Tomcat installation (for example, c:javatomcat-6.0). Testing the Installation To test the installation, you must first start the server. You can start Tomcat manually or, if you installed Tomcat as a service, you can start the service. Starting the Server Manually You can start the server manually by selecting Start . Programs .Apache Tomcat 6 and choosing Start Tomcat. A new command-prompt window will appear, demonstrating that the server is running. Alternatively, you can start Tomcat by opening a command-prompt window, navigating to
For reliable and cheap web hosting services please check cheap web hosting website.