Current location - Quotes Website - Team slogan - Solaris advice on how to check which process the port number is occupied by.
Solaris advice on how to check which process the port number is occupied by.
A simple method to check which process the port number is occupied by under Solaris.

The installation log of 1 Solaris 10 and some system patches can usually be found in the /var/sadm/install_data directory and the /var/sadm/install directory.

2. You can use the last command to list the user login logs.

3.a) netstat -na | grep -i listen can usually see the port number that the current system is listening to.

B) netstat -f inet and netstat -f inet6 can see the currently established connection.

C) If you want to know which process is using a port, you can learn from the following aspects:

-bash-3.00# cd /proc

-bash-3.00# for ii in *

& gt do it

& gt echo-processing $i-

& gtpfiles $i | grep -i "port: 32805"

& gt completed

-Process 0-

-Process 1-

-Process 1025-

-Process 1035-

-Process 1037-

-Process 1038-

-Process 1039-

-Process 1040-

-Process 104 1-

-Process 1 166-

-Process 123-

-Process 12535-

-Process 12536-

-Process 134-

-Process 14 1-

-Process 142-

-Process 148-

-Process 164-

-Process 1679-

-Process 1807-

-Process 18 17-

-Process 18459-

-Process 18462-

-Process 18464-

-Process 186 12-

-Process 186 13-

-Process 186 15-

-Process 18639-

-Process 18653-

-Process 18680-

-Process 2-

-Process 226-

-Process 290-

-Process 3-

-Process 302-

-Process 303-

-Process 3 1 1-

-Process 334-

-Process 372-

-Process 376-

-Process 397-

-Process 398-

-Process 400-

-Process 4 16-

-Process 4 18-

-Process 432-

-Process 434-

-Process 435-

-Process 436-

-Process 442-

-Process 443-

-Process 458-

-Process 463-

-Process 464-

-Process 465-

-Process 564-

-Process 565-

-Process 566-

-Process 598-

-Process 599-

-Process 6 13-

-Process 6 19-

-Process 63 1-

-Process 633-

-Process 634-

-Process 637-

-Process 65 1-

-Process 653-

-Process 666-

-Process 686-

-Process 689-

-Process 6929-

-Process 6932-

-Process 6934-

-Process 6958-

-Process 6959-

-Process 6960-

-Process 7-

-Flow 763-

-Process 834-

-Process 836-

-Process 837-

-Process 838-

-Process 839-

-Process 840-

-Process 9-

-Process 990-

-Process 99 1-

-Process 992-

Peer name: AF_INET 127.0.0. 1 port: 32805.

-Process 993-

-Process 994-

Sockname: af _ inet127.0.0.1port: 32805.

As can be seen from the above results, port 32805 is used by processes 992 and 994. Pfiles