查找 unix socket 所属的进程
~# ss --unix -a -p
Netid State      Recv-Q Send-Q                                              Local Address:Port                                                               Peer Address:Port
u_str LISTEN     0      100                                                private/bounce 19084                                                                         * 0                     users:(("master",pid=1550,fd=35))
u_str LISTEN     0      5                                   /var/run/ceph/ceph-osd.0.asok 73473                                                                         * 0                     users:(("ceph-osd",pid=5441,fd=19))
u_str LISTEN     0      10                           /var/run/NetworkManager/private-dhcp 23562                                                                         * 0                     users:(("NetworkManager",pid=2697,fd=17))
...
~# fuser ceph-osd.0.asok
/run/ceph/ceph-osd.0.asok:  5441

最后修改于 2019-03-20