{"id":534007,"date":"2021-09-10T21:48:16","date_gmt":"2021-09-10T13:48:16","guid":{"rendered":"http:\/\/4563.org\/?p=534007"},"modified":"2021-09-10T21:48:16","modified_gmt":"2021-09-10T13:48:16","slug":"%e8%85%be%e8%ae%af%e4%ba%91%e8%bd%bb%e9%87%8f%e6%9c%8d%e5%8a%a1%e5%99%a8%e9%83%a8%e7%bd%b2go%e5%bc%80%e5%8f%91%e7%9a%84webdav%e7%a7%92%e5%8f%98%e7%a7%81%e4%ba%ba%e4%ba%91","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=534007","title":{"rendered":"\u817e\u8baf\u4e91\u8f7b\u91cf\u670d\u52a1\u5668\u90e8\u7f72GO\u5f00\u53d1\u7684WebDav\u79d2\u53d8\u79c1\u4eba\u4e91"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>great999<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>\u817e\u8baf\u4e91\u8f7b\u91cf\u670d\u52a1\u5668\u90e8\u7f72GO\u5f00\u53d1\u7684WebDav\u79d2\u53d8\u79c1\u4eba\u4e91<\/h3>\n<p>  \t\t\u8bba\u575b\u6392\u7248\u53ef\u80fd\u4e0d\u5b8c\u7f8e\uff0c\u53ef\u79fb\u6b65\u535a\u5ba2\u67e5\u770b<br \/>  https:\/\/great999.cn<\/p>\n<p>  \u4e4b\u524d\u4ecb\u7ecd\u8fc7Nginx\u6a21\u5757\u5b9e\u73b0\u662fWebdav \u8fd9\u6b21\u4ecb\u7ecd\u4e00\u4e2a\u7531Go\u8bed\u8a00\u7f16\u5199\u7684WebDav\u670d\u52a1\u7aef\u642d\u5efa\u8fc7\u7a0b\uff0c\u4e2a\u4eba\u611f\u89c9\u6bd4\u5176\u4ed6\u4f17\u65b9\u5f0f\u90fd\u7b80\u5355\u5b9e\u7528\uff0c\u5355\u6587\u4ef6\u53ef\u6267\u884c\uff0c\u4e0d\u9700\u8981\u989d\u5916\u914d\u7f6e\u3002<br \/>  \u670d\u52a1\u5668\u9009\u7528\u817e\u8baf\u4e91\u9999\u6e2f\u8f7b\u91cf\uff0c\u56de\u56fd\u7ebf\u8def\u4f18\u79c0\uff0c30M\u5e26\u5bbd\u8db3\u591f\u4f7f\u7528\uff0c\u90e8\u7f72\u597dWebdav\uff0c\u6302\u8f7d\u5728\u624b\u673a\u4e0a\u4e0d\u8981\u592a\u723d\u3002<br \/>  \u8f7b\u91cf\u5e94\u7528\u670d\u52a1\u5668\u65e0\u5fe7\u8ba1\u5212_\u8f7b\u91cf\u5e94\u7528\u670d\u52a1\u5668\u7eed\u8d39\u540c\u4ef7-\u817e\u8baf\u4e91 (tencent.com)<br \/>  \u8f7b\u91cf\u5e94\u7528\u670d\u52a1\u5668\u65e0\u5fe7\u8ba1\u5212_\u8f7b\u91cf\u5e94\u7528\u670d\u52a1\u5668\u7eed\u8d39\u540c\u4ef7-\u817e\u8baf\u4e91 (tencent.com)<\/p>\n<p>  \u6b63\u6587\uff1a<\/p>\n<p>  \u9996\u5148\u653e\u4e0a\u672c\u6b21\u7684\u4e3b\u89d2\uff0cgithub\u94fe\u63a5\u5982\u4e0b<br \/>  https:\/\/github.com\/hacdias\/webdav<\/p>\n<p>  \u5b83\u652f\u6301\u5404\u4e2a\u7cfb\u7edf\u53ca\u5e73\u53f0\uff0cwindows\u7aef\u90e8\u7f72\u4e5f\u662f\u5927\u540c\u5c0f\u5f02\uff0c\u6bd5\u7adf\u53ea\u9700\u8981\u4e00\u4e2a\u53ef\u6267\u884c\u6587\u4ef6\u4ee5\u53ca\u4e00\u4e2a\u914d\u7f6e\u6587\u4ef6\u5373\u53ef<\/p>\n<p>  \u9996\u5148\u5148\u5efa\u7acb\u4e00\u4e2a\u8fd0\u884c\u76ee\u5f55\uff0c\u5e76\u4e0b\u8f7d\u670d\u52a1\u7aef<br \/>  mkdir \/home\/webdav<\/p>\n<p>  #\u5c3d\u91cf\u4e0d\u5728root\u76ee\u5f55\uff0c\u4ee5\u907f\u514d\u6743\u9650\u95ee\u9898<\/p>\n<p>  wget https:\/\/github.com\/hacdias\/webdav\/releases\/download\/v4.1.0\/linux-amd64-webdav.tar.gz<\/p>\n<p>  tar -xzvf linux-amd64-webdav.tar.gz<\/p>\n<p>  #\u89e3\u538b\u6587\u4ef6<\/p>\n<p>  \u7136\u540e\u65b0\u5efa\u4e0b\u914d\u7f6e\u6587\u4ef6\uff0c\u914d\u7f6e\u6587\u4ef6\u652f\u6301yaml json toml\u7b49\u914d\u7f6e\u6587\u4ef6\uff0c\u6ce8\u610f\u7f16\u7801\u4e00\u5b9a\u8981\u4e3autf-8<\/p>\n<p>  \u4f7f\u7528vi vim nano\u7b49\u6587\u672c\u7f16\u8f91\u5de5\u5177\u7f16\u8f91config.yaml\u7c98\u8d34\u4ee5\u4e0b\u5185\u5bb9\uff0c\u5e76\u4fee\u6539\u76f8\u5e94\u7684\u5185\u5bb9<\/p>\n<p>  # Server related settings<br \/>  address: 0.0.0.0<br \/>  port: 51234<br \/>  auth: true<br \/>  tls: false<br \/>  cert: cert.pem<br \/>  key: key.pem<\/p>\n<p>  # Default user settings (will be merged)<br \/>  scope: .<br \/>  modify: true<br \/>  rules: []<\/p>\n<p>  users:<br \/>  &#8211; username: user1<br \/>  password: user1<br \/>  scope: \/home\/webdav<br \/>  &#8211; username: user2<br \/>  password: user2<br \/>  scope: \/home\/webdav<\/p>\n<p>  \u540c\u65f6\u5bc6\u7801\u652f\u6301bcrypt\u52a0\u5bc6\u5177\u4f53\u770bgithub\u8bf4\u660e\u53bb\uff0c\u8fd9\u91cc\u63d0\u4f9b\u4e00\u4e2a\u5728\u7ebf\u751f\u6210bcrypt\u52a0\u5bc6\u7684\u5730\u5740https:\/\/bcrypt-generator.com\/<br \/>  \u597d\u7684\uff0c\u73b0\u5728\u4f60\u53ef\u4ee5\u5c1d\u8bd5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5f00\u542f\u4f60\u7684\u670d\u52a1\u7aef\u4e86<br \/>  webdav &#8211;config config.yaml<br \/>  \u786e\u8ba4\u6ca1\u95ee\u9898\u540e\u53ef\u4ee5\u4f7f\u7528Systemd\u6765\u63a7\u5236\u5f00\u673a\u81ea\u542f\u548c\u540e\u53f0\u8fd0\u884c<\/p>\n<p>  \u4f7f\u7528vi vim nano\u7b49\u7f16\u8f91\u5668\u7f16\u8f91 \/lib\/systemd\/system\/webdav.service\u6587\u4ef6\u5199\u5165\u4ee5\u4e0b\u5185\u5bb9<\/p>\n<p>  Description=WebDAV server<br \/>  After=network.target<\/p>\n<p>  Type=simple<br \/>  User=root<br \/>  ExecStart=\/home\/webdav\/webdav &#8211;config \/home\/webdav\/config.yaml<br \/>  Restart=on-failure<\/p>\n<p>  WantedBy=multi-user.target<br \/>  \u6ce8\u610f\u628a\u8def\u5f84\u4fee\u6539\u4e3a\u4f60\u771f\u5b9e\u7684\u53ef\u6267\u884c\u6587\u4ef6\u53ca\u914d\u7f6e\u6587\u4ef6\u8def\u5f84<br \/>  systemctl start webdav<\/p>\n<p>  #\u542f\u52a8webdav<\/p>\n<p>  systemctl enable webdav<\/p>\n<p>  #\u8bbe\u7f6e\u5f00\u673a\u542f\u52a8<br \/>  \u597d\u4e86\uff0c\u4f7f\u7528\u4f60\u7684\u5ba2\u6237\u7aef\u5c1d\u8bd5\u8fde\u63a5\u5373\u53ef\uff01<\/p>\n<p>  \u7535\u8111\u7aef\u53ef\u4ee5\u4f7f\u7528raidrive \u624b\u673a\u7aef\u63a8\u8350ES\u6587\u4ef6\u6d4f\u89c8\u5668\uff0c\u89c9\u5f97\u5b58\u50a8\u7a7a\u95f4\u4e0d\u591f\u7684\u53ef\u4ee5\u518d\u53bb\u8d2d\u4e70OSS\u8fdb\u884c\u6302\u8f7d\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>littlemjj<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u611f\u8c22\u5206\u4eab\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>great999<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4e0b\u6b21\u4ecb\u7ecd\u4e0bwindows\u4e0b\u90e8\u7f72\uff0c\u6211\u90e8\u7f72\u5728ikoula dd\u7684win\u4e0a\u5341\u5206\u5df4\u9002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>zuoridangnian<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\twhat does webdav do?\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>great999<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tzuoridangnian \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-9-10 16:59<br \/>  what does webdav do?<\/p>\n<p> \u5efa\u8bae\u76f4\u63a5\u767e\u5ea6\u8c37\u6b4c\u4e86\u89e3\u54c8\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u864e\u8c37<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 \u864e\u8c37 \u4e8e 2021-9-10 20:20 \u7f16\u8f91 <\/p>\n<p> \u5176\u4ed6\u4e91\uff0c\u642d\u597d\u4e86\uff1a<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; \u610f\u601d\uff1a\u6211\u7528\u5176\u4ed6\u4e91\u642d\u5efa\u7684\uff0c\u4f60\u8d77\u7684\u6807\u9898\u4e0d\u592a\u5408\u9002\uff1b<\/p>\n<p>  \u770b\u4f60\u8fd9\u4e2a\u4e5f\u662f\u5927\u6982\u800c\u5df2\uff0c\u56e0\u4e3a\u592a\u4e71\u4e86\u90fd\uff1a<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; \u610f\u601d\uff1a\u5927\u6982\u770b\u4e86\u4f60\u4e0b\u7684\u5e16\u5b50\uff0c\u5bf9\u5c0f\u767d\u4e0d\u53cb\u597d\uff0c\u6bd4\u5982\u8bf4 yaml \u683c\u5f0f\u662f\u9700\u8981\u7f29\u8fdb\u7684\uff0c\u4e0d\u7f29\u8fdb\u4f1a\u51fa\u95ee\u9898\u7684\uff0c\u4f60\u7684\u535a\u5ba2\u540c\u7406\u4e5f\u6709\u8fd9\u95ee\u9898\uff1b<\/p>\n<p>  \u914d\u7f6e\u6587\u4ef6\u90fd\u662f\u770b\u5b98\u65b9\u7684\uff0craidrive\u9609\u5272\u7684\uff0c\u6362\u4e86rclone\uff0c\u56e0\u4e3a\u7b2c\u4e00\u6b21\u7528\uff0c\u8fd8\u662f\u770b\u5b98\u65b9\u7684\uff0c\uff0c\uff0c<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; \u610f\u601d\uff1a\u770b\u4f60\u7528\u4e86 hacdias\/webdav\uff0c\u6211\u5c31\u53bb\u5176\u4e0b\u9762\u770b\u6587\u6863\uff0c\u4f60\u7528raidrive\u5ba2\u6237\u7aef\uff0c\u4f46\u662f\u6700\u65b0\u7684\u8981\u6536\u94b1\uff0c\u9609\u5272\u592a\u4e25\u91cd\u4e86\uff0c\u6362\u4e86rclone\u5ba2\u6237\u7aef\uff0c\u4f46\u662f\u5176\u662f\u547d\u4ee4\u884c\uff0c\uff08\u56e0\u4e3a\u7b2c\u4e00\u6b21\u7528\u8fd9\u4e2a\uff0c\u6240\u4ee5\uff09\u82b1\u8d39\u4e86\u4e0d\u5c11\u65f6\u95f4\u770b\u5176\u6587\u6863\u548c\u627e\u8d44\u6599\u3002\u3002\u3002<\/p>\n<p>  \u603b\u7684\u6765\u8bf4\uff0c\u65b9\u6cd5\u8fd8\u662f\u4e0d\u9519\u7684\uff0c\u652f\u6301~  \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>optimism<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6280\u672f\u8d34\u5fc5\u9876\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>great999<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u864e\u8c37 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-9-10 19:49<br \/>  \u5176\u4ed6\u4e91\uff0c\u642d\u597d\u4e86\uff0c\u770b\u4f60\u8fd9\u4e2a\u4e5f\u662f\u5927\u6982\u800c\u5df2\uff0c\u56e0\u4e3a\u592a\u4e71\u4e86\u90fd\uff0c\u914d\u7f6e\u6587\u4ef6\u90fd\u662f\u770b\u5b98\u65b9\u7684\uff0craidrive\u9609\u5272\u7684\uff0c\u6362\u4e86rclone &#8230;<\/p>\n<p> \u4f60\u7684\u56de\u590d\u6211\u8bfb\u4e86\u4e09\u904d\uff0c\u90fd\u6ca1\u8bfb\u61c2\u3002\u3002\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>gavin<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u7ed1\u5b9a \u6536\u85cf\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>lxhjl521<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u611f\u8c22\u697c\u4e3b\u5206\u4eab\uff0c\u6280\u672f\u8d34\u9876\u8d77\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>great999 \u5927\u4f6c\u6709\u8bdd\u8bf4 : &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/534007"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=534007"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/534007\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=534007"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=534007"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=534007"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}