{"id":247832,"date":"2022-07-27T09:34:25","date_gmt":"2022-07-27T01:34:25","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=247832"},"modified":"2022-07-22T10:39:02","modified_gmt":"2022-07-22T02:39:02","slug":"linux-tftp","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/linux-tftp.html","title":{"rendered":"\u5982\u4f55\u5728 Linux \u4e0a\u8bbe\u7f6e\u53e4\u8001\u53c8\u7b80\u5355\u7684 TFTP \u670d\u52a1\u5668"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | \u60a8\u77e5\u9053\u6d41\u884c\u7684\u6587\u4ef6\u4f20\u8f93\u534f\u8bae\u6709\u4e00\u4e2a\u66f4\u7b80\u5355\u7684\u66ff\u4ee3\u65b9\u6848\u5417\uff1f\u5b83\u5c31\u662f TFTP\uff0c\u4ee5\u4e0b\u662f\u5728 Linux \u4e0a\u8bbe\u7f6e\u5b83\u7684\u65b9\u6cd5\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n TFTP\uff08Trivial File Transfer Protocol\uff0c\u7b80\u5355\u6587\u4ef6\u4f20\u8f93\u534f\u8bae\uff09\u4e8e 1980 \u5e74\u9996\u6b21\u88ab\u5b9a\u4e49\u3002\u5b83\u662f\u4e00\u4e2a\u76f8\u5f53\u53e4\u8001\u7684\u534f\u8bae\uff0c\u4e8e 1981 \u5e74 6 \u6708\u7531 Karen R. Sollins \u5728 RFC 783\uff08\u5f81\u6c42\u610f\u89c1\uff09\u4e2d\u4f5c\u4e3a TFTP \u534f\u8bae\u4fee\u8ba2\u7248 2 \u53d1\u5e03\u3002<\/p>\n \u65e9\u671f\uff0cTFTP \u7684\u4e3b\u8981\u76ee\u6807\u662f\u901a\u8fc7\u7f51\u7edc\u53d1\u9001\u548c\u63a5\u6536\u6587\u4ef6\u3002\u7279\u522b\u662f\uff0c\u5b83\u7528\u4e8e\u4f20\u8f93\u5f15\u5bfc\u671f\u95f4\u6240\u9700\u7684\u6587\u4ef6\uff0c\u4ee5\u4f7f\u7cfb\u7edf\u80fd\u591f\u901a\u8fc7\u7f51\u7edc\u5f15\u5bfc\u3002<\/p>\n \u4e0b\u9762\u4ecb\u7ecd\u5982\u4f55\u5728 Linux \u673a\u5668\u4e0a\u8bbe\u7f6e TFTP \u670d\u52a1\u5668\u3002<\/p>\n \u4ec0\u4e48\u662f TFTP\uff1f<\/strong><\/div>\n TFTP \u4ecd\u7528\u4e8e\u6587\u4ef6\u4f20\u8f93\u76ee\u7684\uff0c\u5b83\u652f\u6301\u7684\u529f\u80fd\u6ca1\u6709\u6839\u672c\u53d8\u5316\u3002TFTP \u7528\u4e8e\u901a\u8fc7 UDP\/IP \u4e0b\u8f7d\u548c\u53d1\u9001\u6587\u4ef6\u3002\u5b83\u6ca1\u6709\u5176\u4ed6\u6587\u4ef6\u4f20\u8f93\u534f\u8bae\u4e2d\u5e38\u89c1\u7684\u8eab\u4efd\u548c\u6388\u6743\u63a7\u5236\u3001\u6587\u4ef6\u5217\u8868\u3001\u5220\u9664\u6216\u91cd\u547d\u540d\u7b49\u9644\u52a0\u529f\u80fd\u3002<\/p>\n \u4e0e\u5728\u4f20\u8f93\u5c42\u4f7f\u7528 TCP \u7684\u9ad8\u7ea7\u6587\u4ef6\u4f20\u8f93\u534f\u8bae\u4e0d\u540c\uff0c\u5b83\u5de5\u4f5c\u5728 UDP \u534f\u8bae\u4e0a\uff0c\u4e0d\u5177\u6709\u68c0\u67e5\u5c5e\u4e8e\u6587\u4ef6\u7684\u6570\u636e\u5305\u662f\u5426\u4f1a\u53d1\u9001\u5230\u53e6\u4e00\u7aef\u7b49\u529f\u80fd\u3002\u7531\u4e8e\u8fd9\u4e2a\u9650\u5236\uff0c\u5b83\u66f4\u9002\u5408\u5728\u5c40\u57df\u7f51\u4e2d\u4f7f\u7528\uff0c\u800c\u4e0d\u662f\u5728\u4e92\u8054\u7f51\u6216\u5e7f\u57df\u7f51\u4e2d\u4f7f\u7528\u3002<\/p>\n \u5c3d\u7ba1\u4e0a\u9762\u5217\u51fa\u4e86\u6240\u6709\u8fd9\u4e9b\u770b\u4f3c\u4e0d\u5229\u7684\u7279\u6027\uff0c\u4f46 TFTP \u534f\u8bae\u975e\u5e38\u5f3a\u5927\u7684\u4e00\u4e2a\u65b9\u9762\u662f\u5b83\u7684\u7b80\u5355\u6027\u3002\u4e0e\u5176\u66ff\u4ee3\u65b9\u6848\u76f8\u6bd4\uff0c\u8be5\u534f\u8bae\u7684\u5b9e\u73b0\u975e\u5e38\u5bb9\u6613\uff0c\u5373\u4f7f\u5bf9\u4e8e\u6ca1\u6709\u64cd\u4f5c\u7cfb\u7edf\u7684\u73af\u5883\u4e5f\u662f\u5982\u6b64\u3002\u7531\u4e8e\u8fd9\u4e2a\u7279\u6027\uff0c\u5b83\u5728\u5d4c\u5165\u5f0f\u7cfb\u7edf\u4e2d\u6709\u5e7f\u6cdb\u7684\u4f7f\u7528\u9886\u57df\u3002<\/p>\n \u5728 Linux \u4e0a\u5b89\u88c5 TFTP \u670d\u52a1\u5668<\/strong><\/div>\n \u4f7f\u7528\u5d4c\u5165\u5f0f\u8bbe\u5907\u65f6\uff0c\u5b89\u88c5 TFTP \u670d\u52a1\u5668\u670d\u52a1\u5f88\u91cd\u8981\u3002\u5728 Linux \u7cfb\u7edf\u4e0a\uff0c\u53ef\u4ee5\u8fd0\u884c\u591a\u4e2a TFTP \u670d\u52a1\u5668\u5b9e\u73b0\u3002\u5982\u679c\u60a8\u4f7f\u7528\u7684\u662f\u57fa\u4e8e Debian \u7684\u53d1\u884c\u7248\uff0c\u60a8\u53ef\u4ee5\u5b89\u88c5tftpd-hpa\u3001tftpd\u6216atftpd\u8f6f\u4ef6\u5305\u3002\u5982\u679c\u60a8\u4e0d\u786e\u5b9a\u9009\u62e9\u54ea\u4e00\u4e2a\uff0c\u8bf7\u8003\u8651\u5b89\u88c5 tftpd-hpa \u8f6f\u4ef6\u5305\u3002<\/p>\n \r\n\u250c\u2500\u2500(linuxmi\u327flinuxmi)-[~\/linuxmi.com]\r\n\u2514\u2500$ sudo apt-get install tftpd-hpa\r\n<\/pre>\n |