catalina.sh run // Run catalina.sh to start tomcat serverĪ new Tomcat console window appears (with Java's coffee-cup logo as icon). To start the Tomcat server, open a new "Terminal" and issue: cd ~/myWebProject/tomcat/bin // Change directory to your Tomcat's binary directory I assume that Tomcat is installed in "~/myWebProject/tomcat". Startup // Run startup.bat to start tomcat server Launch a CMD shell and issue: c: // Change driveĬd \myWebProject\tomcat\bin // Change directory to your Tomcat's binary directory I shall assume that Tomcat is installed in "c:\myWebProject\tomcat". The Tomcat's executable programs and scripts are kept in the "bin" sub-directory of the Tomcat installed directory. Locate the following lines (around Line 69) that define the HTTP connector, and change port="8080" to port="9999". (For production server, you should use port 80, which is pre-assigned to HTTP server as the default port number.) The default TCP port number configured in Tomcat is 8080, you may choose any number between 105, which is not used by existing applications. Use a programming text editor (e.g., Sublime Text, Atom) to open the configuration file "server.xml". Make a BACKUP of the configuration files before you proceed!!! Step 3(a) "conf\server.xml" - Set the TCP Port Number "c:\myWebProject\tomcat\conf" (for Windows) or "~/myWebProject/tomcat/conf" (for Mac OS X). The Tomcat configuration files, in XML format, are located in the "conf" sub-directory of your Tomcat installed directory, e.g. You need to create an environment variable (system variable available to all applications) called "JAVA_HOME", and set it to your JDK installed directory. STEP 2: Create an Environment Variable JAVA_HOME
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |