linux查看端口占用情况 du -h --max-depth=1 /data/work/api/ 查看某个目录占用了多少内存 lsof -i:8080 解除端口占用: kill -9 $(lsof -t -i:35729) 35729为占用的端口号 执行效果