宝塔linux面板安装seafile,Centos7 安装seafile 企业共享网盘

安装环境

yum -y install epel-release

yum -y install python-imaging MySQL-python python-memcached python-ldap python-urllib3 ffmpeg ffmpeg-devel

pip install pillow moviepy

上一条命令可能错误:执行下面命令

同时安装时可能还会有:pip 版本问题

执行:pip install --upgrade pip

yum install python3-pip

pip3 install pillow moviepy

下载seafile servier 包

bVbFFSd

注意:

安装 Seafile 服务器之前,请确认已安装以下软件:

Seafile 7.0.x 版本

# on Ubuntu 16.04apt-get updateapt-get install python2.7 python-setuptools python-mysqldb python-urllib3 python-ldap -y

# on CentOS 7yum install python python-setuptools MySQL-python python-urllib3 python-ldap -y

Seafile 7.1.x 版本

# on Debian 10/Ubuntu 18.04apt-get updateapt-get install python3 python3-setuptools python3-pip python3-ldap -ypip3 install --timeout=3600 Pillow pylibmc captcha jinja2 sqlalchemy psd-tools \ django-pylibmc django-simple-captcha

# on CentOS 8yum install python3 python3-setuptools python3-pip python3-ldap -ypip3 install --timeout=3600 Pillow pylibmc captcha jinja2 sqlalchemy psd-tools \ django-pylibmc django-simple-captcha

配置seafile

setup-seafile-mysql.sh脚本执行之前得保证你localhost下有已经安装好的mysql(我装的宝塔Linux,很好弄)

注册邮箱即为admin账户

安装后启动关闭 :./setup-seafile-mysql.sh stop/start

[root@xxxx-dzz-20 seafile-server-7.0.4]# ./setup-seafile-mysql.sh

Checking python on this machine ...

Checking python module: python-mysqldb ... Done.

-----------------------------------------------------------------

This script will guide you to setup your seafile server using MySQL.

Make sure you have read seafile server manual at

https://github.com/haiwen/seafile/wiki

Press ENTER to continue

-----------------------------------------------------------------

What is the name of the server? It will be displayed on the client.

3 - 15 letters or digits

[ server name ] seafile

What is the ip or domain of the server?

For example: www.mycompany.com, 192.168.1.101

[ This server's ip or domain ] 192.168.20.14

Where do you want to put your seafile data?

Please use a volume with enough free space

[ default "/home/seafile/seafile-data" ]

Which port do you want to use for the seafile fileserver?

[ default "8082" ]

-------------------------------------------------------

Please choose a way to initialize seafile databases:

-------------------------------------------------------

[1] Create new ccnet/seafile/seahub databases

[2] Use existing ccnet/seafile/seahub databases

[ 1 or 2 ] 1

What is the host of mysql server?

[ default "localhost" ]

What is the port of mysql server?

[ default "3306" ]

What is the password of the mysql root user?

[ root password ]

verifying password of user root ... done

Enter the name for mysql user of seafile. It would be created if not exists.

[ default "seafile" ]

Enter the password for mysql user "seafile":

[ password for seafile ]

Enter the database name for ccnet-server:

[ default "ccnet-db" ]

Enter the database name for seafile-server:

[ default "seafile-db" ]

Enter the database name for seahub:

[ default "seahub-db" ]

---------------------------------

This is your configuration

---------------------------------

server name: seafile

server ip/domain: 192.168.20.14

seafile data dir: /home/seafile/seafile-data

fileserver port: 8082

database: create new

ccnet database: ccnet-db

seafile database: seafile-db

seahub database: seahub-db

database user: seafile

---------------------------------

Press ENTER to continue, or Ctrl-C to abort

---------------------------------

Generating ccnet configuration ...

done

Successly create configuration dir /home/seafile/ccnet.

Generating seafile configuration ...

Done.

done

Generating seahub configuration ...

----------------------------------------

Now creating ccnet database tables ...

----------------------------------------

----------------------------------------

Now creating seafile database tables ...

----------------------------------------

----------------------------------------

Now creating seahub database tables ...

----------------------------------------

creating seafile-server-latest symbolic link ... done

-----------------------------------------------------------------

Your seafile server configuration has been finished successfully.

-----------------------------------------------------------------

run seafile server: ./seafile.sh { start | stop | restart }

run seahub server: ./seahub.sh { start | stop | restart }

port of seafile fileserver: 8082

port of seahub: 8000

8000端口默认监听在127.0.0.1地址上,这意味着您无法直接通过8000端口访问Seafile服务,按官方文档建nginx或者修改下面配置

/$home/seafile/conf/gunicorn.conf文件

安装后启动关闭 :./seafile.sh stop/start

[root@xxxx-dzz-20 seafile-server-7.0.4]# vim ../conf/gunicorn.conf

[root@xxxx-dzz-20 seafile-server-7.0.4]# ./seafile.sh start

[04/03/20 15:08:18] ../common/session.c(132): using config file /home/seafile/conf/ccnet.conf

Starting seafile server, please wait ...

** Message: seafile-controller.c(718): No seafevents.

Seafile server started

Done.

[root@xxxx-dzz-20 seafile-server-7.0.4]# ./seahub.sh start

LC_ALL is not set in ENV, set to en_US.UTF-8

Starting seahub at port 8000 ...

----------------------------------------

It's the first time you start the seafile server. Now let's create the admin account

----------------------------------------

What is the email for the admin account?

[ admin email ] ltx@xxxx.com

What is the password for the admin account?

[ admin password ]

Enter the password again:

[ admin password again ]

----------------------------------------

Successfully created seafile admin

----------------------------------------

Seahub is started

Done.

[root@xxxx-dzz-20 seafile-server-7.0.4]# netstat -tnlp | grep 80

Active Internet connections (only servers)

Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name

tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 4630/nginx: master

tcp 0 0 0.0.0.0:8082 0.0.0.0:* LISTEN 17392/seaf-server

tcp 0 0 0.0.0.0:8000 0.0.0.0:* LISTEN 21953/python2.7

测试

bVbFFXv

bVbFF6t

安装客户端

bVbFF6T

bVbFF60

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值