how to find process or service with the help of port in linux
In Linux there is command called lsof using this command. user can find which process is associated with any port. and this command always help to resolve port-conflict issue in server
Example: let suppose tomcat one instance is running with 8080 port and there is more instance created later but user forgot to change the default port. then newly create tomcat instance will try to start in same port 8080.
in such case user can identified which process is using that port.
Example:-
lsof -i:8080
Comments
Post a Comment