Deploy seafile server in centos
Seafile deployment environment:
Links:
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