How to find PID listening particular Port on LinuxSolaris 1.If you are trying to run any apps service adapcctl.Most probably this port is in use by other process, fix is to either start your service on different port or terminate process listening on that particular port using kill 9 lt pid In order to kill that specific pid, you need to find pid which is listening on that specific port.There are lot of ways to find pid which is listeningusing specific port and most commonly used is LSOFWhat is lsof Li.St Open Files is Unix utility to list all open files and processes that opened them on Unix.How to use LSOF Solaris,lsof is usually installed under usrlocalbin where as on Linux its usually under usrsbin Beware if you are on Solaris 1.ZONESmore on zones in solaris 1.Use z option with lsof to list open files processes with in non global zone like lsof z3.Solaris 1. 0 with zones list doesnt display port, hence I used script mentioned at end of this post.Once you know PID using specific port, you can either stop it or terminate usingkill 9 lt pid Key points for lsof on solaris.Installation procedure of lsof on solaris is same for Solaris Sparc or X8.More on zones in solaris 1.You have to install lsof on global zone.If you run lsof and get error message like lsof cant statdevices No such file or directory probably you are running lsof with in solaris 1.Zone. 3 lsof on solaris is installed under usrlocalbin default location4 On Solaris 1.TCP ports incorrectly shows all processes that have socket open as using port 6.Use script mentioned at end of file in such casesHow to install lsof on Solaris 1.Red Hat Linux By default its installed under usrsbin, for Solaris lsof is available as freeware here for Solaris Sparc 1.Download lsof executable for Solaris 1.A legnpszerbb Oracle kpzseket adatbzisadminisztrci, PLSQL programozs, Java programozs, stb.This document contains system requirements for WebSphere MQ V7.Multiplatforms. 7 Installing Oracle Management Agents.This cha pter describes how you can install Oracle Management Agent Management Agent.In particular, this chapter covers the.Upload zip file like lsof0.Unzip as gunzip lsof0.This will create file like lsof0.Run this command from root user from global zoneIf you are on Solaris 1.Or download script from herebinbash 1 is the port we are looking forif lt 1.Please provide a port number parameter for this scriptecho e.Greping for your port, please be patient CTRLC breaks for i in ls procdopfiles i grep AFINET grep 1if Is owned by pid iecho fidoneand execute this script likesh getpidfromport.To find pid using port 8.I got this script from net last year and now I cant find Author of this script.In case I find authour or link Ill remove from here and link to original siteRelated. Install A Printer On A Terminal Server .
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |