1831642 Members
1743 Online
110027 Solutions
New Discussion

Re: tcp services

 
ssudhir
Advisor

tcp services


Hi all

I am having a L 1000 running hp-unix 11.00 on it. i am trying to start oracle in it. And i am using port 80 for my listener process.which is supposed to be used by http.

i hv disable the port for http by putting '#' in /etc/services.

i am getting problem while starting the listener process.when i check the log its giving port binding error.

Now is there any way to know whether the http services is really stoped or not/and any way to know what are the services started in which port ?


thanks in advance.

regards
S.Sudhir

Laughter is the best medicine
6 REPLIES 6
Armin Feller
Honored Contributor

Re: tcp services

Hi,

run 'rpcinfo' to check which services the listener is looking for.

Regards ...
Armin
Arturo Perez del Galleg
Frequent Advisor

Re: tcp services

To know what are the services started in which port you must to do:
lsof -i :
By example:
lsof -i tcp:80
HTH
Ravi_8
Honored Contributor

Re: tcp services

Hi sudhir

#ps -aef|grep -i http
shows the http processes if running.

to find which port it is using, advise you to use lsof.

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.48/
never give up
Dietmar Konermann
Honored Contributor

Re: tcp services

The general approach to look for the state of sockets is netstat -a[n].

What kind of error do your get? EACCESS/Permission denied? Port 80 is normally a protected socket, only for root access.

Best regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
U.SivaKumar_2
Honored Contributor

Re: tcp services

Hi Sudhir,

Commenting out a service port in /etc/services
will not disable the port.

Only way to free a used port is to stop the service using that port. In your case , it is the webserver.

#netstat -an | more

you will see port 80 in LISTENING state with your servers IP address. That means your webservice is listening in that 80 port.

#ps -ef | grep http

Kill gracefully all the running httpd instances.

Start oracle now. your problem is solved.

regards,
U.SivaKumar
Innovations are made when conventions are broken
Fred.Wu
Frequent Advisor

Re: tcp services

netstat -an to see if there's 80 listening.
But it's not recommended to run oracle listener on port 80(you'd better run it on a port more than 1024)
fred