helps you achieve understanding, develop good practices, and operate your team and organization for maximum DevOps awesomeness
Wednesday, November 30, 2011
Linux Find Out Which Process Is Listening Upon a Port
Find Out Which Process Is Listening Upon a Port
1. Find process id
[root@node1 ~]# ps -ef| grep tfa
root 28422 1 0 08:37 ? 00:00:00 /bin/sh /etc/init.d/init.tfa run
root 101416 1 92 08:43 ? 00:09:55 /opt/oracle.ahf/jre/bin/java -server -Xms512m -Xmx1024m -Djava.awt.headless=true -Ddisable.checkForUpdate=true -XX:HeapDumpPath=/depot/TFA_DATA/oracle.ahf/data/node1/diag/tfa -XX:ParallelGCThreads=5 oracle.rat.tfa.TFAMain /opt/oracle.ahf/tfa
root 235621 204091 0 08:53 pts/8 00:00:00 grep tfa
[root@node1 ~]# netstat -tulpn | grep 292505
2. command to find port:
netstat -tulpn
e.g
[root@node1 ~]# netstat -tulpn | grep 250110
tcp 0 0 127.0.0.1:34149 0.0.0.0:* LISTEN 250110/java
tcp 0 0 10.118.50.98:5000 0.0.0.0:* LISTEN 250110/java
Subscribe to:
Comments (Atom)
Windows 2016 - Install AZ CLI & KUBECTL
#AZ CLI msiexec /i https://aka.ms/installazurecliwindows #Kubectl curl.exe -LO "https://dl.k8s.io/release/v1.30.1/bin/windows/amd64...
-
Install htop in Oracle Linux 7 htop is not default install and it's not part of default repo so when we try to install htop it throw...
-
How to Stop Firewall on Oracle Linux 7 [root@ebs121db1 ~]# iptables -L Chain INPUT (policy ACCEPT) target prot opt source ...
-
Oracle DB Connect to Sybase database steps: 1. Install Oracle Gateway software in Oracle database 2. Configure Sybase server details $ORA...