Pages

Showing posts with label tutorials. Show all posts
Showing posts with label tutorials. Show all posts

Thursday, June 6, 2013

How to install and uninstall tomcat on Ubuntu



Installation
$ sudo apt-cache search tomcat
$ sudo apt-get install tomcat7

       You can directly use second command. just to check what are the available tomcat version , you can use the first command.
Start
$ sudo /etc/init.d/tomcat7 start
Stop
$ sudo /etc/init.d/tomcat7 stop
Uninstall
$ dpkg -l | grep tomcat
           grep key word used to search the pattern
$ sudo dpkg -P tomcat7
           by using sudo we are leveraging the rights of user to install or uninstall.