linux tcp 连接建立时间

1
2
lsof -P -i tcp | awk '{print $2,$4}' | tr -d 'u' | sort -u
stat --printf "%z %N\n" /proc/$pid/fd/$fd