LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Ports (https://www.linuxquestions.org/questions/linux-newbie-8/ports-394535/)

badboyz2525 12-19-2005 11:54 AM

Ports
 
I have been trying to run sambar http server on dsl. I can unpack the tar.gz fine and everything seems to be good. when I try to start the server it loads everything but does not start.
the log files show that it cannot bind to port 80 because it is in use by another program. I no that dsl has monkey installed on it and it is turned off. if i run nmap it says only port 86 is in use.

how do i open / shut ports I'v searched all the fourms and come up blank.

thanks Mark

Mara 12-19-2005 05:04 PM

Which user do you try to run it as? Low ports (1024 and below) require root permissions (your server can then drop the extra ones and run as specific user).

badboyz2525 12-19-2005 07:02 PM

ports
 
i belive i'm logged in as root in dsl you enter sudo before the comand

when i excute sambar my log shows this:


mdisk/home/dsl/sambar62plinux/messages/nl_nl/messages.ini)
[2005-12-19 17:18:55] INFO: Common Library loading messages for locale 'en_us' (/ramdisk/home/dsl/sambar62plinux/messages/en_us/messages.ini)
[2005-12-19 17:18:55] INFO: Common library initalized...
[2005-12-19 17:18:55] INFO: Network IP Address is 127.0.0.1
[2005-12-19 17:18:55] INFO: Server SLB identifier is 1
[2005-12-19 17:18:55] ERROR: Unable to bind to port 80; the port is in use by another server.
[2005-12-19 17:18:55] ERROR: Failure starting the HTTP listener...
[2005-12-19 17:18:55] INFO: CRON Scheduler signaled to shutdown...
[2005-12-19 17:18:55] INFO: Waiting for 0 active threads to terminate...
[2005-12-19 17:18:55] INFO: Closing with NO OPEN THREADS...
[2005-12-19 17:18:55] INFO: Closing with 0 open connections...
[2005-12-19 17:18:56] INFO: Server library exited...
[2005-12-19 17:18:56] INFO: Common library exited...


Maybe I'm going about this wrong, how do i find what is running and how do i stop it.dsl has very limited apps installed with it.

Mara 12-20-2005 03:15 PM

To see what's listening use:
netstat -l
What does it show?

badboyz2525 12-20-2005 07:12 PM

Active Internet connections (only servers)
proto Recv-q SEND-Q LOCAL ADDRESS FOREIGN ADDRESS STATE
ACTIVE UNIX DOMAIN SOCKETS (ONLY SERVERS)
proto refcnt flags type state i-node path
unix 2 [acc] STREAM LISTENING 3651 /temp/.x11-unix/xo
end of output


All times are GMT -5. The time now is 03:55 PM.