{"id":2256,"date":"2019-03-19T02:33:04","date_gmt":"2019-03-19T02:33:04","guid":{"rendered":""},"modified":"2019-03-19T10:33:32","modified_gmt":"2019-03-19T02:33:32","slug":"%e4%b8%80%e7%a7%8d%e4%bb%a5%e5%b5%8c%e5%85%a5%e5%bc%8finternet%e6%8a%80%e6%9c%af%e4%b8%ba%e5%9f%ba%e7%a1%80%e7%9a%84%e7%94%b5%e7%bd%91%e8%bf%9c%e7%a8%8b%e7%9b%91%e6%b5%8b%e7%b3%bb","status":"publish","type":"post","link":"http:\/\/www.szryc.com\/?p=2256","title":{"rendered":"\u4e00\u79cd\u4ee5\u5d4c\u5165\u5f0fInternet\u6280\u672f\u4e3a\u57fa\u7840\u7684\u7535\u7f51\u8fdc\u7a0b\u76d1\u6d4b\u7cfb"},"content":{"rendered":"
\n\t\u5f15\u8a00<\/p>\n
\n\t\u793e\u4f1a\u7684\u4e0d\u65ad\u8fdb\u6b65\u548c\u79d1\u5b66\u6280\u672f\u7684\u98de\u901f\u53d1\u5c55\uff0c\u4e3a\u7535\u529b\u7cfb\u7edf\u7684\u53d1\u5c55\u548c\u8fdb\u6b65\u63d0\u4f9b\u4e86\u5e7f\u9614\u7684\u7a7a\u95f4\u548c\u65b0\u7684\u6280\u672f\u624b\u6bb5\uff0c\u5bf9\u4e8e\u7535\u7f51\u7684\u76d1\u6d4b\u4e5f\u63d0\u51fa\u4e86\u65b0\u7684\u6311\u6218\u3002\u4ee5\u5f80\u7684\u7535\u7f51\u76d1\u6d4b\u88c5\u7f6e\u666e\u904d\u662f\u57fa\u4e8e\u5355\u7247\u673a<\/u>\u5f00\u53d1\u7684\uff0c\u5728\u7279\u5b9a\u65f6\u95f4\u6216\u5730\u70b9\u8fdb\u884c\u7535\u7f51\u7684\u76d1\u6d4b\u64cd\u4f5c\uff0c\u7cbe\u5ea6\u8f83\u4f4e\uff0c\u5b9e\u65f6\u6027\u4e0d\u9ad8\u3002\u968f\u7740\u7535\u7f51\u4e0d\u65ad\u6269\u5927\uff0c\u539f\u672c\u7684\u76d1\u6d4b\u88c5\u7f6e\u5df1\u5f88\u96be\u6ee1\u8db3\u5b9e\u9645\u9700\u8981\u3002<\/p>\n \n\t\u672c\u7cfb\u7edf\u57fa\u4e8e\u8fd1\u5e74\u6765\u65b0\u5174\u7684\u5d4c\u5165\u5f0fInte<\/u>rnet\u6280\u672f\u5c06\u5d4c\u5165\u5f0f\u7cfb\u7edf\u4e0eInternet\u7ed3\u5408\uff0c\u628aPHILIPS\u516c\u53f8\u751f\u4ea7\u7684ARM<\/u>7\u5fae\u5904\u7406\u5668\u4f5c\u4e3a\u7cfb\u7edf\u5b9e\u73b0\u7684\u6838\u5fc3\u5668\u4ef6\uff0c\u540c\u65f6\u5229\u7528\u4ee5\u592a\u7f51<\/u>\u63a5\u53e3\u82af\u7247\u6784\u5efa\u4e00\u4e2a\u5d4c\u5165\u5f0f\u7f51\u7edc\u7cfb\u7edf\u5e76\u5c06\u5176\u8fd0\u7528\u5230\u7535\u7f51\u8fdc\u7a0b\u76d1\u6d4b\u4e2d\u3002\u6574\u4e2a\u8bbe\u8ba1\u7b26\u5408\u7535\u7f51\u8fdc\u7a0b\u76d1\u6d4b\u7684\u8981\u6c42\uff0c\u5e76\u514b\u670d\u4e86\u4f20\u7edf\u6a21\u5f0f\u7684\u76d1\u6d4b\u65b9\u5f0f\uff0c\u4ee5\u5176\u4f18\u5f02\u7684\u6027\u80fd\u5e94\u7528\u4e8e\u7535\u7f51\u8fdc\u7a0b\u76d1\u6d4b\u7cfb\u7edf\u4e2d\u3002<\/p>\n \n\t1. \u7cfb\u7edf\u603b\u4f53\u8bbe\u8ba1<\/p>\n \n\t\u57fa\u4e8e\u5d4c\u5165\u5f0fInternet\u6280\u672f\u7684\u7535\u7f51\u8fdc\u7a0b\u76d1\u6d4b\u7cfb\u7edf\u662f\u7535\u7f51\u76d1\u6d4b\u7814\u7a76\u9886\u57df\u7684\u4e00\u4e2a\u5d2d\u65b0\u7684\u65b9\u5411\u3002\u76ee\u524d\u4e3a\u4e86\u5c06\u5d4c\u5165\u5f0f\u7cfb\u7edf\u4e0eInternet\u7ed3\u5408\u5e38\u7528\u7684\u5d4c\u5165\u5f0fInternet\u6280\u672f\u5b9e\u73b0\u65b9\u6848\u4e3b\u8981\u6709\u4ee5\u4e0b\u51e0\u79cd\uff1a\uff3b1\uff3d<\/p>\n \n\t\u7b2c\u4e00\u79cd\u65b9\u6848\u662f\u5355\u7247\u673a\u5e94\u7528\u7cfb\u7edf\u5185\u90e8\u652f\u6301TCP\uff0fIP\u534f\u8bae\uff0c\u5b83\u5b9e\u8d28\u4e0a\u7531MCU<\/u>\u53ca\u5185\u90e8\u56fa\u5316TCP\uff0fIP\u534f\u8bae\u7684\u82af\u7247\u7ec4\u6210\u5e94\u7528\u7cfb\u7edf\u7684\u6838\u5fc3\u3002\u6b64\u65b9\u6848\u4e2d\uff0c\u7531\u4e8e\u5355\u7247\u673a\u4f7f\u7528\u4e86TCP\uff0fIP\u534f\u8bae\u82af\u7247\uff0c\u56e0\u6b64\uff3b1\uff3d\u9700\u8981\u5927\u5bb9\u91cf\u7684\u7a0b\u5e8f\u5b58\u50a8\u5668\uff0c\u800c\u4e14\u8981\u6c42MCU\u6709\u8f83\u9ad8\u7684\u8fd0\u884c\u901f\u5ea6\u3002\u5e94\u7528\u7cfb\u7edf\u7684\u8bbe\u8ba1\u5de5\u7a0b\u5e08\u8fd8\u5fc5\u987b\u719f\u6089TCP\uff0fIP\u534f\u8bae\u548c\u76f8\u5173\u7684\u63a5\u53e3\uff0c\u8f6f\u4ef6\u8bbe\u8ba1\u590d\u6742\uff0c\u5de5\u4f5c\u91cf\u5927\u3002<\/p>\n \n\t\u7b2c\u4e8c\u79cd\u65b9\u6848\u662f\u91c7\u7528\u5d4c\u5165\u5f0f\u5fae\u63a7\u5236\u5668\u7ed3\u5408\u901a\u7528\u7684\u7f51\u7edc\u63a5\u53e3\u82af\u7247\u7684\u65b9\u6cd5\uff0c\u89e3\u51b3\u4ee5\u5fae\u63a7\u5236\u5668\u4e3a\u6838\u5fc3\u7684\u5d4c\u5165\u5f0f\u7cfb\u7edf\u63a5\u5165Internet\u7684\u95ee\u9898\u3002<\/p>\n \n\t\u672c\u7cfb\u7edf\u5c06\u7b2c\u4e8c\u79cd\u65b9\u6848\u5e94\u7528\u4e8e\u7535\u7f51\u8fdc\u7a0b\u76d1\u6d4b\u7cfb\u7edf\u7684\u5f00\u53d1\u4e0e\u5b9e\u73b0\uff0c\u628a\u76d1\u6d4b\u88c5\u7f6e\u4f5c\u4e3a\u4ee5\u592a\u7f51\u4e2d\u7684\u4e00\u4e2a\u72ec\u7acb\u7684\u8282\u70b9\uff0c\u4f7f\u5176\u62e5\u6709\u81ea\u5df1\u7684IP\u5730\u5740\uff0c\u800c\u4efb\u4f55\u6388\u6743\u7684\u5de5\u4f5c\u7ad9\u90fd\u53ef\u4ee5\u901a\u8fc7Internet\u5b9e\u65f6\u6d4f\u89c8\u5728\u7ebf\u4fe1\u606f\u3002\u6574\u4e2a\u7535\u7f51\u8fdc\u7a0b\u76d1\u6d4b\u7cfb\u7edf\u7684\u7ed3\u6784\u5982\u56fe1\uff0c\u5176\u4e2d\u7528\u6237\u5c42\u662f\u8fdc\u7a0b\u76d1\u6d4b\u4e3b\u673a\uff0c\u8d1f\u8d23\u5b9e\u65f6\u76d1\u6d4b\u7535\u7f51\u8fd0\u884c\u53c2\u6570\u786e\u4fdd\u7535\u7f51\u8fd0\u884c\u5b89\u5168\u3002\u5e94\u7528\u5c42\u4e3a\u91c7\u7528\u5d4c\u5165\u5f0fInternet\u6280\u672f\u8bbe\u8ba1\u5f00\u53d1\u7684\u7535\u7f51\u8fdc\u7a0b\u76d1\u6d4b\u7cfb\u7edf\uff0c\u6bcf\u4e2a\u76d1\u6d4b\u8bbe\u5907\u5206\u914d\u4e00\u4e2a\u72ec\u7acb\u7684IP\uff0c\u65b9\u4fbf\u7528\u6237\u5c42\u8fdb\u884c\u6570\u636e\u76d1\u6d4b\u3002\u6570\u636e\u5c42\u5219\u4e3a\u5206\u5e03\u5728\u5404\u5730\u7684\u5f85\u76d1\u6d4b\u7684\u7535\u7f51\uff0c\u63d0\u4f9b\u7535\u7f51\u8fd0\u884c\u53c2\u6570\u3002<\/p>\n \n\t<\/p>\n \n\t2. \u7cfb\u7edf\u7684\u786c\u4ef6\u5e73\u53f0<\/p>\n \n\t\u786c\u4ef6\u5e73\u53f0\u662f\u5b9e\u73b0\u5d4c\u5165\u5f0fInternet\u63a5\u5165\u7684\u57fa\u7840\uff0c\u672c\u6587\u63d0\u51fa\u7684\u7535\u7f51\u8fdc\u7a0b\u76d1\u6d4b\u7cfb\u7edf\u7684\u786c\u4ef6\u5e73\u53f0\u91c7\u7528ARM7\u4ee3\u66ff\u4e86\u4f20\u7edf\u7684CPU<\/u>\uff0c\u540c\u65f6\u5728\u5916\u56f4\u63a5\u5165\u7535\u6d41<\/u>\u7535\u538b\u76d1\u6d4b\u6a21\u5757\u3001\u529f\u7387\u56e0\u6570\u76d1\u6d4b\u6a21\u5757\u3001\u952e\u76d8\u8f93\u5165\u6a21\u5757\u3001\u4ee5\u53ca\u7f51\u7edc\u901a\u4fe1\u6a21\u5757\uff0c\u6574\u4e2a\u7cfb\u7edf\u7684\u786c\u4ef6\u5e73\u53f0\u7ed3\u6784\u56fe\u5982\u56fe2\u3002\u5176\u4e2d\u5fae\u5904\u7406\u5668\u90e8\u5206\u91c7\u7528\u57fa\u4e8eARM7TDMI\u5185\u6838\u7684LPC<\/u>2290\uff0c\u5b83\u62e5\u670916 kB \u7247\u5185\u9759\u6001RAM<\/u>\uff0c32 \u4f4d\u5b9a\u65f6\u5668<\/u>\u30018 \u8def10 \u4f4dADC<\/u>\uff0c\u5e76\u4e14\u62e5\u6709\u591a\u4e2a\u4e32\u884c\u63a5\u53e3\uff0c\u5305\u62ec2\u4e2aUART<\/u>\u3001\u9ad8\u901fI2C<\/u> \u63a5\u53e3\u548c2\u4e2aSPI<\/u>\u63a5\u53e3\uff0c\u901a\u8fc7\u914d\u7f6e\u603b\u7ebf\uff0cLPC2290 \u6700\u591a\u53ef\u63d0\u4f9b76\u4e2aGPIO\u3002\u7531\u4e8eLPC2290\u5185\u7f6e\u4e86\u5bbd\u8303\u56f4\u7684\u4e32\u884c\u901a\u4fe1\u63a5\u53e3\uff0c\u56e0\u6b64\u5728\u901a\u4fe1\u7f51\u5173\u3001\u534f\u8bae\u8f6c\u6362\u5668\uff0c\u8fdc\u7a0b\u76d1\u6d4b\u4ee5\u53ca\u5176\u5b83\u5404\u79cd\u7c7b\u578b\u7684\u5e94\u7528\u4e2d\u975e\u5e38\u9002\u5408\u3002<\/p>\n \n\t\u7f51\u7edc\u901a\u4fe1\u6a21\u5757\u662f\u5b9e\u73b0\u5d4c\u5165\u5f0f\u7cfb\u7edf\u4e0eInternet\u4e92\u8054\u7684\u5173\u952e\uff0c\u672c\u7cfb\u7edf\u91c7\u7528\u7684\u662f\u901a\u7528\u7684\u4ee5\u592a\u7f51\u63a7\u5236\u82af\u7247DM9000E\uff0c\u5b83\u662fMAC\u3001PHY\u3001MMU\u4e09\u5408\u4e00\u7684\u7f51\u7edc\u82af\u7247\uff0c\u7cbe\u5ea6\u9ad8\u3001\u901f\u5ea6\u5feb\uff0c\u5177\u670910M\/100M\u81ea\u9002\u5e94\u300116KB\u5927\u5bb9\u91cfFIFO\u30014\u8def\u591a\u529f\u80fdGPIO\u3001\u6389\u7535\u7279\u6027\u3001\u5168\u53cc\u5de5\u5de5\u4f5c\u7b49\u529f\u80fd\u3002\u7531\u4e8e\u5b83\u62e5\u67093\u79cd\u7b49\u7ea7\u7684\u6389\u7535\u6a21\u5f0f\uff0c\u6240\u4ee5\u662f\u4f5c\u4e3a\u7f51\u7edc\u8bbe\u5907\u7684\u7406\u60f3\u9009\u62e9\uff0c\u5728\u5168\u53cc\u5de5\u6a21\u5f0f\u4e0b\uff0c\u5982\u679c\u8fde\u63a5\u5230\u4e00\u4e2a\u540c\u6837\u662f\u5168\u53cc\u5de5\u7684\u4ea4\u6362\u673a<\/u>\u6216\u96c6\u7ebf\u5668\uff0c\u5219\u53ef\u4ee5\u5b9e\u73b0\u540c\u65f6\u63a5\u6536\u548c\u53d1\u9001\u3002\u901a\u8fc7\u8be5\u82af\u7247\u53ef\u5b9e\u73b0\u5d4c\u5165\u5f0f\u7cfb\u7edf\u4e0eInternet\u7684\u4e92\u8054\u3002<\/p>\n \n\t<\/p>\n \n\t3.1 \u5d4c\u5165\u5f0f\u64cd\u4f5c\u7cfb\u7edf\u7684\u9009\u62e9<\/p>\n \n\t\u5d4c\u5165\u5f0f\u64cd\u4f5c\u7cfb\u7edf\u662f\u6574\u4e2a\u5d4c\u5165\u5f0f\u7cfb\u7edf\u7684\u6838\u5fc3\uff0c\u5b83\u5177\u6709\u5b9e\u65f6\u6027\u5f3a\u3001\u53ef\u9760\u6027\u9ad8\u7b49\u7279\u70b9\uff0c\u5728\u5d4c\u5165\u5f0f\u7cfb\u7edf\u4e2d\u5e94\u7528\u5e7f\u6cdb\u3002\u5546\u7528\u7684\u5d4c\u5165\u5f0f\u5b9e\u65f6\u64cd\u4f5c\u7cfb\u7edf\u6bd4\u5982Vxworks\u3001Nucleaus\u3001QNX\u7b49\u4ef7\u683c\u6bd4\u8f83\u6602\u8d35\uff0c\u4e00\u822c\u4e0d\u9002\u5b9c\u5e7f\u6cdb\u5e94\u7528\u3002μC Linux<\/u>\u662f\u4eceLinux 2.0\/2.4\u5185\u6838\u6d3e\u751f\u800c\u6765\uff3b2\uff3d\uff0c\u9002\u7528\u4e8e\u6ca1\u6709\u865a\u62df\u5185\u5b58\u6216\u5185\u5b58\u7ba1\u7406\u5355\u5143\uff08MMU\uff09\u7684\u5904\u7406\u5668\uff0c\u5b83\u5728\u6807\u51c6\u7684Linux\u57fa\u7840\u4e0a\u8fdb\u884c\u4e86\u9002\u5f53\u7684\u88c1\u526a\u548c\u4f18\u5316\uff0c\u4f53\u79ef\u5f88\u5c0f\uff0c\u800c\u4e14\u4fdd\u7559\u4e86Linux\u7684\u5927\u591a\u6570\u7684\u4f18\u70b9\uff1a\u7a33\u5b9a\u3001\u826f\u597d\u7684\u79fb\u690d\u6027\u3001\u4f18\u79c0\u7684\u7f51\u7edc\u529f\u80fd\uff0c\u5e76\u5185\u5d4c\u4e86TCP\/ IP \u534f\u8bae\u3002\u8003\u8651\u5230\u5d4c\u5165\u5f0fμ\uff23Linux\u7684\u4ee5\u4e0a\u4f18\u70b9\uff0c\u672c\u7cfb\u7edf\u9009\u62e9\u91c7\u7528\u5d4c\u5165\u5f0fμ\uff23Linux\u4f5c\u4e3a\u5d4c\u5165\u5f0f\u7684\u5b9e\u65f6\u64cd\u4f5c\u7cfb\u7edf\u3002<\/p>\n \n\t3.2 Web\u670d\u52a1\u5668\u7684\u5b9e\u73b0<\/p>\n \n\t\u5728\u7535\u7f51\u8fdc\u7a0b\u76d1\u6d4b\u7cfb\u7edf\u4e2d\uff0c\u5d4c\u5165\u5f0fWeb\u670d\u52a1\u5668\u6280\u672f\u5c06\u6709\u6548\u964d\u4f4e\u7cfb\u7edf\u8fd0\u884c\u7ef4\u62a4\u8d39\u7528\uff0c\u63d0\u9ad8\u7cfb\u7edf\u7ba1\u7406\u6c34\u5e73 \uff3b3\uff3d\u3002\u672c\u7cfb\u7edf\u5c06\u5d4c\u5165\u5f0fWeb\u670d\u52a1\u5668\u4ee5\u53caB\/S\u7ed3\u6784\u6a21\u578b\u76f8\u7ed3\u5408\u3002\u5176\u4e2dB\/S\u7ed3\u6784\u4e2d\u6700\u5e95\u5c42\u4e3a\u6570\u636e\u5c42\uff0c\u8d1f\u8d23\u4ece\u91c7\u96c6\u7535\u7f51\u6570\u636e\uff1b\u4e2d\u95f4\u5c42\u4e3a\u4fe1\u606f\u5904\u7406\u7cfb\u7edf\uff0c\u8d1f\u8d23\u5c06\u7535\u7f51\u4e2d\u7684\u5b9e\u65f6\u53c2\u6570\u5199\u5165\u6302\u63a5\u5728\u8fd9\u4e00\u5c42\u7684Web\u670d\u52a1\u5668\u4e2d\uff0c\u7136\u540e\u5bf9\u6570\u636e\u8fdb\u884c\u7edf\u8ba1\u3001\u5206\u6790\u7b49\u5904\u7406\uff0c\u6700\u540e\u5c06\u5904\u7406\u8fc7\u7684\u6570\u636e\u5b9e\u65f6\u7684\u4ee5\u7f51\u9875\u7684\u5f62\u5f0f\u53d1\u9001\u5230\u7b2c\u4e09\u5c42\u5ba2\u6237\u7aef\uff0c\u5ba2\u6237\u7aef\u53ef\u4ee5\u901a\u8fc7\u6d4f\u89c8\u5668\u76f4\u63a5\u76d1\u6d4b\u7535\u7f51\u8fd0\u884c\u53c2\u6570\uff0c\u5b9e\u73b0\u4e86\u7535\u7f51\u8fdc\u7a0b\u76d1\u6d4b\u7cfb\u7edf\u3002<\/p>\n \n\t\u5d4c\u5165\u5f0fWeb\u670d\u52a1\u5668\uff08Embedded Web Server\uff0c\u7b80\u79f0EWS\uff09\u662f\u5b9e\u73b0\u7535\u7f51\u8fdc\u7a0b\u76d1\u6d4b\u7684\u91cd\u8981\u7ec4\u6210\u90e8\u5206\u548c\u5173\u952e\u6280\u672f\uff0c\u5229\u7528\u5d4c\u5165\u5f0fWeb\u670d\u52a1\u5668\u53ef\u5bf9\u7535\u7f51\u8fdb\u884c\u76d1\u6d4b\u548c\u5b9e\u65f6\u53c2\u6570\u7684\u4f20\u8f93\uff3b4\uff3d\u3002\u5d4c\u5165\u5f0fweb\u670d\u52a1\u5668\u901a\u8fc7CGI\u63a5\u53e3\u6216\u5176\u4ed6\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5728HTML\u6587\u4ef6\u6216\u8868\u5355\u4e2d\u8fd0\u884c\u4ee3\u7801\uff0c\u4f9bRAM\u8bfb\/\u5199\u6570\u636e\u3002\u5728μ\uff23Linux\u4e0b\uff0c\u672c\u7cfb\u7edf\u9009\u62e9\u4f7f\u7528\u4e00\u4e2a\u652f\u6301CGI\u7684\u3001\u975e\u5e38\u9002\u5408\u4e8e\u5d4c\u5165\u5f0f\u7cfb\u7edf\u7684Boa Web Server\u3002\u5728Boa Web Server\u4f7f\u7528\u65f6\u9700\u8981\u5bf9\u4e0eBoa\u76f8\u5173\u7684\u6587\u4ef6\u505a\u4e00\u4e9b\u914d\u7f6e\u548c\u4fee\u6539\uff1a<\/p>\n \n\t1\uff09 \u5efa\u7acb\u5b58\u653e\u76ee\u5f55<\/p>\n \n\t\u7531\u4e8eμClinux\u9ed8\u8ba4\u7684\u6839\u6587\u4ef6\u7cfb\u7edfrom<\/u>fs\u662f\u53ea\u8bfb\u7684\uff0c\u4e0d\u80fd\u7528mkdir\u7b49\u547d\u4ee4\u6765\u65b0\u5efa\u76ee\u5f55\uff0c\u6545\u5e94\u5728\u7f16\u8bd1\u5185\u6838\u524d\u5148\u5efa\u597d\u8981\u7528\u5230\u7684\u76ee\u5f55\uff0c\u8fd9\u901a\u8fc7\u4fee\u6539\u3002\u3002\/μClinux-dist\/vendors<\/u>\/Philips\/LPC2200\/Makefile\u6587\u4ef6\u6765\u5b9e\u73b0\u3002\u5728ROMFS_DIRS=bin dev etc home lib mnt proc usr var\u7684\u540e\u8fb9\u589e\u52a0home\/cgi-bin\uff0c\u8fd9\u6837\u4fee\u6539\u540e\u7f16\u8bd1\u5185\u6838\uff0c\u7f16\u8bd1\u597d\u7684\u6839\u6587\u4ef6\u7cfb\u7edfromfs\u4e2d\u5c31\u5305\u542b\u8fd9\u4e9b\u76ee\u5f55\u4e86\u3002<\/p>\n \n\t2\uff09 \u6307\u5b9aWeb\u670d\u52a1\u5668\u7684\u6839\u76ee\u5f55\u8def\u5f84\u3002<\/p>\n \n\t\u8fdb\u5165\u3002\u3002\/μClinux-dist\/user\/boa\/src\/\u76ee\u5f55\uff0c\u901a\u8fc7\u4fee\u6539defines.h\u6587\u4ef6\u4e2d#define SERVER ROOT “\/home\/”\u8bed\u53e5\u6765\u6307\u5b9aSERVER ROOT\u3002<\/p>\n \n\t3\uff09 \u4fee\u6539boa.conf\u6587\u4ef6\u3002\u4fee\u6539\u3002\u3002\/μClinux-dist\/user\/boa\/examples\/boa.conf\u4e3b\u8981\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n \n\tPart 80<\/p>\n \n\tUser 0<\/p>\n \n\tGroup 0<\/p>\n \n\tServerName μClinux<\/p>\n \n\tDocumentRoot \/home\/ \/*\u8bbe\u5b9a\u5b58\u653e\u8def\u5f84*\/<\/p>\n \n\tDirectoryindex index.html<\/p>\n \n\tMimeType \/home\/mime.types<\/p>\n \n\tScriptAlias \/cgi-bin\/ \/home\/cgi-bin\/<\/p>\n \n\tAddType text\/plai<\/u>n.txt \/*\u53ef\u652f\u6301\u7684\u6587\u4ef6\u7c7b\u578b*\/<\/p>\n \n\tAddType image\/gif.gif<\/p>\n \n\tAddType text\/html.html<\/p>\n \n\tAddType text\/html.htm<\/p>\n \n\tAddType image\/jpeg.jpeg<\/p>\n \n\t\u8fd9\u6837\u6307\u5b9a\u540e\uff0cindex.html\u4e3a\u8fdc\u7a0b\u6d4f\u89c8\u5ba2\u6237\u8bbf\u95eeWeb Server\u6240\u770b\u5230\u7684\u9996\u9875\u9ed8\u8ba4\u503c\u3002\u628aC\u7f16\u5199\u7684CGI\u7a0b\u5e8f\u7f16\u8bd1\u6210\u4e8c\u8fdb\u5236\u6587\u4ef6\uff0c\u5b58\u653e\u5230\u3002\u3002 \/home\/cgi-bin\/\u76ee\u5f55\u4e0b\u3002Boa.conf\u548cmime.types\u6587\u4ef6\u5fc5\u987b\u653e\u5230Web\u670d\u52a1\u5668\u6839\u76ee\u5f55\u4e0b\uff0c\u4e5f\u5c31\u662f\u628abao.conf\u548cmime.types\u590d\u5236\u5230“\u3002\u3002\/μClinux-dist\/romfs\/home\/”\u76ee\u5f55\u4e0b\u3002\u7136\u540e\u5728\u3002\u3002\/μClinux-dist\/Vendors\/Philip\/LPC2200\/inittab\u91cc\u4fee\u6539\uff0c\u5728“inet:unknown:\/bin\/inetd”\u540e\u52a0“boa:unknown\uff1a \/bin\/boa \/home\/”\u3002<\/p>\n \n\t\u914d\u7f6e\u5b8c\u6210\u540e\uff0c\u91cd\u65b0\u7f16\u8bd1\u5185\u6838\u3002\u628a\u7f16\u8bd1\u597d\u7684\u5185\u6838\u4e0b\u8f7d\u5230ARM\u786c\u4ef6\u5e73\u53f0\uff0c\u542f\u52a8μClinux\u64cd\u4f5c\u7cfb\u7edf\uff0c\u5b8c\u6210IP\u914d\u7f6e\uff0c\u8fd0\u884cBoa Web Server\uff0c\u7136\u540e\u5c31\u53ef\u4ee5\u901a\u8fc7\u6d4f\u89c8\u5668\u8bbf\u95ee\u7f51\u9875\u4e86\u3002<\/p>\n \n\t3.3 \u7528\u6237\u4e0e\u4e3b\u673a\u95f4\u5b89\u5168\u4ea4\u4e92\u7684\u5b9e\u73b0<\/p>\n \n\t\u4e3a\u4e86\u5728μCLinux\u7cfb\u7edf\u4e2d\u5b9e\u73b0\u7f51\u9875\u7684\u5b9e\u65f6\u5237\u65b0\uff0c\u5f97\u5230\u5b9e\u65f6\u7535\u7f51\u53c2\u6570\uff0c\u5b9e\u73b0\u5ba2\u6237\u7aef\u4e0e\u7535\u7f51\u76d1\u6d4b\u7cfb\u7edf\u4e4b\u95f4\u7684\u4ea4\u4e92\uff0c\u672c\u7cfb\u7edf\u91c7\u7528\u4e86CGI\u7684\u65b9\u6cd5\u3002\u5f53\u5ba2\u6237\u7aef\u91c7\u7528FORM POST\u5f62\u5f0f\u5411Boa\u670d\u52a1\u5668\u53d1\u51faCGI\u8bf7\u6c42\u65f6\uff0c\u670d\u52a1\u5668\u5b88\u62a4\u8fdb\u7a0b\u542f\u52a8\u76f8\u5e94\u7684CGI\u7a0b\u5e8f\uff0cCGI\u7a0b\u5e8f\u901a\u8fc7CONTENT—LENGTH\u83b7\u53d6\u5ba2\u6237\u7aef\u4f20\u8f93\u6570\u636e\u7684\u5b57\u8282\u6570\uff0c\u901a\u8fc7STDIN\u8bfb\u53d6\u5ba2\u6237\u7aef\u4f20\u8f93\u6570\u636e\uff0c\u8fd9\u4e9b\u6570\u636e\u4e00\u822c\u662f\u5ba2\u6237\u7aef\u5728\u8868\u5355\u4e2d\u8f93\u5165\u7684\u7b80\u5355\u7684\u76d1\u63a7\u4fe1\u606f\u3002CGI\u83b7\u53d6\u8fd9\u4e9b\u4fe1\u606f\u540e\u901a\u8fc7\u4e32\u884c\u901a\u4fe1\u5c06\u8fd9\u4e9b\u4fe1\u606f\u53d1\u9001\u5230\u7535\u7f51\u76d1\u6d4b\u7cfb\u7edf\u4e2d\uff0c\u7b49\u5f85\u76d1\u6d4b\u7cfb\u7edf\u6a21\u5757\u7684\u5e94\u7b54\u6d88\u606f\uff0c\u6700\u540e\u751f\u6210\u7f51\u9875\u6587\u4ef6\uff0c\u5e76\u4e14\u5c06\u8fd4\u56de\u7ed3\u679c\u5d4c\u5165\u5230\u7f51\u9875\u6587\u4ef6\u4e2d\uff0c\u901a\u8fc7cgi—send—string\u51fd\u6570\u5c06\u6b64\u7f51\u9875\u53d1\u9001\u7ed9\u5ba2\u6237\u7aef\u6d4f\u89c8\u5668\u3002\u4e00\u6bb5\u65f6\u95f4\u540e\u5ba2\u6237\u7aef\u6d4f\u89c8\u5668\u4f1a\u518d\u6b21\u5411\u670d\u52a1\u5668\u53d1\u9001\u4e00\u4e2aCGI\u8bf7\u6c42\uff0c\u76f8\u5e94\u7684CGI\u51fd\u6570\u4f1a\u67e5\u8be2\u6700\u65b0\u7684\u6570\u636e\uff0c\u5237\u65b0\u540e\u5c06\u65b0\u6570\u636e\u53d1\u9001\u7ed9\u5ba2\u6237\u7aef\u6d4f\u89c8\u5668\u3002\u8fd9\u6837\u5468\u800c\u590d\u59cb\uff0c\u5b9e\u73b0\u4e86\u7f51\u9875\u7684\u5237\u65b0\u529f\u80fd\uff0c\u4ece\u800c\u4fdd\u8bc1\u4e86\u8fdc\u7a0b\u76d1\u6d4b\u6570\u636e\u7684\u5b9e\u65f6\u6027\uff0c\u5b9e\u73b0\u5ba2\u6237\u7aef\u4e0e\u7535\u7f51\u76d1\u6d4b\u7cfb\u7edf\u4e4b\u95f4\u7684\u4ea4\u4e92\u3002\u5ba2\u6237\u7aef\u901a\u8fc7CGI\u63a5\u53e3\u4e0e\u7535\u7f51\u76d1\u6d4b\u7cfb\u7edf\u4e4b\u95f4\u4ea4\u4e92\u7684\u5173\u7cfb\u5982\u56fe3\u6240\u793a\uff3b5\uff3d\u3002<\/p>\n \n\t<\/p>\n","protected":false},"excerpt":{"rendered":" \u5f15\u8a00 \u793e\u4f1a\u7684\u4e0d\u65ad\u8fdb\u6b65\u548c\u79d1\u5b66\u6280\u672f\u7684\u98de\u901f\u53d1\u5c55\uff0c\u4e3a\u7535\u529b\u7cfb\u7edf\u7684\u53d1\u5c55\u548c\u8fdb\u6b65\u63d0\u4f9b\u4e86\u5e7f\u9614\u7684\u7a7a\u95f4\u548c\u65b0\u7684\u6280\u672f\u624b\u6bb5\uff0c\u5bf9\u4e8e\u7535\u7f51\u7684\u76d1\u6d4b\u4e5f\u63d0\u51fa\u4e86\u65b0\u7684\u6311\u6218\u3002\u4ee5\u5f80\u7684\u7535\u7f51\u76d1\u6d4b\u88c5\u7f6e\u666e\u904d\u662f\u57fa\u4e8e \u5355\u7247\u673a<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[],"_links":{"self":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/2256"}],"collection":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2256"}],"version-history":[{"count":0,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/2256\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2256"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2256"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2256"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}