====== Differences ====== This shows you the differences between two versions of the page.
apache_tomcat [2011/11/28 01:45] bryan |
apache_tomcat [2011/11/28 01:51] (current) bryan |
||
---|---|---|---|
Line 20: | Line 20: | ||
==== Configuring your private instance ==== | ==== 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 ==== | ==== 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'' | ||
+ | |||