Results 1 to 8 of 8
Hi all. I am still somewhat of a newbie at this, so my apologies if this question doesn't make too much sense.
Having run Nmap, I noticed that my port ...
- 01-20-2005 #1Just Joined!
- Join Date
- Jan 2005
- Posts
- 8
port 80
Hi all. I am still somewhat of a newbie at this, so my apologies if this question doesn't make too much sense.
Having run Nmap, I noticed that my port 80 is open. I understand that this is probably apache / httpd. Having googled a bit on this, The general advice appears to be to stop the http daemon. Trying "httpd stop" doesn't appear to do anything, as port 80 is still open afterwards. Trying "service httpd stop" tells me that "service" command is not found.
I am quite clearly doing something wrong. Any ideas?
thanks.
David.
- 01-20-2005 #2
To stop httpd:
To disable it at startup:Code:/etc/rc.d/rc.httpd stop
The service command is used with SysV style boot. Slackware uses BSD Style init, which is a little different. All your startup scripts are in /etc/rc.d/ . They are well commented, so reading through them will give you some understanding how they workCode:chmod -x /etc/rc.d/rc.httpd
I\'m so tired .....
#200472
- 01-20-2005 #3Just Joined!
- Join Date
- Jan 2005
- Posts
- 8
/etc/rc.d/rc.httpd stop generates this error:
-bash: /etc/rc.d/rc.httpd: permission denied
which is a bit odd, as I am logged in as root.
also, if I go to /etc/rc.d and then try "rc.httpd stop" I get a command not found error, rather than the same permission denied error. Is there a difference between /etc/rc.d/rc.httpd stop, and actually going to /etc/rc.d and then trying rc.httpd stop?
"it's a steep learning curve!"
David.
- 01-20-2005 #4
try and stop httpd deamon with
or sometimesCode:httpd -k stop
dylunioCode:httpd2 -k stop
- 01-20-2005 #5
When specifying a program/scripts/whatever executable which is not in your path you'll need to specify the full path or when you're in the directory where this program/whatever is to specify ./programname (a ./ before it) .
Don't know what causes http to refuse to stop, you could try to kill it with brute force
Repeat the command if necessary. That should do it I guessCode:killall -9 httpd
I\'m so tired .....
#200472
- 01-20-2005 #6Just Joined!
- Join Date
- Jan 2005
- Posts
- 8
-k is aparently an invalid option. (and isn't listed when I do httpd -h) what difference should this option have made?
David.
- 01-20-2005 #7Just Joined!
- Join Date
- Jan 2005
- Posts
- 8
killall -9 httpd That killed it!
Thanks for the information about the language of linux. I am still battling my way through an online tutorial for the basics of GNU/Linux OS... aparently I haven't got that far yet!
thanks.
David.
- 01-21-2005 #8
Dave I think that if you do
as root
cd /etc/rc.d
chmod -x rc.httpd
I think it will not start after a reboot.
I think if you do a killall -9 httpd it just kills it for now but it might restart after a reboot.
Watch out for that if you are worried but it.
MikeSome people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
-- Linus Torvalds


Reply With Quote