Seafile
Seafile 安裝腳本
下載安裝腳本
wget https://raw.githubusercontent.com/haiwen/seafile-server-installer-cn/master/seafile-server-centos-7-amd64-http
運行安裝腳本並制定安裝版本(例6.3.4)
bash seafile-server-centos-7-amd64-http 6.3.4
This script installs the community edition of the Seafile Server on a Centos 7 64bit
- Newest Seafile server version, MariaDB, Memcached, NGINX -
-----------------------------------------------------------------
This installer is meant to run on a freshly installed machine
only. If you run it on a production server things can and
probably will go terrible wrong and you will loose valuable
data!
For questions or suggestions please contact us at
[email protected]
-----------------------------------------------------------------
Possible options:
1 = Seafile Community (Free) Edition (CE)
2 = Seafile Professional Edition (PRO)
1) CE
2) PRO
3) ABORT
Which Seafile version would you like to install?
輸入1回車就好,指的是安裝開源版
下載安裝包並解壓,安裝 seafile
下載安裝包並解壓
cd /opt/
wget http://seafile-downloads.oss-cn-shanghai.aliyuncs.com/seafile-server_6.3.4_x86-64.tar.gz
tar -zxvf seafile-server_6.3.4_x86-64.tar.gz
安裝seafile-mysql
cd seafile-server-6.3.4/
./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 ] Zyh
What is the ip or domain of the server?
For example: www.mycompany.com, 192.168.1.101
[ This server's ip or domain ] 172.19.158.204
Where do you want to put your seafile data?
Please use a volume with enough free space
[ default "/opt/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 ...
verifying password of user root ...
Failed to connect to mysql server using user "root" and password "***": Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
What is the password of the mysql root user?
[ root password ]
verifying password of user root ...
verifying password of user root ...
Failed to connect to mysql server using user "root" and password "***": Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
What is the password of the mysql root user?
[ root password ]
verifying password of user root ...
verifying password of user root ...
Failed to connect to mysql server using user "root" and password "***": Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
What is the password of the mysql root user?
[ root password ]
verifying password of user root ...
verifying password of user root ...
Failed to connect to mysql server using user "root" and password "***": Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
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" ] 123456
Enter the password for mysql user "123456":
[ password for 123456 ]
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: Zyh
server ip/domain: 172.19.158.204
seafile data dir: /opt/seafile-data
fileserver port: 8082
database: create new
ccnet database: ccnet-db
seafile database: seafile-db
seahub database: seahub-db
database user: 123456
---------------------------------
Press ENTER to continue, or Ctrl-C to abort
---------------------------------
啓動關閉服務
systemctl stop seafile
systemctl stop seahub
systemctl start seafile
systemctl start seahub