root 4620 4515 0 16:02 pts/2 00:00:00 grep uwsgi
[root@slave03 python_test]# lsof -i 第一种方式
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
rpcbind 1844 rpc 6u IPv4 13965 0t0 UDP *:sunrpc
rpcbind 1844 rpc 7u IPv4 13966 0t0 UDP *:fujitsu-dev
rpcbind 1844 rpc 8u IPv4 13967 0t0 TCP *:sunrpc (LISTEN)
rpcbind 1844 rpc 9u IPv6 13968 0t0 UDP *:sunrpc
Try 'grep --help' for more information.
[root@slave03 python_test]# netstat -nltp |grep 8080 /root
tcp 0 0 :::28080 :::* LISTEN 28051/java
[root@slave03 python_test]# sudo netstat -nltp | grep 3306 /普通
tcp 0 0 :::3306 :::* LISTEN 2508/mysqld
[root@slave03 python_test]#
杀掉进程端口
sudo fuser -k 5000/tcp