Hi Tony,

try this:
/etc/initd/apache stop

if this does not work, do this:
ps -ef | grep -i apache

This will give you the PID, which can be used to kill the process:
kill - 9 PID

The next time you restart your server, apache will be started again, though - so you have to disable it. How to disable a service depends on the linux distribution you are using. Basically you have to look in /etc/init.d/rc(X).d for the startup/shutdown scripts.

Hope this helps,
Tom

Tony Smith wrote:
Thank all for response.
I loged on as root and changed server.xml to use port
80. When I start tomcat, it now compained that "80 is
already in use". But I can not find out who is using
it. I ran "netstat -a", but I did not see anything
like "80". Should I look at something else? I also tried "telnet localhost 80", I got [EMAIL PROTECTED] telnet localhost 80
  Trying 127.0.0.1...
  Connected to localhost.localdomain (127.0.0.1).
  Escape character is '^]'.

And it hang on there. I type in GET index.html HTTP/1.1
After a couple minutes, I got a "400 bad request" from
"Apache/2.0.46". Looks like I have apache running. How
can I stop the apache server? I am using linux.
We are still in the developing stage and all users are
internal. Thus, security is not a concern right now.


--- Timo -Blazko- Boewing <[EMAIL PROTECTED]>
wrote:


On Tue, 2005-06-21 at 18:54 +0200, mario nee wrote:

in Unix system you must have root permission to

open a port under 1024.

Hello,

While this is right, I would not recommend to run
Tomcat as root. Better
run Tomcat with another port just like the default
8080 and use a
firewall application such as iptables to internally
forward incoming
requests to port 8080; thus you avoid dangerous
exploits in Tomcat's
webapps.

It can be done w/ something similar to this:

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport
80 -j REDIRECT
--to-port 8080


--
greetings, | /"\ | \ / ASCII-Ribbon-Campaign
Timo                         |   X     Against HTML
Mail
| / \




---------------------------------------------------------------------

To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]








                
____________________________________________________ Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football http://football.fantasysports.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to