Deploy seafile server in centos

Source: Internet
Author: User
Tags seafile

Deploy seafile server in centos
Seafile deployment environment:

  • OS:CentOS6.7 64 bit os

  • Internal IP:192.168.202.128

  • Seafile version:seafile-server-5.0.2

Links:
  • Seafile: http://www.seafile.com

  • Python: http://www.python.org

Development tools for Installation
# Yum-ygroupinstall "Developmenttools" # yum-yinstallzlib-devel // prepare for enabling the zlib module later # yum-yinstallopenssl-devel // required for installing python-setuptools # yum- yinstalllibjpeglibjpeg-develfreetypefreetype-devel # yum-yinstallmysql-servermysql-devel *
Preparing seafile for Installation

1. Upgrade python to 2.7:

#wgethttps://www.python.org/ftp/python/2.7.11/Python-2.7.11.tgz#tarzxfPython-*.tgz#cdPython-*#./configure

You need to enable a zlib module, vim Modules/Setup

# Locate the following row in the left or right corner of line 467 # zlibzlibmodule. c-I $ (prefix)/include-L $ (exec_prefix)/lib-lz # Remove the zlibzlibmodule annotation. c-I $ (prefix)/include-L $ (exec_prefix)/lib-lz'

Continue to compile python, and then install

makemakeinstall

2. install "python-setuptools" package:

wgethttps://bootstrap.pypa.io/get-pip.pypythonget-pip.py

3. install "python packages" for seafile:

pipinstallpillowpipinstallMySQL-python
Seafile for Installation
/setup-seafile-mysql.sh./seafile.shstart./seahub.shstart80
Open the url: http: // 192.168.202.128

Installation complete

If you need connect to windows ADconfigure seaflie auth to AD
Vi '<install_PATH>/ccnet. conf' [LDAP] HOST = ldap: // configure. # FILTER = memberOf = CN = group, CN = developers, DC = boqii-inFILTER = memberOf = CN = groupname, DC = xx, DC = com // restrict the use of seafile for users in cloud groups. memberOf is limited to windowsAD domains.
Errors:

1. An error occurred while installing python-setuptools.

[root@localhostsrc]#pythonget-pip.pyTraceback(mostrecentcalllast):File"get-pip.py",line17759,in<module>main()File"get-pip.py",line162,inmainbootstrap(tmpdir=tmpdir)File"get-pip.py",line82,inbootstrapimportpipFile"/tmp/tmpeP3VIY/pip.zip/pip/__init__.py",line15,in<module>File"/tmp/tmpeP3VIY/pip.zip/pip/vcs/subversion.py",line9,in<module>File"/tmp/tmpeP3VIY/pip.zip/pip/index.py",line30,in<module>File"/tmp/tmpeP3VIY/pip.zip/pip/wheel.py",line35,in<module>File"/tmp/tmpeP3VIY/pip.zip/pip/_vendor/distlib/scripts.py",line14,in<module>File"/tmp/tmpeP3VIY/pip.zip/pip/_vendor/distlib/compat.py",line31,in<module>ImportError:cannotimportnameHTTPSHandler

If the preceding error occurs, install the openssl-devel package and then reinstall python.

#yuminstallopenssl-devel-y#cdPython-*#makeinstall

2. The image cannot be displayed after seafle runs successfully. Check whether the image processing module pillow of python is installed.

Ref: http://manual-cn.seafile.com/deploy/using_ldap.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.