{"id":53197,"date":"2024-10-09T09:09:17","date_gmt":"2024-10-09T01:09:17","guid":{"rendered":"https:\/\/server.hk\/cnblog\/53197\/"},"modified":"2024-10-09T09:09:17","modified_gmt":"2024-10-09T01:09:17","slug":"com1-lpt1-prn-nul-%e6%9c%a8%e9%a6%ac%e5%be%8c%e9%96%80%e8%99%95%e7%90%86%e6%96%b9%e6%b3%95%e9%9b%86%e5%90%88","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/53197\/","title":{"rendered":"COM1\/LPT1\/PRN\/NUL \u6728\u99ac\u5f8c\u9580\u8655\u7406\u65b9\u6cd5\u96c6\u5408"},"content":{"rendered":"<h1 id=\"com1-lpt1-prn-nul-%e6%9c%a8%e9%a6%ac%e5%be%8c%e9%96%80%e8%99%95%e7%90%86%e6%96%b9%e6%b3%95%e9%9b%86%e5%90%88-enqWgDvyIX\">COM1\/LPT1\/PRN\/NUL \u6728\u99ac\u5f8c\u9580\u8655\u7406\u65b9\u6cd5\u96c6\u5408<\/h1>\n<p>\u5728\u7576\u4eca\u7684\u6578\u4f4d\u6642\u4ee3\uff0c\u7db2\u7d61\u5b89\u5168\u6210\u70ba\u4e86\u6bcf\u500b\u4f01\u696d\u548c\u500b\u4eba\u7528\u6236\u5fc5\u9808\u91cd\u8996\u7684\u8b70\u984c\u3002\u6728\u99ac\u5f8c\u9580\u662f\u4e00\u7a2e\u5e38\u898b\u7684\u60e1\u610f\u8edf\u4ef6\uff0c\u80fd\u5920\u8b93\u653b\u64ca\u8005\u5728\u4e0d\u88ab\u767c\u73fe\u7684\u60c5\u6cc1\u4e0b\uff0c\u9060\u7a0b\u63a7\u5236\u53d7\u611f\u67d3\u7684\u7cfb\u7d71\u3002\u7279\u5225\u662f\u5229\u7528 COM1\u3001LPT1\u3001PRN \u548c NUL \u9019\u4e9b\u7cfb\u7d71\u8cc7\u6e90\u7684\u6728\u99ac\u5f8c\u9580\uff0c\u5c0d\u65bc\u7cfb\u7d71\u7684\u5b89\u5168\u6027\u69cb\u6210\u4e86\u56b4\u91cd\u5a01\u8105\u3002\u672c\u6587\u5c07\u63a2\u8a0e\u9019\u4e9b\u6728\u99ac\u5f8c\u9580\u7684\u7279\u5fb5\u53ca\u5176\u8655\u7406\u65b9\u6cd5\u3002<\/p>\n<h2 id=\"%e6%9c%a8%e9%a6%ac%e5%be%8c%e9%96%80%e7%9a%84%e5%9f%ba%e6%9c%ac%e6%a6%82%e5%bf%b5-enqWgDvyIX\">\u6728\u99ac\u5f8c\u9580\u7684\u57fa\u672c\u6982\u5ff5<\/h2>\n<p>\u6728\u99ac\u5f8c\u9580\u662f\u4e00\u7a2e\u96b1\u85cf\u5728\u5408\u6cd5\u7a0b\u5e8f\u4e2d\u7684\u60e1\u610f\u4ee3\u78bc\uff0c\u901a\u5e38\u7528\u65bc\u7e5e\u904e\u5b89\u5168\u63aa\u65bd\uff0c\u8b93\u653b\u64ca\u8005\u80fd\u5920\u5728\u53d7\u5bb3\u8005\u7684\u7cfb\u7d71\u4e0a\u57f7\u884c\u4efb\u610f\u64cd\u4f5c\u3002\u9019\u4e9b\u5f8c\u9580\u53ef\u4ee5\u901a\u904e\u591a\u7a2e\u65b9\u5f0f\u9032\u884c\u5b89\u88dd\uff0c\u5305\u62ec\u96fb\u5b50\u90f5\u4ef6\u9644\u4ef6\u3001\u4e0b\u8f09\u7684\u6587\u4ef6\u6216\u901a\u904e\u6f0f\u6d1e\u9032\u884c\u653b\u64ca\u3002<\/p>\n<h2 id=\"com1%e3%80%81lpt1%e3%80%81prn-%e5%92%8c-nul-%e7%9a%84%e4%bd%9c%e7%94%a8-enqWgDvyIX\">COM1\u3001LPT1\u3001PRN \u548c NUL \u7684\u4f5c\u7528<\/h2>\n<ul>\n<li><strong>COM1\uff1a<\/strong>\u901a\u5e38\u7528\u65bc\u4e32\u884c\u901a\u4fe1\uff0c\u8a31\u591a\u820a\u5f0f\u8a2d\u5099\u4ecd\u7136\u4f9d\u8cf4\u6b64\u7aef\u53e3\u9032\u884c\u6578\u64da\u50b3\u8f38\u3002<\/li>\n<li><strong>LPT1\uff1a<\/strong>\u4e3b\u8981\u7528\u65bc\u4e26\u884c\u6253\u5370\u6a5f\u7684\u9023\u63a5\uff0c\u9019\u500b\u7aef\u53e3\u5728\u73fe\u4ee3\u8a08\u7b97\u6a5f\u4e2d\u9010\u6f38\u88ab\u6dd8\u6c70\u3002<\/li>\n<li><strong>PRN\uff1a<\/strong>\u662f\u4e00\u500b\u865b\u64ec\u8a2d\u5099\uff0c\u901a\u5e38\u6307\u5411\u6253\u5370\u6a5f\uff0c\u80fd\u5920\u5c07\u6578\u64da\u76f4\u63a5\u767c\u9001\u5230\u6253\u5370\u6a5f\u3002<\/li>\n<li><strong>NUL\uff1a<\/strong>\u662f\u4e00\u500b\u7279\u6b8a\u7684\u8a2d\u5099\uff0c\u4efb\u4f55\u5beb\u5165\u5230 NUL \u7684\u6578\u64da\u90fd\u6703\u88ab\u4e1f\u68c4\uff0c\u9019\u4f7f\u5f97\u5b83\u5728\u67d0\u4e9b\u60c5\u6cc1\u4e0b\u6210\u70ba\u96b1\u85cf\u6578\u64da\u7684\u5de5\u5177\u3002<\/li>\n<\/ul>\n<h2 id=\"%e6%9c%a8%e9%a6%ac%e5%be%8c%e9%96%80%e7%9a%84%e5%b7%a5%e4%bd%9c%e5%8e%9f%e7%90%86-enqWgDvyIX\">\u6728\u99ac\u5f8c\u9580\u7684\u5de5\u4f5c\u539f\u7406<\/h2>\n<p>\u9019\u4e9b\u6728\u99ac\u5f8c\u9580\u901a\u5e38\u6703\u5229\u7528\u4e0a\u8ff0\u7aef\u53e3\u9032\u884c\u96b1\u853d\u7684\u901a\u4fe1\u3002\u4f8b\u5982\uff0c\u653b\u64ca\u8005\u53ef\u80fd\u6703\u5c07\u60e1\u610f\u4ee3\u78bc\u8a2d\u7f6e\u70ba\u901a\u904e COM1 \u7aef\u53e3\u767c\u9001\u6307\u4ee4\uff0c\u6216\u5229\u7528 NUL \u4f86\u96b1\u85cf\u5176\u6d3b\u52d5\u3002\u9019\u4f7f\u5f97\u6aa2\u6e2c\u548c\u6e05\u9664\u9019\u4e9b\u5f8c\u9580\u8b8a\u5f97\u66f4\u52a0\u56f0\u96e3\u3002<\/p>\n<h2 id=\"%e6%aa%a2%e6%b8%ac%e6%9c%a8%e9%a6%ac%e5%be%8c%e9%96%80%e7%9a%84%e6%96%b9%e6%b3%95-enqWgDvyIX\">\u6aa2\u6e2c\u6728\u99ac\u5f8c\u9580\u7684\u65b9\u6cd5<\/h2>\n<p>\u6aa2\u6e2c\u6728\u99ac\u5f8c\u9580\u7684\u7b2c\u4e00\u6b65\u662f\u76e3\u63a7\u7cfb\u7d71\u7684\u7570\u5e38\u884c\u70ba\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u898b\u7684\u6aa2\u6e2c\u65b9\u6cd5\uff1a<\/p>\n<ul>\n<li><strong>\u4f7f\u7528\u9632\u75c5\u6bd2\u8edf\u4ef6\uff1a<\/strong>\u5b9a\u671f\u6383\u63cf\u7cfb\u7d71\uff0c\u78ba\u4fdd\u9632\u75c5\u6bd2\u8edf\u4ef6\u662f\u6700\u65b0\u7684\u3002<\/li>\n<li><strong>\u6aa2\u67e5\u7cfb\u7d71\u65e5\u8a8c\uff1a<\/strong>\u67e5\u770b\u7cfb\u7d71\u65e5\u8a8c\u4ee5\u8b58\u5225\u4efb\u4f55\u53ef\u7591\u7684\u6d3b\u52d5\u6216\u7570\u5e38\u767b\u9304\u3002<\/li>\n<li><strong>\u76e3\u63a7\u7db2\u7d61\u6d41\u91cf\uff1a<\/strong>\u4f7f\u7528\u7db2\u7d61\u76e3\u63a7\u5de5\u5177\u6aa2\u67e5\u662f\u5426\u6709\u4e0d\u660e\u7684\u6578\u64da\u50b3\u8f38\u3002<\/li>\n<\/ul>\n<h2 id=\"%e8%99%95%e7%90%86%e6%9c%a8%e9%a6%ac%e5%be%8c%e9%96%80%e7%9a%84%e6%ad%a5%e9%a9%9f-enqWgDvyIX\">\u8655\u7406\u6728\u99ac\u5f8c\u9580\u7684\u6b65\u9a5f<\/h2>\n<p>\u4e00\u65e6\u6aa2\u6e2c\u5230\u6728\u99ac\u5f8c\u9580\uff0c\u61c9\u7acb\u5373\u63a1\u53d6\u884c\u52d5\u3002\u4ee5\u4e0b\u662f\u8655\u7406\u6728\u99ac\u5f8c\u9580\u7684\u57fa\u672c\u6b65\u9a5f\uff1a<\/p>\n<ol>\n<li><strong>\u9694\u96e2\u53d7\u611f\u67d3\u7684\u7cfb\u7d71\uff1a<\/strong>\u5c07\u53d7\u611f\u67d3\u7684\u8a2d\u5099\u5f9e\u7db2\u7d61\u4e2d\u65b7\u958b\uff0c\u4ee5\u9632\u6b62\u9032\u4e00\u6b65\u7684\u640d\u5bb3\u3002<\/li>\n<li><strong>\u4f7f\u7528\u9632\u75c5\u6bd2\u8edf\u4ef6\u6e05\u9664\u6728\u99ac\uff1a<\/strong>\u904b\u884c\u5168\u9762\u6383\u63cf\uff0c\u4e26\u6839\u64da\u9632\u75c5\u6bd2\u8edf\u4ef6\u7684\u5efa\u8b70\u9032\u884c\u6e05\u9664\u3002<\/li>\n<li><strong>\u6aa2\u67e5\u7cfb\u7d71\u8a2d\u7f6e\uff1a<\/strong>\u78ba\u4fdd\u6240\u6709\u7cfb\u7d71\u8a2d\u7f6e\u548c\u7528\u6236\u8cec\u6236\u90fd\u662f\u5b89\u5168\u7684\uff0c\u4e26\u91cd\u7f6e\u6240\u6709\u5bc6\u78bc\u3002<\/li>\n<li><strong>\u66f4\u65b0\u7cfb\u7d71\u548c\u61c9\u7528\u7a0b\u5e8f\uff1a<\/strong>\u78ba\u4fdd\u6240\u6709\u8edf\u4ef6\u90fd\u662f\u6700\u65b0\u7684\uff0c\u4ee5\u9632\u6b62\u672a\u4f86\u7684\u653b\u64ca\u3002<\/li>\n<\/ol>\n<h2 id=\"%e9%a0%90%e9%98%b2%e6%8e%aa%e6%96%bd-enqWgDvyIX\">\u9810\u9632\u63aa\u65bd<\/h2>\n<p>\u70ba\u4e86\u9632\u6b62\u6728\u99ac\u5f8c\u9580\u7684\u5165\u4fb5\uff0c\u5efa\u8b70\u63a1\u53d6\u4ee5\u4e0b\u9810\u9632\u63aa\u65bd\uff1a<\/p>\n<ul>\n<li><strong>\u5b9a\u671f\u5099\u4efd\u6578\u64da\uff1a<\/strong>\u78ba\u4fdd\u6240\u6709\u91cd\u8981\u6578\u64da\u90fd\u6709\u5099\u4efd\uff0c\u4ee5\u4fbf\u5728\u906d\u53d7\u653b\u64ca\u6642\u80fd\u5920\u6062\u5fa9\u3002<\/li>\n<li><strong>\u6559\u80b2\u7528\u6236\uff1a<\/strong>\u63d0\u9ad8\u7528\u6236\u5c0d\u7db2\u7d61\u5b89\u5168\u7684\u8a8d\u8b58\uff0c\u907f\u514d\u9ede\u64ca\u53ef\u7591\u93c8\u63a5\u6216\u4e0b\u8f09\u4e0d\u660e\u6587\u4ef6\u3002<\/li>\n<li><strong>\u4f7f\u7528\u9632\u706b\u7246\uff1a<\/strong>\u914d\u7f6e\u9632\u706b\u7246\u4ee5\u963b\u6b62\u4e0d\u5fc5\u8981\u7684\u7aef\u53e3\u548c\u670d\u52d9\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b8%bd%e7%b5%90-enqWgDvyIX\">\u7e3d\u7d50<\/h2>\n<p>\u6728\u99ac\u5f8c\u9580\u662f\u4e00\u7a2e\u6f5b\u5728\u7684\u5b89\u5168\u5a01\u8105\uff0c\u7279\u5225\u662f\u5229\u7528 COM1\u3001LPT1\u3001PRN \u548c NUL \u7aef\u53e3\u7684\u8b8a\u7a2e\u3002\u901a\u904e\u5b9a\u671f\u6aa2\u6e2c\u548c\u53ca\u6642\u8655\u7406\uff0c\u53ef\u4ee5\u6709\u6548\u964d\u4f4e\u9019\u4e9b\u5a01\u8105\u7684\u5f71\u97ff\u3002\u5c0d\u65bc\u9700\u8981\u9ad8\u6548\u80fd\u548c\u5b89\u5168\u6027\u7684\u7528\u6236\uff0c\u9078\u64c7\u5408\u9069\u7684 <a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a> \u89e3\u6c7a\u65b9\u6848\u662f\u81f3\u95dc\u91cd\u8981\u7684\u3002\u4e86\u89e3\u5982\u4f55\u4fdd\u8b77\u60a8\u7684\u7cfb\u7d71\uff0c\u4e26\u9078\u64c7\u53ef\u9760\u7684 <a href=\"https:\/\/server.hk\">\u9999\u6e2f\u4f3a\u670d\u5668<\/a> \u670d\u52d9\uff0c\u5c07\u6709\u52a9\u65bc\u78ba\u4fdd\u60a8\u7684\u6578\u64da\u5b89\u5168\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u96c6\u5408\u4e86COM1\u3001LPT1\u3001PRN\u3001NUL\u6728\u99ac\u5f8c\u9580\u7684\u8655\u7406\u65b9\u6cd5\uff0c\u5e6b\u52a9\u7528\u6236\u6709\u6548\u9632\u7bc4\u548c\u6e05\u9664\u6f5b\u5728\u5a01\u8105\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4924],"tags":[],"class_list":["post-53197","post","type-post","status-publish","format-standard","hentry","category-setup-tutorials"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/53197","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=53197"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/53197\/revisions"}],"predecessor-version":[{"id":53198,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/53197\/revisions\/53198"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=53197"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=53197"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=53197"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}