While not mandatory, it is highly recommended that you set a password for the MariaDB administrative "root" user.
If this field is left blank, the password will not be changed.
New password for the MariaDB "root" user:
Repeat password for the MariaDB "root" user:
[email protected]:~/seafile/seafile-server-6.0.7# ./setup-seafile-mysql.sh
Checking python on this machine ...
Checking python module: setuptools ... Done.
Checking python module: python-imaging ... Done.
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 ] DOUBI
# 输入你的服务名字,不过没什么卵用,据说已经废弃了这个选项。
What is the ip or domain of the server?
For example: www.mycompany.com, 192.168.1.101
[ This server ip or domain ] demo.toyoo.pw
# 输入你的域名或者IP,如果你有域名,那么就输入域名,IP请输入VPS的公网IP
Where do you want to put your seafile data?
Please use a volume with enough free space
[ default "/root/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
# 选项1指的是,Seafile自动给你创建数据库。
# 选项2指的是,你自己已经创建好了数据库。
# 这里选择 1 ,回车后就会提示你输入要创建的数据库信息了。
What is the host of mysql server?
[ default "localhost" ]
# 问你Mysql服务器的位置在哪里,默认本地,直接回车
What is the port of mysql server?
[ default "3306" ]
# 问你Mysql的端口是什么,默认3306,直接回车
What is the password of the mysql root user?
[ root password ]
# 让你输入你前面安装依赖的时候设置的数据库ROOT密码(注意这里输入密码不会显示出来,盲输,或者直接粘贴)
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: DOUBI
server ip/domain: demo.toyoo.pw
seafile data dir: /root/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 /root/seafile/ccnet.
Generating seafile configuration ...
Done.
done
Generating seahub configuration ...
----------------------------------------
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 }
-----------------------------------------------------------------
If you are behind a firewall, remember to allow input/output of these tcp ports:
-----------------------------------------------------------------
port of seafile fileserver: 8082
port of seahub: 8000
When problems occur, Refer to
https://github.com/haiwen/seafile/wiki
for information.
# 到这里就安装完成了。
[email protected]:~/seafile/seafile-server-6.0.7# ./seahub.sh start
LANG is not set in ENV, set to en_US.UTF-8
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 ] [email protected]
# 输入你的管理员邮箱(账号)
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.