﻿{"id":14808,"date":"2022-04-09T08:25:28","date_gmt":"2022-04-09T00:25:28","guid":{"rendered":"https:\/\/www.linuxmi.com\/?p=14808"},"modified":"2022-04-08T10:20:07","modified_gmt":"2022-04-08T02:20:07","slug":"linux-woof","status":"publish","type":"post","link":"https:\/\/www.linuxmi.com\/linux-woof.html","title":{"rendered":"Linux \u4e0b\u5982\u4f55\u5728\u5c40\u57df\u7f51\u4e2d\u5feb\u901f\u4ea4\u6362\u6587\u4ef6"},"content":{"rendered":"<p>Woof\uff08Web Offer One File\u7684\u7f29\u5199\uff09\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u7528\u4e8e\u5728\u5c0f\u578b\u672c\u5730\u7f51\u7edc\u4e0a\u7684\u4e3b\u673a\u4e4b\u95f4\u5171\u4eab\u6587\u4ef6\u3002\u5b83\u7531\u4e00\u4e2a\u8ff7\u4f60\u7684HTTP\u670d\u52a1\u5668\u7ec4\u6210\uff0c\u53ef\u4ee5\u4e3a\u6307\u5b9a\u7684\u6587\u4ef6\u63d0\u4f9b\u6307\u5b9a\u7684\u6b21\u6570\uff08\u9ed8\u8ba4\u4e3a\u4e00\u6b21\uff09\uff0c\u7136\u540e\u7ec8\u6b62\u3002<\/p>\n<p>\u8981\u4f7f\u7528 woof\uff0c\u53ea\u9700\u5728\u5355\u4e2a\u6587\u4ef6\u4e0a\u8c03\u7528\u5b83\uff0c\u6536\u4ef6\u4eba\u5c31\u53ef\u4ee5\u901a\u8fc7 Web \u6d4f\u89c8\u5668\u6216\u4f7f\u7528\u547d\u4ee4\u884c Web \u5ba2\u6237\u7aef\u8bbf\u95ee\u60a8\u7684\u5171\u4eab\u6587\u4ef6\uff0c\u4f8b\u5982\u6765\u81ea\u7ec8\u7aef\u7684cURL\uff0cHTTPie\uff0cwget \u6216kurly\uff08cURL\u66ff\u4ee3\uff09 \u3002<\/p>\n<p>\u4e0e\u5176\u4ed6\u6587\u4ef6\u5171\u4eab\u5de5\u5177\u76f8\u6bd4\uff0cwoof \u7684\u4e00\u4e2a\u4f18\u70b9\u662f\uff0c\u5982\u679c\u6536\u4ef6\u4eba\u5b89\u88c5\u4e86 Web \u6d4f\u89c8\u5668\uff0c\u5b83\u5c31\u53ef\u4ee5\u5728\u4e0d\u540c\u7684\u64cd\u4f5c\u7cfb\u7edf\u6216\u4e0d\u540c\u7684\u8bbe\u5907\uff08\u8ba1\u7b97\u673a\uff0c\u667a\u80fd\u624b\u673a\uff0c\u5e73\u677f\u7535\u8111\u7b49\uff09\u4e4b\u95f4\u4ea4\u6362\u6587\u4ef6\u3002<\/p>\n<p>\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u5c55\u793a\u5982\u4f55\u5728Linux\u4e2d\u5b89\u88c5woof\u5e76\u4f7f\u7528\u5b83\u5728\u672c\u5730\u7f51\u7edc\u4e0a\u4ea4\u6362\u6587\u4ef6\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Linux\u4e2d\u5b89\u88c5\u548c\u4f7f\u7528Woof<\/strong><\/p>\n<p>\u60a8\u53ef\u4ee5\u4f7f\u7528wget\u547d\u4ee4\u4e0b\u8f7dwoof\u811a\u672c\uff0c\u5e76\u5c06\u5176\u79fb\u52a8\u5230\/usr\/bin\u76ee\u5f55\uff0c\u5982\u4e0b\u6240\u793a\u3002<\/p>\n<pre class=\"pure-highlightjs\"><code class=\"null\">linuxmi@linuxmi \/home\/linuxmi\/www.linuxmi.com                                   \r\n\u26a1 <span style=\"color: #ff0000;\">wget http:\/\/www.home.unix-ag.org\/simon\/woof<\/span>\r\n--2022-04-07 21:51:34--  http:\/\/www.home.unix-ag.org\/simon\/woof\r\n\u6b63\u5728\u89e3\u6790\u4e3b\u673a www.home.unix-ag.org (www.home.unix-ag.org)... 141.99.42.20\r\n\u6b63\u5728\u8fde\u63a5 www.home.unix-ag.org (www.home.unix-ag.org)|141.99.42.20|:80... \u5df2\u8fde\u63a5\u3002\r\n\u5df2\u53d1\u51fa HTTP \u8bf7\u6c42\uff0c\u6b63\u5728\u7b49\u5f85\u56de\u5e94... 200 OK\r\n\u957f\u5ea6\uff1a 20420 (20K)\r\n\u6b63\u5728\u4fdd\u5b58\u81f3: \u201cwoof\u201d\r\n\r\nwoof                100%[===================&gt;]  19.94K  42.3KB\/s    \u7528\u65f6 0.5s  \r\n\r\n2022-04-07 21:51:35 (42.3 KB\/s) - \u5df2\u4fdd\u5b58 \u201cwoof\u201d [20420\/20420])<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-14811 aligncenter\" src=\"https:\/\/www.linuxmi.com\/wp-content\/uploads\/2022\/04\/woof-1.png\" alt=\"\" width=\"928\" height=\"465\" \/><\/p>\n<p>\u590d\u5236\u5230\u5982\u4e0b\u76ee\u5f55<\/p>\n<pre class=\"pure-highlightjs\"><code class=\"null\">linuxmi@linuxmi \/home\/linuxmi\/www.linuxmi.com                                   \r\n\u26a1 sudo cp woof \/usr\/bin\/<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-14812 aligncenter\" src=\"https:\/\/www.linuxmi.com\/wp-content\/uploads\/2022\/04\/woof-2.png\" alt=\"\" width=\"928\" height=\"245\" \/><\/p>\n<p>\u8d4b\u4e88\u6743\u9650<\/p>\n<pre class=\"pure-highlightjs\"><code class=\"null\">linuxmi@linuxmi \/home\/linuxmi\/www.linuxmi.com                                   \r\n\u26a1 sudo chmod 777 \/usr\/bin\/woof <\/code><\/pre>\n<p>\u8981\u4ea4\u6362\u6587\u4ef6\uff0c\u8bf7\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\uff0c\u5982\u4e0b\u56fe\u6240\u793a\u3002<\/p>\n<pre class=\"pure-highlightjs\"><code class=\"null\">linuxmi@linuxmi \/home\/linuxmi\/www.linuxmi.com                                   \r\n\u26a1 woof linuxmi.com.png\r\nNow serving on http:\/\/192.168.174.170:8080\/linuxmi.com.png<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-14813 aligncenter\" src=\"https:\/\/www.linuxmi.com\/wp-content\/uploads\/2022\/04\/woof-3.png\" alt=\"\" width=\"928\" height=\"245\" \/><\/p>\n<p>\u7136\u540e\uff0cwoof\u5c06\u751f\u6210\u4e00\u4e2aURL\uff08\u5728\u672c\u6587\u7684\u4f8b\u5b50\u4e2d\u4e0b\u4e3ahttp:\/\/192.168.174.170:8080\/\uff09\uff0c\u4f60\u7684\u5c0f\u4f19\u4f34\u53ef\u4ee5\u4f7f\u7528\u8be5URL\u8bbf\u95ee\u8be5\u6587\u4ef6\u3002<\/p>\n<p>\u5c06URL\u53d1\u9001\u7ed9\u6536\u4ef6\u4eba\u3002\u4e00\u65e6\u6536\u4ef6\u4eba\u8bbf\u95ee\u8be5\u6587\u4ef6\u3002\u53ef\u4ee5\u4f7f\u7528\u6d4f\u89c8\u5668\u6216\u8005 wget \u547d\u4ee4\u4e0b\u8f7d\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-14814 aligncenter\" src=\"https:\/\/www.linuxmi.com\/wp-content\/uploads\/2022\/04\/woof-4.png\" alt=\"\" width=\"916\" height=\"392\" \/><\/p>\n<p>woof\u5c06\u5173\u95ed\uff08\u53c2\u89c1\u4e0b\u9762\u7684\u5c4f\u5e55\u622a\u56fe\uff09\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-14815 aligncenter\" src=\"https:\/\/www.linuxmi.com\/wp-content\/uploads\/2022\/04\/woof-5.png\" alt=\"\" width=\"928\" height=\"245\" \/><\/p>\n<p>\u901a\u8fc7Woof\u5171\u4eab\u8bbf\u95ee\u6587\u4ef6<\/p>\n<p>\u6ce8\u610f\uff1a\u5728\u4e0a\u9762\u7684\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528 wget \u547d\u4ee4\u884c\u4e0b\u8f7d\u7a0b\u5e8f\u6765\u83b7\u53d6\u5171\u4eab\u6587\u4ef6\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-14816 aligncenter\" src=\"https:\/\/www.linuxmi.com\/wp-content\/uploads\/2022\/04\/woof-6.png\" alt=\"\" width=\"928\" height=\"421\" \/><\/p>\n<p>\u6216\u8005\u5982\u4e0b<\/p>\n<p>\u6307\u5b9a\u81ea\u5b9a\u4e49\u540d\u79f0\uff0c\u8bf7\u4f7f\u7528-O\u9009\u9879\u3002<\/p>\n<pre class=\"pure-highlightjs\"><code class=\"null\">wget -O zidingyi http:\/\/192.168.174.170:8080<\/code><\/pre>\n<p>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0cwoof\u5171\u4eab\u6587\u4ef6\u4e00\u6b21\uff0c\u5728\u6536\u4ef6\u4eba\u4e0b\u8f7d\u540e\uff0cwoof\u7ec8\u6b62\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528 -c \u9009\u9879\u8bbe \u7f6ewoof \u5728\u5173\u95ed\u4e4b\u524d\u5171\u4eab\u6587\u4ef6\u7684\u65f6\u95f4\u3002<\/p>\n<p><strong>\u4ee5\u4e0b\u547d\u4ee4\u5c06\u5728\u4e09\u6b21\u4e0b\u8f7d\u540e\u7ec8\u6b62woof\u3002<\/strong><\/p>\n<pre class=\"pure-highlightjs\"><code class=\"null\">linuxmi@linuxmi \/home\/linuxmi\/www.linuxmi.com                                   \r\n\u26a1 woof -c 3 linuxmi.com.png\r\n<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-14818 aligncenter\" src=\"https:\/\/www.linuxmi.com\/wp-content\/uploads\/2022\/04\/woof-7.png\" alt=\"\" width=\"928\" height=\"311\" \/><\/p>\n<p>\u8981\u5171\u4eab\u76ee\u5f55\uff0c\u60a8\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u5305\u5e76\u4f7f\u7528\uff08-z \u7528\u4e8egzip\u538b\u7f29\uff0c\u6216 -j \u7528\u4e8e bzip2 \u538b\u7f29\uff0c\u6216 -Z \u7528\u4e8e ZIP \u538b\u7f29\uff09\u538b\u7f29\u5b83\u3002\u4f8b\u5982\uff1a<\/p>\n<pre class=\"pure-highlightjs\"><code class=\"null\">linuxmi@linuxmi \/home\/linuxmi\/www.linuxmi.com                                   \r\n\u26a1 woof -c 2 -z linuxmi.com <\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-14820 aligncenter\" src=\"https:\/\/www.linuxmi.com\/wp-content\/uploads\/2022\/04\/woof-9.png\" alt=\"\" width=\"928\" height=\"245\" \/><\/p>\n<p>\u67e5\u770b\u4e0b\u8f7d\u6587\u4ef6\u540d\uff0c\u5b83\u5e94\u8be5\u662f Gzip \u5b58\u6863\uff0c\u5982\u4e0b\u9762\u7684\u5c4f\u5e55\u622a\u56fe\u6240\u793a\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-14821 aligncenter\" src=\"https:\/\/www.linuxmi.com\/wp-content\/uploads\/2022\/04\/woof-10.png\" alt=\"\" width=\"928\" height=\"443\" \/><\/p>\n<p style=\"text-align: center;\">\u4e0b\u8f7d\u538b\u7f29\u7684Tar\u5b58\u6863\u6587\u4ef6<\/p>\n<p>\u6b64\u5916\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528-U\u6807\u5fd7\u544a\u8bc9woof\u63d0\u4f9b\u4e0a\u4f20\u8868\u5355\uff0c\u5141\u8bb8\u6587\u4ef6\u4e0a\u4f20\u3002\u8be5\u6587\u4ef6\u5c06\u4e0a\u4f20\u5230\u53d1\u8d77woof\u7684\u5f53\u524d\u76ee\u5f55\uff1a<\/p>\n<pre class=\"pure-highlightjs\"><code class=\"null\">linuxmi@linuxmi \/home\/linuxmi\/www.linuxmi.com                                   \r\n\u26a1 woof -U<\/code><\/pre>\n<p>\u7136\u540e\uff0c\u60a8\u7684\u5c0f\u4f19\u4f34\u53ef\u4ee5\u4f7f\u7528\u751f\u6210\u7684URL\u4ece\u6d4f\u89c8\u5668\u8bbf\u95ee\u4e0a\u4f20\u8868\u5355\uff0c\u5982\u56fe\u6240\u793a\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-14822 aligncenter\" src=\"https:\/\/www.linuxmi.com\/wp-content\/uploads\/2022\/04\/woof-11.png\" alt=\"\" width=\"915\" height=\"539\" \/><\/p>\n<p style=\"text-align: center;\">Woof\u6587\u4ef6\u4e0a\u4f20\u8868\u5355<\/p>\n<p>\u6d4f\u89c8\u5e76\u9009\u62e9\u6587\u4ef6\u540e\uff0c\u5355\u51fb\u201cUplaod!\u201d\u6309\u94ae\u4e0a\u4f20\u6587\u4ef6\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-14823 aligncenter\" src=\"https:\/\/www.linuxmi.com\/wp-content\/uploads\/2022\/04\/woof-12.png\" alt=\"\" width=\"921\" height=\"587\" \/><\/p>\n<p style=\"text-align: center;\">Woof\u6587\u4ef6\u4e0a\u4f20\u5b8c\u6210<\/p>\n<p>\u60a8\u53ef\u4ee5\u9a8c\u8bc1\u8be5\u6587\u4ef6\u5e94\u8be5\u4e0a\u4f20\u5230\u8c03\u7528woof\u7684\u540c\u4e00\u76ee\u5f55\u3002<\/p>\n<p>\u60a8\u8fd8\u53ef\u4ee5\u901a\u8fc7\u8fd0\u884c\u4ee5\u67e5\u770b\u66f4\u591a\u4f7f\u7528\u9009\u9879\uff1a<\/p>\n<pre class=\"pure-highlightjs\"><code class=\"null\">linuxmi@linuxmi \/home\/linuxmi\/www.linuxmi.com                                   \r\n\u26a1 woof -h<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-14824 aligncenter\" src=\"https:\/\/www.linuxmi.com\/wp-content\/uploads\/2022\/04\/woof-13.png\" alt=\"\" width=\"928\" height=\"641\" \/><\/p>\n<p>Woof \u662f\u4e00\u6b3e\u5c0f\u5de7\u3001\u7b80\u5355\u6613\u7528\u7684 HTTP \u670d\u52a1\u5668\uff0c\u7528\u4e8e\u5728\u5c40\u57df\u7f51\u4e0a\u4ea4\u6362\u6587\u4ef6\u3002\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c55\u793a\u4e86\u5982\u4f55\u5728 Linux \u4e2d\u5b89\u88c5\u548c\u4f7f\u7528 woof\u3002 \u5982\u679c\u60a8\u6709\u4efb\u4f55\u95ee\u9898\u6216\u5efa\u8bae\uff0c\u8bf7\u4f7f\u7528\u4e0b\u9762\u7684\u7559\u8a00\u4e0e\u6211\u4eec\u53d6\u5f97\u8054\u7cfb\u3002\u611f\u8c22Linux\u8ff7\u7684\u7cbe\u5f69\u6587\u7ae0\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Woof\uff08Web Offer One File\u7684\u7f29\u5199\uff09\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u7528\u4e8e\u5728\u5c0f\u578b\u672c\u5730\u7f51\u7edc\u4e0a\u7684\u4e3b &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-14808","post","type-post","status-publish","format-standard","hentry","category-linux"],"aioseo_notices":[],"views":548,"_links":{"self":[{"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/posts\/14808","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/comments?post=14808"}],"version-history":[{"count":6,"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/posts\/14808\/revisions"}],"predecessor-version":[{"id":14827,"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/posts\/14808\/revisions\/14827"}],"wp:attachment":[{"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/media?parent=14808"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/categories?post=14808"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/tags?post=14808"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}