‘壹’ linux镆ョ湅tcp杩炴帴鏁
linux镐庝箞镆ョ湅tcp杩炴帴鏁帮纻鎴戜滑涓璧锋潵浜呜В涓涓嫔惂銆1銆佹墦寮linux绯荤粺锛屽湪linux镄勬岄溃镄勭┖锏藉勫彸鍑汇2銆佸湪寮瑰嚭镄勪笅𨰾夐夐”閲岋纴镣瑰嚮镓揿紑缁堢銆3銆佽緭鍏netstat -n | awk /^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}鍙浠ユ煡鐪媡cp镄勫悇涓鏁版嵁銆