LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-09-2011, 05:24 AM   #1
anishkumarv
Member
 
Registered: Feb 2010
Location: chennai - India
Distribution: centos
Posts: 289

Rep: Reputation: 10
Is it Possible to Start Tomcat using command prompt!!


Hi all,

Friends currently we are accessing tomcat manager using web page ]

http://localhost:8080 ,

is it possible to start the tomcat manager using command prompt!! please guide
me guys..

Last edited by anishkumarv; 05-09-2011 at 05:25 AM.
 
Old 05-09-2011, 07:08 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,903

Rep: Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611
H,

Mind that tomcat manager is a web application that is running on tomcat as the rest of the applications.
So when you start tomcat, the tomcat-manager is available just like any other application. There i no way to start it individually

Regards
 
Old 05-09-2011, 09:18 AM   #3
anishkumarv
Member
 
Registered: Feb 2010
Location: chennai - India
Distribution: centos
Posts: 289

Original Poster
Rep: Reputation: 10
Hi bathory,


Code:
wget "http://<username>:<password>@<hostname>:<port>/manager/undeploy?path=/<context path>" -O - -q
using this command i can able to stop , start , reload everything i can able to do once i start the tomcat , now i have some doubt guru.

1. Is this is a secure way using wget to start, stop, reload the application.??

2. or is there any options available to start the tomcat manager using terminal ??

Please guide me guys!! to solve this thread.
 
Old 05-09-2011, 09:41 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,903

Rep: Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611
1. This is a good way to start/stop, deploy/undeploy applications from command line, i.e you cannot use the web interface
2. The manager application starts when you start tomcat and of course you cannot stop it, because otherwise you won't be able to manage the other applications running on the server. There is no other way to start the manager application standalone
Take a look at the documentation to see how the manager application works

Regards
 
Old 05-09-2011, 10:57 AM   #5
hf2046
Member
 
Registered: Mar 2011
Distribution: Slack64
Posts: 111

Rep: Reputation: 20
As a previous poster mentioned, the Tomcat manager is automatically started when the Tomcat server is brought up. You can start/stop Tomcat by changing directory to $CATALINA_HOME/bin and running the 'startup.sh' and 'shutdown.sh' scripts. These will start/shutdown Tomcat cleanly.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
tomcat hang when start with "service tomcat start" zcwlinux Linux - Server 2 07-03-2009 11:45 AM
anyone install erlang and tsung on linux? error prompt when start configure command vitalstrike82 SUSE / openSUSE 3 03-28-2008 11:34 PM
startx command in FC7 reverts me back to the command prompt sriram87 Linux - Newbie 5 01-04-2008 12:18 AM
How 2 start a stopped process(CTRL+Z)in command prompt babu198649 Linux - Newbie 4 10-15-2007 03:53 AM
start with a command prompt Bashkir Linux - General 1 05-14-2001 09:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration