码迷,mamicode.com
首页 > 其他好文 > 详细

Seafile V4.1 安装笔记

时间:2015-04-18 23:27:19      阅读:181      评论:0      收藏:0      [点我收藏+]

标签:

yum -y install gcc gcc-c++ make cmake pcre pcre-devel expat expat-devel curl wget openssl mlocate
yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel python-devel
yum -y install vixie-cron crontabs readline-devel tk-devel telnet python-setuptools tkinter
yum -y install zlib zlib-devel libjpeg freetype freetype-devel lcms lcms-devel python-tools libjpeg-devel

# 首先安装 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

 

Seafile V4.1 安装笔记

标签:

原文地址:http://www.cnblogs.com/funsion/p/4438303.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!