{"id":4800,"date":"2021-08-22T17:46:54","date_gmt":"2021-08-22T17:46:54","guid":{"rendered":"https:\/\/tst-amo.net.ua\/blog\/?p=4800"},"modified":"2021-08-22T18:36:20","modified_gmt":"2021-08-22T18:36:20","slug":"seafile-%d0%be%d0%b1%d0%bb%d0%b0%d1%87%d0%bd%d0%be%d0%b5-%d1%85%d1%80%d0%b0%d0%bd%d0%b8%d0%bb%d0%b8%d1%89%d0%b5","status":"publish","type":"post","link":"https:\/\/tst-amo.net.ua\/blog\/?p=4800","title":{"rendered":"Seafile &#8211; \u043e\u0431\u043b\u0430\u0447\u043d\u043e\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435"},"content":{"rendered":"<p>\u0414\u043e\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u043d\u0443\u0436\u043d\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b:<\/p>\n<pre># yum install python3 python3-setuptools python3-pip python3-devel mysql-devel gcc\r\n# pip3 install --timeout=3600 Pillow pylibmc captcha jinja2 sqlalchemy==1.4.3 django-pylibmc django-simple-captcha python3-ldap mysqlclient<\/pre>\n<p>\u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u043d\u0443\u0436\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u043f\u043e\u0434 \u0441\u0432\u043e\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443. \u042f \u0431\u0443\u0434\u0443 \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0441\u0432\u0435\u0436\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e <a href=\"https:\/\/s3.eu-central-1.amazonaws.com\/download.seadrive.org\/seafile-server_8.0.7_x86-64.tar.gz\">8.0.7 64bit<\/a> \u043d\u0430 CentOS 7.9<\/p>\n<pre># mkdir \/home\/www\/seafile\r\n# chown nginx:www-data \/home\/svm\/seafile\r\n# wget https:\/\/s3.eu-central-1.amazonaws.com\/download.seadrive.org\/seafile-server_8.0.7_x86-64.tar.gz\r\n# cd \/home\/www\/seafile \r\n# tar xf seafile-server_8.0.7_x86-64.tar.gz\r\n# tree -L <span class=\"m\">2<\/span> . \r\n\u251c\u2500\u2500 seafile-server-8.0.7 \r\n\u2502   \u251c\u2500\u2500 check_init_admin.py \r\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 reset-admin.sh \r\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 runtime \r\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 seaf-fsck.sh \r\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 seaf-fuse.sh \r\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 seaf-gc.sh \r\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 seafile \r\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 seafile.sh \r\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 seahub \r\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 seahub.sh \r\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 setup-seafile-mysql.py \r\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 setup-seafile-mysql.sh \r\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 setup-seafile.sh \r\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 sql \r\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 upgrade \r\n<\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f MySQL \u0438 \u0442\u0440\u0438 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0442\u0440\u0435\u0431\u0443\u0435\u043c\u044b\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u043e\u0431\u043b\u0430\u043a\u0430 <a href=\"https:\/\/manual.seafile.com\/overview\/components\/\">Seafile<\/a>:<\/p>\n<ul>\n<li>ccnet server<\/li>\n<li>seafile server<\/li>\n<li>seahub<\/li>\n<\/ul>\n<pre># cd \/home\/www\/seafile\/seafile-server-8.0.7\r\n# sh setup-seafile-mysql.sh\r\n<\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0441\u0435 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u043e\u0441\u044c, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c:<\/p>\n<pre># .\/seafile.sh start\r\n# .\/seahub.sh start<\/pre>\n<p>\u041c\u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u043e\u0440\u0442 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0441 8000 \u043d\u0430 8999, \u0442\u0430\u043a \u043a\u0430\u043a \u043d\u0430 \u043d\u0435\u043c \u0432\u0438\u0441\u0435\u043b ice. \u042d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c:<\/p>\n<pre># vi \/home\/www\/seafile\/conf\/gunicorn.conf.py\r\n# default localhost:8000\r\n#bind = \"127.0.0.1:8000\"\u00a0\r\nbind = \"<span style=\"color: #ff0000;\">0.0.0.0:8999<\/span>\"<\/pre>\n<p>\u0418 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c:<\/p>\n<pre># .\/seafile.sh restart\r\n# .\/seahub.sh restart 8999<\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u043b\u043e\u0433\u0438\u043d\u0438\u0442\u044c\u0441\u044f \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u043b\u0438 \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438:<\/p>\n<pre>http:\/\/192.168.1.41:8999<\/pre>\n<p>https:\/\/manual.seafile.com\/deploy\/using_mysql\/<\/p>\n<div class=\"pdfprnt-buttons pdfprnt-buttons-post pdfprnt-bottom-right\"><a href=\"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=wpv2posts4800&print=pdf\" class=\"pdfprnt-button pdfprnt-button-pdf\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/tst-amo.net.ua\/blog\/wp-content\/plugins\/pdf-print\/images\/pdf.png\" alt=\"image_pdf\" title=\"View PDF\" \/><\/a><a href=\"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=wpv2posts4800&print=print\" class=\"pdfprnt-button pdfprnt-button-print\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/tst-amo.net.ua\/blog\/wp-content\/plugins\/pdf-print\/images\/print.png\" alt=\"image_print\" title=\"Print Content\" \/><\/a><\/div>","protected":false},"excerpt":{"rendered":"<p>\u0414\u043e\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u043d\u0443\u0436\u043d\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b: # yum install python3 python3-setuptools python3-pip python3-devel mysql-devel gcc # pip3 install &#8211;timeout=3600 Pillow pylibmc captcha jinja2 sqlalchemy==1.4.3 django-pylibmc django-simple-captcha python3-ldap mysqlclient \u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u043d\u0443\u0436\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u043f\u043e\u0434 \u0441\u0432\u043e\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443. \u042f \u0431\u0443\u0434\u0443 \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0441\u0432\u0435\u0436\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e 8.0.7 64bit \u043d\u0430 CentOS 7.9 # mkdir \/home\/www\/seafile # chown nginx:www-data \/home\/svm\/seafile # wget https:\/\/s3.eu-central-1.amazonaws.com\/download.seadrive.org\/seafile-server_8.0.7_x86-64.tar.gz # cd \/home\/www\/seafile &#8230;<\/p>\n<p><a href=\"https:\/\/tst-amo.net.ua\/blog\/?p=4800\" class=\"more-link\">Continue reading &lsquo;Seafile &#8211; \u043e\u0431\u043b\u0430\u0447\u043d\u043e\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435&rsquo; &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[48,47,330],"tags":[],"class_list":["post-4800","post","type-post","status-publish","format-standard","hentry","category-centos","category-linux","category-seafile"],"_links":{"self":[{"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4800"}],"collection":[{"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4800"}],"version-history":[{"count":10,"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4800\/revisions"}],"predecessor-version":[{"id":4811,"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4800\/revisions\/4811"}],"wp:attachment":[{"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4800"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4800"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4800"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}