更新时间: 2022-11-05 12:59:12#shell trap命令#!/bin/bash trap "rm server;kill 0" EXIT trap 命令用于在 shell 脚本退出时,删掉临时文件,结束子进程。 可以捕捉信号