1. //删除当前目录下的日志文件
    2. find . -name "*-common.log" -type f -print -exec rm -rf {} ;
    3. //查询端口占用
    4. netstat -tunlp
    5. netstat -tunlp | grep 8080
    6. //启动程序
    7. nohup java -jar MyServer.jar >/dev/null 2>&1 &
    8. //tail跟踪日志
    9. tail common.log -f
    10. //抓包
    11. tshark tcp port 8080 -w /tmp/server.pcap

    // [Xshell] 清屏
    image.png

    // [Xshell] 用编辑器查看
    image.png