查看linux端口对应的进程id

例如:查看占用4040端口的进程

ss -lptn 'sport = :4040'

原文地址:https://www.cnblogs.com/gunduzi/p/10761488.html