netstat -nlp |grep 8080
鎶婂墠涓鏉″懡浠ょ殑杈撳嚭浣滀负鍚庝竴鏉″懡浠ょ殑杈撳叆mkfifo test
echo "this is a pipe" > test//// 鍐欐暟鎹
cat < test // 璇绘暟鎹
鍗曞悜浼犺緭
缂虹偣 锛氭晥鐜囦綆涓嬶紝a 杩涚▼缁 b 杩涚▼浼犺緭鏁版嵁锛屽彧鑳界瓑寰 b 杩涚▼鍙栦簡鏁版嵁涔嬪悗 a 杩涚▼鎵嶈兘杩斿洖銆
缂虹偣 :濡傛灉 a 杩涚▼鍙戦佺殑鏁版嵁鍗犵殑鍐呭瓨姣旇緝澶э紝骞朵笖涓や釜杩涚▼涔嬮棿鐨勯氫俊鐗瑰埆棰戠箒鐨勮瘽锛屾秷鎭槦鍒楁ā鍨嬪氨涓嶅ぇ閫傚悎浜嗐傚洜涓 a 鍙戦佺殑鏁版嵁寰堝ぇ鐨勮瘽锛屾剰鍛鍙戦佹秷鎭紙鎷疯礉锛杩欎釜杩囩▼闇瑕佽姳寰堝鏃堕棿鏉ヨ鍐呭瓨
闂锛氬杩涚▼绔炰簤鍐呭瓨锛岀被浼肩嚎绋嬪畨鍏
淇″彿閲忕殑鏈川灏辨槸涓涓鏁板櫒锛岀敤鏉ュ疄鐜拌繘绋嬩箣闂寸殑浜掓枼涓庡悓姝ャ備緥濡備俊鍙烽噺鐨勫垵濮嬪兼槸 1锛岀劧鍚 a 杩涚▼鏉ヨ闂唴瀛1鐨勬椂鍊欙紝鎴戜滑灏辨妸淇″彿閲忕殑鍊艰涓 0锛岀劧鍚庤繘绋媌 涔熻鏉ヨ闂唴瀛1鐨勬椂鍊欙紝鐪嬪埌淇″彿閲忕殑鍊间负 0 灏辩煡閬撳凡缁忔湁杩涚▼鍦ㄨ闂唴瀛1浜嗭紝杩欎釜鏃跺欒繘绋 b 灏变細璁块棶涓嶄簡鍐呭瓨1銆傛墍浠ヨ锛屼俊鍙烽噺涔熸槸杩涚▼涔嬮棿鐨勪竴绉嶉氫俊鏂瑰紡銆
涓や釜鐩搁殧鍑犲崈閲岀殑杩涚▼鑳藉杩涜閫氫俊鍚楋紝鑳斤紝鐢ㄥ緱灏辨槸socket
鍙戣〃鍥炲