{"id":971,"date":"2022-04-25T21:45:55","date_gmt":"2022-04-25T13:45:55","guid":{"rendered":"https:\/\/www.wccass.com\/?p=971"},"modified":"2024-11-12T11:58:58","modified_gmt":"2024-11-12T03:58:58","slug":"%e5%9f%ba%e4%ba%8eecs%e5%92%8cnas%e6%90%ad%e5%bb%ba%e4%b8%aa%e4%ba%ba%e7%bd%91%e7%9b%98","status":"publish","type":"post","link":"https:\/\/blog.tongyunli.top\/?p=971","title":{"rendered":"centos 7 docker \u5b89\u88c5seafile"},"content":{"rendered":"\n<p><strong>\u4e00\u3001\u4e0b\u8f7ddocker<\/strong><br>[root@lixian ~]# yum -y install yum-utils device-mapper-persistent-data lvm2<br>[root@lixian ~]# yum-config-manager &#8211;add-repo http:\/\/mirrors.aliyun.com\/docker-ce\/linux\/centos\/docker-ce.repo<br>[root@lixian ~]# yum makecache fast<br>[root@lixian ~]# yum -y install docker-ce<br>[root@lixian ~]# systemctl start docker<\/p>\n\n\n\n<p><strong>\u4e8c\u3001\u62c9\u53d6\u955c\u50cf<\/strong><br>[root@lixian ~]# docker pull seafileltd\/seafile<\/p>\n\n\n\n<p><strong>\u4e09\u3001\u8fd0\u884c #192.168.1.215 \u672c\u673a\u7684IP<\/strong><br>docker run -d &#8211;name seafile -e SEAFILE_SERVER_HOSTNAME=192.168.1.215 -v \/data\/seafile:\/shared -p 80:80 seafileltd\/seafile:latest<\/p>\n\n\n\n<p><br><strong>\u56db\u3001<\/strong>\u6d4f\u89c8\u5668http:\/\/IP\u5730\u5740 \u8bbf\u95eeseafile\uff08\u9ed8\u8ba4\u7528\u6237\u540d\uff1ame@example.com \u9ed8\u8ba4\u5bc6\u7801\uff1aasecret\uff09<\/p>\n\n\n\n<p>=====================================<\/p>\n\n\n\n<p><strong>\u914d\u7f6e\u4e0a\u4f20\u4e0b\u8f7d\u5927\u5c0f#seafile.conf&nbsp;<\/strong><\/p>\n\n\n\n<p><em>[root@lixian ~]# cat \/data\/seafile\/seafile\/conf\/seafile.conf<br>[fileserver]<br>port = 8082<br><br>[database]<br>type = mysql<br>host = 127.0.0.1<br>port = 3306<br>user = seafile<br>password = ec2a3fc7-9fb3-4d6c3787f7bd3<br>db_name = seafile_db<br>connection_charset = utf8<br><br>[fileserver]<br>#\u6700\u5927\u4e0a\u4f20\u6587\u4ef6\u5355\u4f4d\u4e3aMB,\u4e3a1TB<br>max_upload_size=1048576<br>#\u6700\u5927\u4e0b\u8f7d\u76ee\u5f55\u4e3aMB,\u4e3a1TB<br>max_download_dir_size=1048576<\/em><\/p>\n\n\n\n<p><br><strong>\u914d\u7f6e\u90ae\u7bb1#seahub_settings.py<\/strong><br>EMAIL_USE_TLS = False<br>EMAIL_HOST = &#8216;smtp.exmail.qq.com 18&#8217; # smpt \u670d\u52a1\u5668<br>EMAIL_HOST_USER = &#8216;************@qq.com&#8217; # \u7528\u6237\u540d\u548c\u57df\u540d<br>EMAIL_HOST_PASSWORD = \u2018************&#8217; # \u5bc6\u7801<br>EMAIL_PORT = &#8216;465&#8217;<br>DEFAULT_FROM_EMAIL = EMAIL_HOST_USER<br>SERVER_EMAIL = EMAIL_HOST_USER<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u4e0b\u8f7ddocker[root@lixian ~]# yum -y install yum-utils dev [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-971","post","type-post","status-publish","format-standard","hentry","category-jishu"],"_links":{"self":[{"href":"https:\/\/blog.tongyunli.top\/index.php?rest_route=\/wp\/v2\/posts\/971","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.tongyunli.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.tongyunli.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.tongyunli.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.tongyunli.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=971"}],"version-history":[{"count":2,"href":"https:\/\/blog.tongyunli.top\/index.php?rest_route=\/wp\/v2\/posts\/971\/revisions"}],"predecessor-version":[{"id":975,"href":"https:\/\/blog.tongyunli.top\/index.php?rest_route=\/wp\/v2\/posts\/971\/revisions\/975"}],"wp:attachment":[{"href":"https:\/\/blog.tongyunli.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=971"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.tongyunli.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=971"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.tongyunli.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=971"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}