yum -y install gcc gcc-c++ make cmake pcre pcre-devel expat expat-devel curl wget mlocate gd gd-devel unzip
yum -y install zlib-devel bzip2-devel openssl openssl-devel ncurses-devel sqlite-devel python-devel libxml2 libxml2-devel
yum -y install vixie-cron readline-devel tk-devel telnet python-setuptools libpng libpng-devel python-tools
yum -y install zlib zlib-devel libjpeg libjpeg-devel freetype freetype-devel lcms lcms-devel tkinter tk-devel crontabs
# 首先安装 LNMP运行环境 和 memcached服务(这里不做说明)
# 安装pip (官网 https://pypi.python.org/pypi/pip )
wget --no-check-certificate https://pypi.python.org/packages/source/p/pip/pip-6.1.1.tar.gz#md5=6b19e0a934d982a5a4b798e957cb6d45
tar zxf pip-6.1.1.tar.gz
cd pip-6.1.1
python setup.py install
# 再安装 simplejson
pip install simplejson
# 安装PIL(官网地址 http://www.pythonware.com/products/pil )
wget http://effbot.org/downloads/Imaging-1.1.7.tar.gz
tar zxf Imaging-1.1.7.tar.gz
cd Imaging-1.1.7
vi setup.py # CentOS 64bit 系统需要修改安装文件
# 修改为(以下几个变量的值设为 /usr/lib64/)
TCL_ROOT = "/usr/lib64/"
JPEG_ROOT = "/usr/lib64/"
ZLIB_ROOT = "/usr/lib64/"
TIFF_ROOT = "/usr/lib64/"
FREETYPE_ROOT = "/usr/lib64/"
LCMS_ROOT = "/usr/lib64/"
# 检查编译安装
python setup.py build_ext -i
python setup.py install
# 安装环境支持
yum -y install MySQL-python python-memcached
# 开始安装Seafile(按照提示进行)
/funsion/seafile-server-latest/setup-seafile-mysql.sh
# 让服务自动运行(如果服务无法运行,请检查防火墙配置)
vim /etc/rc.local
# 新增以下内容
/funsion/seafile-server-latest/seafile.sh start
/funsion/seafile-server-latest/seahub.sh start
# 更多参考,官方中文手册
http://manual-cn.seafile.com
# 强烈推荐安装官方手册中的教程,在Nginx下配置Seahup ,并且把缓存设置为memcached
# 参考网址
http://manual-cn.seafile.com/deploy/deploy_with_nginx.html
http://manual-cn.seafile.com/deploy/add_memcached.html