View the port occupied by the linux server and view the running program of the port

The root user executes netstat -ntupl
n means do not query dns
t means tcp protocol
u means udp protocol
p means query occupied programs l means query the program that is listening
### or ####
lsof -i :8000
query port 8000 running program

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326884899&siteId=291194637