root@cloud:/usr/local/www/haiwen/seafile-server # ./
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

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 ] cloud

What is the ip or domain of the server?
For example:,
[ This server’s ip or domain ]

Where do you want to put your seafile data?
Please use a volume with enough free space
[ default “/usr/local/www/haiwen/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” ] dyd

Enter the password for mysql user “dyd”:
[ password for dyd ]

verifying password of user dyd … done

Enter the database name for ccnet-server:
[ default “ccnet-db” ] ccnetdb

Enter the database name for seafile-server:
[ default “seafile-db” ] seafiledb

Enter the database name for seahub:
[ default “seahub-db” ] seahubdb

This is your configuration

server name:            cloud
server ip/domain:

seafile data dir:       /usr/local/www/haiwen/seafile-data
fileserver port:        8082

database:               create new
ccnet database:         ccnetdb
seafile database:       seafiledb
seahub database:        seahubdb
database user:          dyd

Press ENTER to continue, or Ctrl-C to abort

Generating ccnet configuration …

ELF binary type “0” not known.
Traceback (most recent call last):
File “”, line 1461, in
File “”, line 1414, in main
File “”, line 810, in generate
if Utils.run_argv(argv, env=env_mgr.get_binary_env()) != 0:
File “”, line 84, in run_argv
File “/usr/local/lib/python2.7/”, line 711, in init
errread, errwrite)
File “/usr/local/lib/python2.7/”, line 1343, in _execute_child
raise child_exception
OSError: [Errno 8] Exec format error
root@cloud:/usr/local/www/haiwen/seafile-server #

检查自己的服务器是32位还是64位 版本错了


freebsd 目前不支持