**Agila (Computer Science Development Server)**, University of the Philippines Manila

====== Differences ====== This shows you the differences between two versions of the page.

Link to this comparison view

apache_tomcat [2011/11/28 01:35]
bryan
apache_tomcat [2011/11/28 01:51] (current)
bryan
Line 14: Line 14:
  
 ===== How to Use Your Private Tomcat Instance ===== ===== How to Use Your Private Tomcat Instance =====
 +After your private Tomcat instance has been created, you should take note of the following:
 +  * **The private instance directory** which is located in your home directory. You should be informed by the administrator about the location of this directory. This directory is where your private Tomcat configuration files, starting/stopping scripts and applications are located. 
 +  * **Your Tomcat HTTP port**. This is the port that you are going to use to access your private Tomcat instance. Your private Tomcat instance could be accessed at http://agila.upm.edu.ph:your-Tomcat-HTTP-port
 +  * **Your Tomcat Control Port**. This is the port that is used to control your private Tomcat instance (e.g. starting and stopping your Tomcat). Generally, you will not be using the control port.
 +
 +==== Configuring your private instance ====
 +You will find the classic Tomcat configuration files for your private instance in the ''conf'' subdirectory of your private instance directory. 
 +
 +NOTE: You should not change the HTTP port and control port assigned to you which is specified in the ''conf/server.xml'' file in your private instance directory to avoid conflicting with other instances that might be running.
 +
 +==== Starting/stopping your private instance ====
 +
 +You can start your private instance by entering the following command in the terminal prompt (supposing your instance is located in the ''my-instance'' directory and your present directory is your home directory):
 +
 +''my-instance/bin/startup.sh''
 + 
 +You should check the ''logs'' subdirectory (which is located in the private instance directory) for any error. If you have a ''java.net.BindException: Address already in use<null>:8080'' error, it means that the port you're using is already taken and that you should change it.
 +
 +You can stop your instance by entering the following command in the terminal prompt (supposing your instance is located in the ''my-instance'' directory and your present directory is your home directory):
 +
 +''my-instance/bin/shutdown.sh''
 +
 +
  
  

Navigation

* [[:start|Agila Info]] * [[:request-account|Account Request]] * [[:remote login to agila|Remote Login]] * [[:Apache Tomcat|Apache Tomcat]]