{"id":112,"date":"2021-05-26T15:02:00","date_gmt":"2021-05-26T15:02:00","guid":{"rendered":"https:\/\/262235.xyz\/?p=112"},"modified":"2021-05-26T15:02:00","modified_gmt":"2021-05-26T15:02:00","slug":"112","status":"publish","type":"post","link":"https:\/\/lyvba.com\/index.php\/2021\/05\/26\/112\/","title":{"rendered":"\u611f\u8c22\u5927\u795eTaterLi\u521b\u4f5cgoseeder\u81ea\u52a8PT\u5de5\u5177"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/05\/3140493615.png\" alt=\"QB.png\" title=\"QB.png\"><\/p>\n<h3>1)  \u8bf7\u5148\u770b\u5927\u795e\u535a\u5ba2  \u81ea\u52a8PT\u5de5\u5177\u53c2\u6570\u8c03\u4f18<\/h3>\n<p><a href=\"https:\/\/www.taterli.com\/7785\/\">https:\/\/www.taterli.com\/7785\/<\/a><\/p>\n<h3>1.1) \u81ea\u52a8PT autopt.sh \u4e00\u952e\u811a\u672c  \u65b9\u4fbf\u914d\u7f6e\u6d4b\u8bd5 goseeder.conf<\/h3>\n<ul>\n<li>\u77ed\u7f51\u5740: <a href=\"https:\/\/git.io\/autopt.sh\">https:\/\/git.io\/autopt.sh<\/a><\/li>\n<li>\n<p>\u628a\u5de5\u5177\u5236\u4f5c\u6210Docker\u5bb9\u5668\uff0c\u6d4b\u8bd5\u652f\u6301\u7fa4\u6656NAS\uff0c\u53ef\u4ee5\u4f7f\u7528<\/p>\n<pre><code>wget git.io\/autopt.sh &amp;&amp; bash autopt.sh\n\n# \u7fa4\u6656NAS\u4f7f\u7528\u5982\u679c\u4e0d\u80fd\u8bbf\u95ee\u5916\u7f51 \u4f7f\u7528\u547d\u4ee4\nwget lyvba.com\/autopt.sh &amp;&amp; bash autopt.sh<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/05\/2184208616.png\" alt=\"autopt.png\" title=\"autopt.png\"><\/p>\n<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/05\/3539043976.png\" alt=\"conf.png\" title=\"conf.png\"><\/p>\n<h3>\u590d\u5236\u793a\u4f8b\u5230Json\u5de5\u5177\u7f51\u7ad9\u7f16\u8f91\uff0c\u4fdd\u5b58\u4e0a\u4f20 \/root\/goseeder.conf<\/h3>\n<pre><code>{\n\"dbserver\": \"mongodb+srv:\/\/pt:passwd@cluster0.XXXX.mongodb.net\/myFirstDatabase?retryWrites=true&amp;w=majority\",\n\n\"node\": [\n\n{\n\"source\": \"pt.msg.vg\",\n\"passkey\": \"123456789-PASSKEY-PASSKEY-ABCDEF\",\n\"limit\": 10,\n\"enable\": true,\n\"rule\": {\n    \"seeder_time\": 0,\n    \"seeder_ratio\": 0,\n    \"speed_limit\": 8.0\n}\n}\n\n\n],\n\n\n\"server\": [\n\n{\n\"endpoint\": \"http:\/\/192.168.1.222:8080\",\n\"username\": \"admin\",\n\"password\": \"adminadmin\",\n\"remark\": \"DISKSTATION\",\n\"enable\": true,\n\"rule\": {\n\"concurrent_download\": 1,\n\"disk_threshold\": 10.0,\n\"disk_overcommit\": false,\n\"max_speed\": 30.00,\n\"min_alivetime\": 3600,\n\"max_alivetime\": 86400,\n\"min_tasksize\": 0.0,\n\"max_tasksize\": 50.0,\n\"max_disklatency\": 10000\n}\n}\n\n]\n}\n<\/code><\/pre>\n<h3>2) \u8fd0\u884c goseeder \u81ea\u52a8PT<\/h3>\n<pre><code>docker run -d  --name  autopt  \\r\n   -v  \/root\/goseeder.conf:\/goseeder.conf  \\r\n   hongwenjun\/autopt\n\n<\/code><\/pre>\n<h3>3) \u67e5\u770bQB\u670d\u52a1\u5668\u8bbe\u7f6e\u662f\u5426\u6b63\u5e38<\/h3>\n<pre><code>docker  exec  -it autopt  gostat\n<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/05\/962808404.png\" alt=\"\" title=\"\"><\/p>\n<h3>4) \u68c0\u67e5RSS\u63a8\u9001\u4fe1\u606f\u662f\u5426\u6b63\u786e<\/h3>\n<pre><code>docker logs  autopt | grep -e \u79cd\u5b50 -e \u78c1\u76d8\n<\/code><\/pre>\n<h3>5) \u5b89\u88c5Docker\u53ef\u89c6\u5316\u754c\u9762Portainer<\/h3>\n<pre><code>docker run --name Portainer          \\r\n  --restart=always  -d -p 9000:9000  \\r\n  -v \/var\/run\/docker.sock:\/var\/run\/docker.sock  \\r\n  -v \/opt\/portainer_data:\/data        \\r\n  portainer\/portainer\n<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/05\/354698449.png\" alt=\"123.png\" title=\"123.png\"><\/p>\n<h3>6) \u4f7f\u7528Portainer \u67e5\u770b\u548c\u4fee\u6539\u6bd4\u8f83\u65b9\u4fbf<\/h3>\n<ul>\n<li>\n<p>\u7f16\u8f91  \/root\/goseeder.conf  \u540e\u4f7f\u7528\u7f51\u9875\u7ba1\u7406\u91cd\u542f\uff0c\u6216\u8005\u547d\u4ee4<\/p>\n<p>docker restart autopt<\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>1) \u8bf7\u5148\u770b\u5927\u795e\u535a\u5ba2 \u81ea\u52a8PT\u5de5\u5177\u53c2\u6570\u8c03\u4f18 https:\/\/www.taterli.com\/7785 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,8,7],"tags":[18],"class_list":["post-112","post","type-post","status-publish","format-standard","hentry","category-docker","category-linux","category-pt","tag-pt"],"_links":{"self":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/112","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/comments?post=112"}],"version-history":[{"count":0,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/112\/revisions"}],"wp:attachment":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/media?parent=112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/categories?post=112"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/tags?post=112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}