How to install Tomcat in Ubuntu
Install Tomcat in Ubuntu is very easy. We can either install manually or with help of apt-get install.
Apt-get Install
1) Find a correct tomcat package to install
sudo apt-cache search tomcat
2) Install all Tomcat package with following command
sudo apt-get install tomcat5.5-webapps sudo apt-get install tomcat5.5-admin sudo apt-get install tomcat5.5
3) Done
apt-get help Ubuntu to configure almost everything and create a script put inside init.d folder for Tomcat auto startup script. we can start/stop/restart Tomcat with following command
/etc/init.d/tomcat5.5 start /etc/init.d/tomcat5.5 stop /etc/init.d/tomcat5.5 restart
apt-get help to create a share folder in /usr/share also, please access
cd /usr/share/tomcat5.5
and issue a ls -lh in /usr/share/tomcat5.5 to find out the rest of the Tomcat location.
drwxr-xr-x bin drwxr-xr-x common lrwxrwxrwx conf -> /etc/tomcat5.5 lrwxrwxrwx doc -> ../doc/tomcat5.5 lrwxrwxrwx logs -> /var/lib/tomcat5.5/logs drwxr-xr-x server lrwxrwxrwx shared -> /var/lib/tomcat5.5/shared lrwxrwxrwx temp -> /var/lib/tomcat5.5/temp lrwxrwxrwx webapps -> /var/lib/tomcat5.5/webapps lrwxrwxrwx work -> /var/lib/tomcat5.5/work
Manually Install
This is even more easy that apt-get
1) Visit http://tomcat.apache.org/ to download Tomcat
2) Unzip it with tar -zxvf Tomcatxxx.tar
tar -zxvf apache-tomcat-6.0.16.tar.gz
3) No make or configuration required, just change to tomcat bin folder to start or stop Tomcat
:~/Desktop/apache-tomcat-6.0.16/bin$ sh startup.sh :~/Desktop/apache-tomcat-6.0.16/bin$ sh shutdown.sh
4) Done
Personally i more prefer to install application manually, because it give full control of where application folder should be store.
i wanted how to install tomcatserver in ubuntu 10.10, 32 bit
Is above solution not working at your end?
pls give me tutorial link that …how to install mysql 5.1 tar file in ubuntu ?
Noted
See this link:
http://diegobenna.blogspot.com/2011/01/install-tomcat-7-in-ubuntu-1010.html
for install tomcat7 on Linux (Ubuntu 10.10 tested)
Just wanted to thank you for concise and clear instructions that I follow.
Thank you!!!
-Vlad
I’ve found this link while looking for a installation manual. But it is not very actual any more.
Thus I blogged about installing tomcat 7 on ubuntu.
Have a look:
http://wiki.v-collaborate.com/display/BLOG/2010/12/08/Install+Apache+Tomcat+7+on+ubuntu+and+debian
Thanks for the instructions. I use manual install because I wanted to install an older version.
I see, thanks for your update.
Just for your reference, you can install all these packages using a single command
Reference: http://www.linuxask.com/questions/install-multiple-software-at-the-same-time-using-apt-get
[..] A little unrelated, but I absolutely liked this blog post [..]
how can i access the tomcat port,web-app folder
Do you means modify the Tomcat’s port?
Please see it here
http://www.mkyong.com/tomcat/how-to-change-tomcat-default-port/
Every time I need to edit the tomcat-users.xml I get can’t save file read-only.
obviously you do not have permission to do it, please contact your server administrator to assign proper permission to you.
[...] lesson for me was installing Tomcat 5.5 on Slicehost. I started by reading How to Install Tomcat on Ubuntu in the mkyong blog. Not bad at all. The essence is to first find out what version of Tomcat is [...]