linux根据端口号查询进程

sudo su - test

lsof -i:9888

需要切换到启动进程的用户

原文地址:https://www.cnblogs.com/jpit/p/7686961.html