Releasing a Port

Hey Guys,

I need a help,

After I upgraded my server to AIX 6.1.4 the port 80 is occupied by a Java process

bash-3.00# netstat -Aan | grep "*.80"
f1000700007d7bb0 tcp        0      0  *.80               *.*                LISTEN
bash-3.00# rmsock f1000700007d7bb0 tcp
usage:  rmsock Addr TypeOfAddr
bash-3.00# rmsock f1000700007d7bb0 tcpcb
The socket 0x7d7808 is being held by proccess 221186 (java).
bash-3.00# ps -ef | grep 221186
    root 221186 147466   0 09:13:57      -  0:14 /usr/java5/bin/java -Xbootclasspath/a:/var/websm/lwi/runtime/core/rcp/eclipse/plugins/com.ibm.rcp.base_6.1.2.200801281200/rcpbootcp.jar:/var/websm/lwi/lib/ISCJaasModule.jar:/var/websm/lwi/lib/icl.jar:/var/websm/lwi/lib/jaas2zos.jar:/var/websm/lwi/lib/jaasmodule.jar:/var/websm/lwi/lib/lwinative.jar:/var/websm/lwi/lib/lwinl1.jar:/var/websm/lwi/lib/lwinl2.jar:/var/websm/lwi/lib/lwinl3.jar:/var/websm/lwi/lib/lwirolemap.jar:/var/websm/lwi/lib/passutils.jar -Xverify:none -cp eclipse/launch.jar:eclipse/startup.jar:/var/websm/lwi/runtime/core/rcp/eclipse/plugins/com.ibm.rcp.base_6.1.2.200801281200/launcher.jar com.ibm.lwi.LaunchLWI
    root 254176 598178   0 12:46:45  pts/0  0:00 grep 221186
bash-3.00#

I need to release the port 80.. I tried killing the java process, but its getting started immediately.. I need to free up the port 80 to start my HTTP server

bash-3.00# /usr/IBM/HTTPServer/bin/apachectl -k start
(67)Address already in use: make_sock: could not bind to address [::]:80
no listening sockets available, shutting down
Unable to open logs
bash-3.00#

Please advise how to overcome this.

Have a look at "/etc/inittab" to see which processes are started automatically during system startup. To configure the inittab do NOT use an editor, but the commands "rmitab" (delete), "lsitab" (list), "chitab" (change) and "mkitab" (create).

Issue a "lssrc -a" to get a list of all configured subsystems and compare this to what you found in "/etc/inittab".

Have a look at "/etc/inetd.conf" to see if there is any subserver configured.

I hope this helps.

bakunin

Yes Bakunin..

Found that the http4websm subsystem is in the inittab which gets started when the system boots.. Now that subsystem is stopped.. I 'm able to start the webserver