{"id":130,"date":"2017-09-22T15:29:46","date_gmt":"2017-09-22T07:29:46","guid":{"rendered":"https:\/\/blog.lovexu.cc\/?p=130"},"modified":"2022-09-17T12:11:57","modified_gmt":"2022-09-17T04:11:57","slug":"%e9%bb%91%e7%be%a4%e6%99%96%e4%bd%bf%e7%94%a8dockerseafile%e6%90%ad%e5%bb%ba%e7%a7%81%e6%9c%89%e4%ba%91%e5%ad%98%e5%82%a8","status":"publish","type":"post","link":"https:\/\/lox.im\/index.php\/130.html","title":{"rendered":"\u9ed1\u7fa4\u6656\u4f7f\u7528Docker+Seafile\u642d\u5efa\u79c1\u6709\u4e91\u5b58\u50a8"},"content":{"rendered":"<h2>\u524d\u8a00<\/h2>\n<p>\u5728\u5927\u91cf\u5f15\u7528\u4e86<a href=\"http:\/\/disksing.com\/docker-seafile\" target=\"_blank\" rel=\"noopener\" rel=\"nofollow\" >\u786c\u76d8\u6765\u5531\u6b4c<\/a>\u7684\u6587\u5b57\uff0c\u671f\u95f4\u6709\u4e00\u4e9b\u4e0d\u9002\u7528\u4e8e\u7fa4\u6656\uff0c\u9002\u91cf\u4fee\u6539\u6765\u9002\u5408\u7fa4\u6656\u3002<\/p>\n<h2>\u7f18\u8d77<\/h2>\n<p>\u73b0\u5982\u4eca\u5404\u79cd\u4e91\u5b58\u50a8\u670d\u52a1\u5176\u5b9e\u633a\u591a\u7684\uff0c\u56fd\u5916\u6709\u7ecf\u5178\u7684DropBox\u3001Google Driv\u3001\u5fae\u8f6f\u7684OneDrive\u7b49\uff0c\u56fd\u5185\u4e5f\u6709\u53ef\u4ee5\u514d\u8d39\u4f7f\u7528\u7684\u5404\u79cd\u4e91\u3002<\/p>\n<p>\u90a3\u4e48\u4e3a\u4ec0\u4e48\u60f3\u8981\u642d\u5efa\u79c1\u6709\u4e91\u5b58\u50a8\u5462\uff1f\u4e3b\u8981\u662f\u672c\u7740\u201c\u81ea\u5df1\u7684\u6570\u636e\u81ea\u5df1\u7ba1\u7406\u201d\u7684\u539f\u5219\u3002<\/p>\n<p>\u5176\u4e00\u662f\u9632\u6b62\u6570\u636e\u88ab\u7a83\u53d6\u3002\u8fd9\u4e9b\u4e91\u5b58\u50a8\u670d\u52a1\u5f80\u5f80\u662f\u548c\u81ea\u5df1\u7684\u67d0\u4e9b\u5e73\u53f0\u8d26\u53f7\u7ed1\u5b9a\u5728\u4e00\u8d77\u7684\uff0c\u6216\u8005\u81f3\u5c11\u662f\u8ddf\u81ea\u5df1\u7684\u67d0\u4e2a\u90ae\u7bb1\u7ed1\u5b9a\u5728\u4e00\u8d77\u7684\uff08\u5bc6\u7801\u91cd\u8bbe\uff09\uff0c\u4e00\u65e6\u5e73\u53f0\u8d26\u53f7\u6216\u90ae\u7bb1\u88ab\u9ed1\u5ba2\u83b7\u53d6\uff0c\u6240\u6709\u7684\u6570\u636e\u5c31\u4e00\u89c8\u65e0\u4f59\u4e86\u3002\u518d\u52a0\u4e4b\u7f51\u7edc\u4e0a\u793e\u5de5\u5e93\u6cdb\u6ee5\uff0c\u5f88\u591a\u4eba\u559c\u6b22\u5728\u5404\u79cd\u7f51\u7edc\u670d\u52a1\u4e0a\u4f7f\u7528\u76f8\u540c \u7684\u5bc6\u7801\uff0c\u5f80\u5f80\u662f\u67d0\u4e00\u4e2a\u8d26\u53f7\u5931\u7a83\uff0c\u6240\u6709\u6570\u636e\u5168\u90e8\u66b4\u9732\u3002<\/p>\n<p>\u5176\u4e8c\u662f\u9632\u6b62\u6570\u636e\u88ab\u4e3b\u52a8\u6cc4\u6f0f\u3002Google\u9000\u51fa\u4e2d\u56fd\u4e8b\u4ef6\u4e4b\u540e\uff0c\u6211\u4eec\u77e5\u9053\u8fd0\u8425\u5728\u56fd\u5185\u7684\u4ea7\u54c1\u6570\u636e\u90fd\u662f\u5bf9\u653f\u5e9c\u516c\u5f00\u7684\uff0c\u4f60\u4e00\u5b9a\u4e0d\u60f3\u628a\u79c1\u5bc6\u7167\u7247\u4f20\u5230\u767e\u5ea6\u4e91\u6216\u662f360\u4e91\u76d8\u4e0a\u53bb\u3002\u800c\u201c\u68f1\u955c\u95e8\u201d\u4e4b\u540e\uff0c\u6211\u4eec\u77e5\u9053\u8bf8\u5982Google\u7b49\u53f7\u79f0\u201c\u4e0d\u4f5c\u6076\u201d\u7684\u4f01\u4e1a\uff0c\u5176\u6570\u636e\u4e5f\u662f\u5bf9\u653f\u5e9c\u516c\u5f00\u7684\uff0c\u8001\u5927\u54e5\u65f6\u523b\u76ef\u7740\u4f60\u2026\u2026<\/p>\n<p>\u5176\u4e09\u662f\u9632\u6b62\u6570\u636e\u9057\u5931\u3002\u6709\u4e9b\u4eba\u8d2a\u56fe\u66f4\u4fbf\u5b9c\u7684\u4ef7\u683c\u6216\u662f\u66f4\u5927\u7684\u7a7a\u95f4\u9009\u62e9\u4e0d\u77e5\u540d\u7684\u4e91\u5b58\u50a8\u670d\u52a1\uff0c\u8bf4\u4e0d\u5b9a\u54ea\u5929\u5c31\u505c\u6b62\u670d\u52a1\u4e86\uff0c\u5230\u65f6\u5019\u6094\u4e4b\u665a\u77e3\u3002\u53e6\u5916\u8c8c\u4f3c\u8bf8\u5982\u767e\u5ea6\u4e91\u5982\u679c\u5224\u5b9a\u4f60\u7684\u89c6\u9891\u6587\u4ef6\u6709\u8272\u60c5\u5185\u5bb9\uff0c\u4f1a\u4e3b\u52a8\u5c06\u5176\u6e05\u9664\u6389\u3002<\/p>\n<p>\u8fd9\u4e48\u4e00\u770b\u81ea\u5df1\u642d\u5efa\u79c1\u6709\u4e91\u5b58\u50a8\u592a\u6709\u5fc5\u8981\u6027\u4e86\u3002\u81f3\u5c11\u80fd\u4fdd\u8bc1\u81ea\u5df1\u7684\u79c1\u4eba\u6570\u636e\u4e0e\u5176\u4ed6\u4e92\u8054\u7f51\u8d26\u53f7\u65e0\u5173\uff0c\u4e0d\u88ab\u641c\u7d22\u5f15\u64ce\u7d22\u5f15\uff0c\u4e0d\u88ab\u653f\u5e9c\u76d1\u89c6\u3002\u4fdd\u8bc1\u670d\u52a1\u5668\u8fd0\u884c\u5e76\u505a\u597d\u6570\u636e\u5907\u4efd\u5c31\u4e0d\u4f1a\u4e22\u5931\u3002\u5982\u679c\u4ec5\u5728\u5bb6\u5ead\u6216\u516c\u53f8\u5185\u90e8\u4f7f\u7528\u53ef\u4ee5\u90e8\u7f72\u5728\u5185\u7f51\uff0c\u5b89\u5168\u7cfb\u6570\u66f4\u9ad8\u3002<\/p>\n<h2>Docker\u548cSeafile\u4ecb\u7ecd<\/h2>\n<blockquote><p>Docker\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u5e94\u7528\u5bb9\u5668\u5f15\u64ce\uff0c\u8ba9\u5f00\u53d1\u8005\u53ef\u4ee5\u6253\u5305\u4ed6\u4eec\u7684\u5e94\u7528\u4ee5\u53ca\u4f9d\u8d56\u5305\u5230\u4e00\u4e2a\u53ef\u79fb\u690d\u7684\u5bb9\u5668\u4e2d\uff0c\u7136\u540e\u53d1\u5e03\u5230\u4efb\u4f55\u6d41\u884c\u7684Linux \u673a\u5668\u4e0a\uff0c\u4e5f\u53ef\u4ee5\u5b9e\u73b0\u865a\u62df\u5316\u3002\u5bb9\u5668\u662f\u5b8c\u5168\u4f7f\u7528\u6c99\u7bb1\u673a\u5236\uff0c\u76f8\u4e92\u4e4b\u95f4\u4e0d\u4f1a\u6709\u4efb\u4f55\u63a5\u53e3\uff08\u7c7b\u4f3ciPhone\u7684 app\uff09\u3002\u51e0\u4e4e\u6ca1\u6709\u6027\u80fd\u5f00\u9500,\u53ef\u4ee5\u5f88\u5bb9\u6613\u5730\u5728\u673a\u5668\u548c\u6570\u636e\u4e2d\u5fc3\u4e2d\u8fd0\u884c\u3002\u6700\u91cd\u8981\u7684\u662f,\u4ed6\u4eec\u4e0d\u4f9d\u8d56\u4e8e\u4efb\u4f55\u8bed\u8a00\u3001\u6846\u67b6\u6216\u5305\u88c5\u7cfb\u7edf\u3002<\/p>\n<p>\u6458\u81ea<a href=\"http:\/\/www.oschina.net\/p\/docker\" target=\"_blank\"  rel=\"nofollow\" >\u5f00\u6e90\u4e2d\u56fd<\/a><\/p><\/blockquote>\n<p>Docker\u80fd\u7b80\u5316\u6211\u4eec\u7684\u4e91\u5b58\u50a8\u642d\u5efa\u8fc7\u7a0b\uff0c\u8fd8\u80fd\u4f7f\u5176\u66f4\u5b89\u5168\u5730\u8fd0\u884c\uff0c\u66f4\u65b9\u4fbf\u7684\u7ef4\u62a4\u3002<\/p>\n<blockquote><p>Seafile\u662f\u65b0\u4e00\u4ee3\u7684\u5f00\u6e90\u4e91\u5b58\u50a8\u8f6f\u4ef6\u3002\u5b83\u63d0\u4f9b\u66f4\u4e30\u5bcc\u7684\u6587\u4ef6\u540c\u6b65\u548c\u7ba1\u7406\u529f\u80fd\uff0c\u4ee5\u53ca\u66f4\u597d\u7684\u6570\u636e\u9690\u79c1\u4fdd\u62a4\u548c\u7fa4\u7ec4\u534f\u4f5c\u529f\u80fd\u3002Seafile\u652f\u6301 Mac\u3001Linux\u3001Windows\u4e09\u4e2a\u684c\u9762\u5e73\u53f0\uff0c\u652f\u6301Android\u548ciOS \u4e24\u4e2a\u79fb\u52a8\u5e73\u53f0\u3002<\/p>\n<p>Seafile\u662f\u7531\u56fd\u5185\u56e2\u961f\u5f00\u53d1\u7684\u56fd\u9645\u578b\u9879\u76ee\uff0c\u76ee\u524d\u5df2\u670910\u4e07\u5de6\u53f3\u7684\u7528\u6237\uff0c\u4ee5\u6b27\u6d32\u7528\u6237\u4e3a\u591a\u3002\u5178\u578b\u7684\u673a\u6784\u7528\u6237\u5305\u62ec\u6bd4\u5229\u65f6\u7684\u7687\u5bb6\u81ea\u7136\u79d1\u5b66\u535a\u7269\u9986\uff0c\u5fb7\u56fd\u7684Wuppertal\u6c14\u5019\u3001\u80fd\u6e90\u7814\u7a76\u6240\u3002<\/p>\n<p>\u6458\u81ea<a href=\"http:\/\/www.oschina.net\/p\/seafile\" target=\"_blank\"  rel=\"nofollow\" >\u5f00\u6e90\u4e2d\u56fd<\/a><\/p><\/blockquote>\n<h2>\u642d\u5efa\u6307\u5357<\/h2>\n<h3>1. Docker\u73af\u5883<\/h3>\n<p>Docker\u8fd0\u884c\u7684\u57fa\u672c\u9700\u6c42\u662fLinux x64\uff0c\u5185\u6838\u7248\u672c2.6.32-431\u6216\u66f4\u9ad8\u7248\u672c\u3002\u5177\u4f53\u8bf7\u6309\u7167\u4f60\u7684\u7cfb\u7edf\u53c2\u8003<a href=\"https:\/\/docs.docker.com\/installation\/#installation\" target=\"_blank\"  rel=\"nofollow\" >\u5b98\u65b9\u6587\u6863<\/a>\u3002<\/p>\n<p>\u672c\u4f8b\u4e2d\u6211\u4f7f\u7528\u7684Docker\u7248\u672c\u662f1.6.1\uff0c<code>docker version<\/code>\u8fd0\u884c\u7ed3\u679c\u5982\u4e0b\u3002<\/p>\n<p><code>Client:<\/code><br \/>\n<code> Version: 1.11.2<\/code><br \/>\n<code> API version: 1.23<\/code><br \/>\n<code> Go version: go1.8<\/code><br \/>\n<code> Git commit: 5be46ee-synology<\/code><br \/>\n<code> Built: Fri May 12 16:36:47 2017<\/code><br \/>\n<code> OS\/Arch: linux\/amd64<\/code><\/p>\n<p><code>Server:<\/code><br \/>\n<code> Version: 1.11.2<\/code><br \/>\n<code> API version: 1.23<\/code><br \/>\n<code> Go version: go1.8<\/code><br \/>\n<code> Git commit: 5be46ee-synology<\/code><br \/>\n<code> Built: Fri May 12 16:36:47 2017<\/code><br \/>\n<code> OS\/Arch: linux\/amd64<\/code><\/p>\n<p>2. \u62c9\u53d6jenserat\/seafile\u955c\u50cf<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-131\" src=\"https:\/\/lox.im\/wp-content\/uploads\/2017\/09\/QQ\u622a\u56fe20170922152920-1024x556.jpg\" alt=\"\" width=\"1024\" height=\"556\" \/><\/p>\n<p>\u4f7f\u7528\u7fa4\u6656\u7684docker\uff0c\u70b9\u51fb\u5de6\u680f\u6ce8\u518c\u8868\uff0c\u7136\u540e\u641c\u7d22seafile\u3002\u9009\u4e2d<code>jenserat\/seafile<\/code>\u955c\u50cf\uff08<a href=\"https:\/\/registry.hub.docker.com\/u\/jenserat\/seafile\/\" target=\"_blank\"  rel=\"nofollow\" >\u67e5\u770b\u8be6\u60c5<\/a>\uff09\uff0c\u8be5\u955c\u50cf\u5305\u542b\u4e86Seafile\u8fd0\u884c\u7684\u4f9d\u8d56\u73af\u5883\u548c\u4e00\u4e9b\u65b9\u4fbf\u7684\u811a\u672c\u3002\u53cc\u51fb\u5b89\u88c5\u3002\u800c\u540e\u4f7f\u7528putty\uff0c\u7528root\u8d26\u53f7\u767b\u5f55\u3002\u8f93\u5165<code>docker images<\/code>\u547d\u4ee4\u53ef\u4ee5\u67e5\u770b\u4e0b\u8f7d\u5230\u7684\u955c\u50cf\uff1a<\/p>\n<pre><code>root@iZ255y3f595Z:\/home# docker images\r\nREPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE\r\njenserat\/seafile    latest              8ef4348733ff        5 weeks ago         325.3 MB\r\n<\/code><\/pre>\n<h3>3. \u4e0b\u8f7dSeafile<\/h3>\n<p><code>jenserat\/seafile<\/code>\u955c\u50cf\u4e2d\u5305\u542b\u4e86\u4e0b\u8f7dSeafile\u7684\u811a\u672c\uff0c\u53ef\u60dc\u5176\u6587\u4ef6\u6258\u7ba1\u5728Amazon ECS\u4e0a\uff0c\u56fd\u5185\u65e0\u6cd5\u6b63\u5e38\u8bbf\u95ee\u3002<\/p>\n<p>\u6240\u4ee5\u6211\u4eec\u9700\u8981\u4ece<a href=\"http:\/\/www.seafile.com\/download\/\" target=\"_blank\"  rel=\"nofollow\" >\u5b98\u65b9\u7f51\u7ad9<\/a>\u4e0a\u624b\u52a8\u4e0b\u8f7d\uff0c\u64b0\u5199\u672c\u6587\u65f6\u6700\u9ad8\u7248\u672c\u662f6.2.1\u3002\u5b58\u653e\u8fdb\u4e00\u4e2a\u76ee\u5f55\u5e76\u5c06Seafile\u89e3\u538b\u7f29\uff0c\u6ce8\u610f\u4fdd\u8bc1\u6b64\u76ee\u5f55\u6240\u5728\u5206\u533a\u6709\u8db3\u591f\u7a7a\u95f4\uff08\u5176\u5b9e\u4e5f\u4e0d\u7528\u592a\u5728\u610f\uff0c\u4e4b\u540e\u7a7a\u95f4\u4e0d\u8db3\u540e\u53ef\u4ee5\u5f88\u65b9\u4fbf\u7684\u8fc1\u79fb\uff09\u3002\u672c\u4f8b\u4e2d\u6211\u4eec\u628aSeafile\u5b58\u653e\u5728<code>\/volume1\/docker\/seafile<\/code>\u3002<\/p>\n<h3>4. \u914d\u7f6e<\/h3>\n<p>\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\u542f\u52a8\u4e00\u4e2aDocker\u5bb9\u5668\u6765\u914d\u7f6eSeafile\uff0c<strong>\u6ce8\u610f\u5c06<code>\/volume1\/docker\/seafile<\/code>\u6362\u6210\u4f60\u7684\u76ee\u5f55<\/strong>\u3002<\/p>\n<pre><code>docker run -t -i \\\r\n -p 10001:10001 \\\r\n -p 12001:12001 \\\r\n -p 8000:8000 \\\r\n -p 8080:8080 \\\r\n -p 8082:8082 \\\r\n -v \/volume1\/docker\/seafile:\/opt\/seafile \\\r\n jenserat\/seafile -- \/bin\/bash\r\n<\/code><\/pre>\n<p>\u5bb9\u5668\u542f\u52a8\u540e\u770b\u5230\u5982\u4e0b\u8f93\u51fa\uff1a<\/p>\n<pre><code>*** Running \/etc\/my_init.d\/00_regen_ssh_host_keys.sh...\r\n*** Running \/etc\/rc.local...\r\n*** Booting runit daemon...\r\n*** Runit started as PID 9\r\n*** Running \/bin\/bash...\r\nroot@635064a090b9:\/# May 10 08:37:40 635064a090b9 syslog-ng[20]: syslog-ng starting up; version='3.5.3'\r\n<\/code><\/pre>\n<p>\u4e0b\u9762\u6211\u4eec\u5728\u5bb9\u5668\u4e2d\u8fd0\u884c<code>setup-seafile.sh<\/code>\u811a\u672c\u540e\u6309\u63d0\u793a\u8fdb\u884c\u914d\u7f6e\uff0c\u672c\u4f8b\u4e2d\u6211\u4eec\u914d\u7f6e\u4e3a\u901a\u8fc7\u57df\u540d<code>www.lovexu.cc<\/code>\u8bbf\u95ee\uff0c\u5404\u79cd\u7aef\u53e3\u4e00\u8def\u56de\u8f66\u7528\u9ed8\u8ba4\u7684\u5c31\u884c\uff0c\u56e0\u4e3a\u6211\u4eec\u53ef\u4ee5\u5728\u542f\u52a8Docker\u5bb9\u5668\u65f6\u8bbe\u7f6e\u7aef\u53e3\u6620\u5c04\u3002<\/p>\n<pre><code>root@635064a090b9:\/# cd \/opt\/seafile\/seafile-server-6.2.1\/\r\nroot@635064a090b9:\/opt\/seafile\/seafile-server-6.2.1# .\/setup-seafile.sh\r\n\r\nYou are running this script as ROOT. Are you sure to continue?\r\n[yes|no] yes\r\n\r\n-----------------------------------------------------------------\r\nThis script will guide you to config and setup your seafile server.\r\n\r\nMake sure you have read seafile server manual at\r\n\r\n        https:\/\/github.com\/haiwen\/seafile\/wiki\r\n\r\nNote: This script will guide your to setup seafile server using sqlite3,\r\nwhich may have problems if your disk is on a NFS\/CIFS\/USB.\r\nIn these cases, we sugguest you setup seafile server using MySQL.\r\n\r\nPress [ENTER] to continue\r\n-----------------------------------------------------------------\r\n\r\n\r\nChecking packages needed by seafile ...\r\n\r\nChecking python on this machine ...\r\nFind python: python2.7\r\n\r\n  Checking python module: setuptools ... Done.\r\n  Checking python module: python-imaging ... Done.\r\n  Checking python module: python-sqlite3 ... Done.\r\n\r\nChecking for sqlite3 ...Done.\r\n\r\nChecking Done.\r\n\r\n\r\nWhat would you like to use as the name of this seafile server?\r\nYour seafile users will be able to see the name in their seafile client.\r\nYou can use a-z, A-Z, 0-9, _ and -, and the length should be 3 ~ 15\r\n[server name]: lovexu\r\n\r\nWhat is the ip or domain of this server?\r\nFor example, www.mycompany.com, or, 192.168.1.101\r\n\r\n[This server's ip or domain] :www.lovexu.cc\r\n\r\nWhat tcp port do you want to use for ccnet server?\r\n10001 is the recommended port.\r\n[default: 10001 ]\r\n\r\nWhere would you like to store your seafile data?\r\nNote: Please use a volume with enough free space.\r\n[default: \/opt\/seafile\/seafile-data ]\r\n\r\nWhat tcp port would you like to use for seafile server?\r\n12001 is the recommended port.\r\n[default: 12001 ]\r\n\r\nWhat tcp port do you want to use for seafile fileserver?\r\n8082 is the recommended port.\r\n[default: 8082 ]\r\n\r\n\r\nThis is your config information:\r\n\r\nserver name:        disksing\r\nserver ip\/domain:   sf.disksing.com\r\nserver port:        10001\r\nseafile data dir:   \/opt\/seafile\/seafile-data\r\nseafile port:       12001\r\nfileserver port:    8082\r\n\r\nIf you are OK with the configuration, press [ENTER] to continue.\r\n\r\nGenerating ccnet configuration in \/opt\/seafile\/ccnet...\r\n\r\ndone\r\nSuccessly create configuration dir \/opt\/seafile\/ccnet.\r\n\r\nGenerating seafile configuration in \/opt\/seafile\/seafile-data ...\r\n\r\nDone.\r\n\r\n-----------------------------------------------------------------\r\nSeahub is the web interface for seafile server.\r\nNow let's setup seahub configuration. Press [ENTER] to continue\r\n-----------------------------------------------------------------\r\n\r\n\r\nCreating seahub database now, it may take one minute, please wait...\r\n\r\n\r\nDone.\r\n\r\ncreating seafile-server-latest symbolic link ... done\r\n\r\n\r\n-----------------------------------------------------------------\r\nYour seafile server configuration has been completed successfully.\r\n-----------------------------------------------------------------\r\n\r\nrun seafile server:     .\/seafile.sh { start | stop | restart }\r\nrun seahub  server:     .\/seahub.sh  { start &lt;port&gt; | stop | restart &lt;port&gt; }\r\n\r\n-----------------------------------------------------------------\r\nIf the server is behind a firewall, remember to open these tcp ports:\r\n-----------------------------------------------------------------\r\n\r\nport of ccnet server:         10001\r\nport of seafile server:       12001\r\nport of seafile fileserver:   8082\r\nport of seahub:               8000\r\n\r\nWhen problems occur, refer to\r\n\r\n      https:\/\/github.com\/haiwen\/seafile\/wiki\r\n\r\nfor more information.<\/code><\/pre>\n<p>\u5728\u4e0a\u8ff0<code>Generating ccnet configuration in \/opt\/seafile\/ccnet...<\/code>\u4f4d\u7f6e\u6211\u51fa\u73b0\u4e86\u51e0\u4e2a\u9519\u8bef\uff0c\u663e\u793a\u5927\u6982\u662f\uff1a<\/p>\n<p><code>load shared libraries error\uff0cxxx file too short<br \/>\n<\/code><\/p>\n<p>\u800c\u540e\u67e5\u8be2\u4e86\u4e00\u904d\u4e92\u8054\u7f51\uff0c\u6ca1\u6709\u627e\u5230\u5408\u9002\u7684\u7b54\u6848\uff0c\u6700\u540e\u6211\u662f\u5c06\u51fa\u73b0\u9519\u8bef\u7684\u6587\u4ef6\u4ece\u65b0\u4e0a\u4f20\u8986\u76d6\u7fa4\u6656\u5185\u7684\u76f8\u540c\u6587\u4ef6\uff0c\u800c\u540e\u4e0d\u77e5\u4ec0\u4e48\u539f\u56e0\u5c31\u6ca1\u95ee\u9898\u4e86\u3002 \u914d\u7f6e\u5b8c\u6210\u540e\u542f\u52a8Seafile\u7684\u4e24\u4e2a\u670d\u52a1\u6d4b\u8bd5\uff0cseafile\u662f\u6587\u4ef6\u7ba1\u7406\u5f15\u64ce\uff0cseahub\u63d0\u4f9b\u7f51\u9875\u8bbf\u95ee\u670d\u52a1\u3002seahub\u9996\u6b21\u542f\u52a8\u65f6\u4f1a\u8981\u6c42\u63d0\u4f9b\u7ba1\u7406\u5458\u90ae\u7bb1 \u53ca\u5bc6\u7801\uff1a<\/p>\n<pre><code>root@635064a090b9:\/opt\/seafile\/seafile-server-4.1.2# .\/seafile.sh start\r\n\r\nStarting seafile server, please wait ...\r\nSeafile server started\r\n\r\nDone.\r\nroot@635064a090b9:\/opt\/seafile\/seafile-server-4.1.2# .\/seahub.sh start\r\n\r\nStarting seahub at port 8000 ...\r\n\r\n----------------------------------------\r\nIt's the first time you start the seafile server. Now let's create the admin account\r\n----------------------------------------\r\n\r\nWhat is the email for the admin account?\r\n[ admin email ] lovexu@gmail.com\r\n\r\nWhat is the password for the admin account?\r\n[ admin password ]\r\n\r\nEnter the password again:\r\n[ admin password again ]\r\n\r\n\r\n\r\n----------------------------------------\r\nSuccessfully created seafile admin\r\n----------------------------------------\r\n\r\n\r\n\r\nLoading ccnet config from \/opt\/seafile\/ccnet\r\nLoading seafile config from \/opt\/seafile\/seafile-data\r\n\r\nSeahub is started\r\n\r\nDone.\r\n\r\n<\/code><\/pre>\n<p>\u73b0\u5728\u7528\u6d4f\u89c8\u5668\u6253\u5f00<code>http:\/\/&lt;youdomain_or_ip&gt;:8000<\/code>\uff0c\u770b\u5230\u767b\u5f55\u9875\u9762\u8bf4\u660e\u914d\u7f6e\u5b8c\u6210\u4e86\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-132\" src=\"https:\/\/lox.im\/wp-content\/uploads\/2017\/09\/QQ\u622a\u56fe20170922152920-1-1024x499.jpg\" alt=\"\" width=\"1024\" height=\"499\" \/><\/p>\n<h3>5. \u542f\u52a8Seafile<\/h3>\n<p>\u521a\u624d\u6211\u4eec\u5df2\u7ecf\u5728\u5bb9\u5668\u5185\u6b63\u5e38\u542f\u52a8\u4e86Seafile\uff0c\u53ea\u662f\u5982\u679c\u6bcf\u6b21\u90fd\u8981\u91cd\u542f\u540e\u90fd\u8981\u624b\u52a8\u64cd\u4f5c\u542f\u52a8Seafile\u7684\u4e24\u4e2a\u670d\u52a1\u6d4b\u8bd5\uff0cseafile\u662f\u6587\u4ef6\u7ba1\u7406\u5f15\u64ce\uff0cseahub\u63d0\u4f9b\u7f51\u9875\u8bbf\u95ee\u670d\u52a1\u3002\u7565\u663e\u9ebb\u70e6\u3002\u6240\u5e78<code>jenserat\/seafile<\/code>\u63d0\u4f9b\u4e86\u81ea\u52a8\u8c03\u7528\u542f\u52a8\u811a\u672c\u7684\u673a\u5236\uff0c\u521b\u5efa\u5bb9\u5668\u65f6\u5b9a\u4e49<code>autostart=true<\/code>\u5373\u53ef\u3002<\/p>\n<p>\u8fd9\u6b21\u6211\u4eec\u7ed9\u5bb9\u5668\u53d6\u4e00\u4e2a\u6709\u610f\u4e49\u7684\u540d\u5b57<code>seafile<\/code>\uff0c\u5982\u679c\u4f60\u60f3\u8ba9\u901a\u8fc780\u7aef\u53e3\u8bbf\u95ee\uff0c\u5c06<code>-p 8000:8000<\/code>\u6539\u4e3a<code>-p 80:8000<\/code>\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<pre><code>docker run -d \\\r\n  --name seafile \\\r\n  -p 10001:10001 \\\r\n  -p 12001:12001 \\\r\n  -p 8000:8000 \\\r\n  -p 8080:8080 \\\r\n  -p 8082:8082 \\\r\n  -v \/volume1\/docker\/seafile:\/opt\/seafile \\\r\n  -e autostart=true \\\r\n  jenserat\/seafile\r\n<\/code><\/pre>\n<p>\u8fd9\u4efd\u6307\u5357\u5230\u8fd9\u91cc\u5c31\u7ed3\u675f\u4e86\uff0c\u795d\u73a9\u5f97\u5f00\u5fc3\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u8a00 \u5728\u5927\u91cf\u5f15\u7528\u4e86\u786c\u76d8\u6765\u5531\u6b4c\u7684\u6587\u5b57\uff0c\u671f\u95f4\u6709\u4e00\u4e9b\u4e0d\u9002\u7528\u4e8e\u7fa4\u6656\uff0c\u9002\u91cf\u4fee\u6539\u6765\u9002\u5408\u7fa4\u6656\u3002 \u7f18\u8d77 \u73b0\u5982\u4eca\u5404\u79cd\u4e91\u5b58\u50a8\u670d\u52a1\u5176\u5b9e\u633a\u591a\u7684\uff0c\u56fd\u5916\u6709\u7ecf\u5178 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[4],"tags":[12],"class_list":["post-130","post","type-post","status-publish","format-standard","hentry","category-internet","tag-12"],"_links":{"self":[{"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/posts\/130","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/comments?post=130"}],"version-history":[{"count":4,"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/posts\/130\/revisions"}],"predecessor-version":[{"id":804,"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/posts\/130\/revisions\/804"}],"wp:attachment":[{"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/media?parent=130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/categories?post=130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/tags?post=130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}