Install Seafile Secure Cloud Storage on CentOS 7
5688 ワード
Python Packages
Seafile storage setup requires some puthon modules that must be installed on your server, otherwise your installation setup will be unsuccessful and your will be asked to install all missing dependencies.
You can install the required python modules by using the following command.
# yum install MySQL-python python-imaging python-simplejson python-setuptools
Download Seafile Server Package
Seafile server package can be downloaded from their official link of Seafile Download Page where you can see its cross platform packages. We will be choosing the generic linux 64-bit package as shown.
You can download this package in temp directory using wget command by providing the complete download path as below.
# wget https://bintray.com/artifact/download/seafile-org/seafile/seafile-server_4.4.1_x86-64.tar.gz
When the downloading of package complete, create a new directory in the web document root directory of your server and extract the seafile server package in it.
# mkdir/var/www/storage/# tar -zxvf seafile-server_4.4.1_x86-64.tar.gz -C/var/www/storage/
Seafile Installation Setup
To start the installation setup, move to the folder where we extracted the installation package and execute the following script.
[root@centos-seafile seafile-server]# ./setup-seafile-mysql.sh
The script will check out the required dependencies, then you will be as asked Press the Enter key to continue.
Once you hit the enter key, you will be asked to configure some of its required parameters where you to have to mention your server's name, its FQDN/IP and choose the default port for seafile fileserver.
Then you will be asked to configure your seafile databases, if you have not already created your databases then don't worry and choose the options to create the new databases during the seafile installation setup as shown below.
------------------------------------------------------- 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 "root"] 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"]
After hitting the Enter key, the installation process will continue to configure and setup its configuration and database files as below.
Generating ccnet configuration ...
done Successfully create configuration dir/var/www/storage/ccnet. Generating seafile configuration ...
Done. done Generating seahub configuration ...
---------------------------------------- Now creating seahub database tables ...
----------------------------------------
creating seafile-server-latest symbolic link ... done
Upon successful completion of seafile installation you will be greeted with following usefull information and instructions to continue with other configurations.
Starting Seafile Server
To start the seafile, execute the below seafile script as shown.
[root@centos-seafile seafile-server]# ./seafile.sh start
Then you will be asked to configured your admin email account, you will be greeted with below successful message.
---------------------------------------- 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.
Login to Seahub
Now open any one the web browser to access the seahub dashboard to manage and shared your libraries and folders etc.
Open the URL with your FQDN or Server's IP address with your configured default port and login with admin email address that you created during the seahub server startup.
http://your_servers_ip:8000
サーバ構成:http://manual-cn.seafile.com/config/index.html
起動して、自分でseafile-startを作成します.sh,~の下に置いてsudo運転:
#!/bin/bash#python 2.6(2.7)実行可能ファイルを/usr/binディレクトリの下で#PATH=$PATH:/usr/bin/#userをLinuxユーザー名に変更してください#user=miaoloud#script_パスをSeafileファイルのインストールパスに変更しましたseafile_dir=/var/www/storage script_path=${seafile_dir}/seafile-server-latest ${script_path}/seafile.sh start ${script_path}/seahub.sh start 8000
Seafile storage setup requires some puthon modules that must be installed on your server, otherwise your installation setup will be unsuccessful and your will be asked to install all missing dependencies.
You can install the required python modules by using the following command.
yum install httpd mariadb-server mariadb
systemctl start httpd.service
systemctl start mariadb.service
systemctl enable httpd.service
systemctl enable mariadb.service
mysql_secure_installation;
Set root password ?[Y/N] New passward: your new password
Re-enter passwd......
Y, Y, Y, Y.
# yum install MySQL-python python-imaging python-simplejson python-setuptools
Download Seafile Server Package
Seafile server package can be downloaded from their official link of Seafile Download Page where you can see its cross platform packages. We will be choosing the generic linux 64-bit package as shown.
You can download this package in temp directory using wget command by providing the complete download path as below.
# wget https://bintray.com/artifact/download/seafile-org/seafile/seafile-server_4.4.1_x86-64.tar.gz
When the downloading of package complete, create a new directory in the web document root directory of your server and extract the seafile server package in it.
# mkdir/var/www/storage/# tar -zxvf seafile-server_4.4.1_x86-64.tar.gz -C/var/www/storage/
Seafile Installation Setup
To start the installation setup, move to the folder where we extracted the installation package and execute the following script.
[root@centos-seafile seafile-server]# ./setup-seafile-mysql.sh
The script will check out the required dependencies, then you will be as asked Press the Enter key to continue.
Once you hit the enter key, you will be asked to configure some of its required parameters where you to have to mention your server's name, its FQDN/IP and choose the default port for seafile fileserver.
Then you will be asked to configure your seafile databases, if you have not already created your databases then don't worry and choose the options to create the new databases during the seafile installation setup as shown below.
------------------------------------------------------- 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 "root"] 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"]
After hitting the Enter key, the installation process will continue to configure and setup its configuration and database files as below.
Generating ccnet configuration ...
done Successfully create configuration dir/var/www/storage/ccnet. Generating seafile configuration ...
Done. done Generating seahub configuration ...
---------------------------------------- Now creating seahub database tables ...
----------------------------------------
creating seafile-server-latest symbolic link ... done
Upon successful completion of seafile installation you will be greeted with following usefull information and instructions to continue with other configurations.
Starting Seafile Server
To start the seafile, execute the below seafile script as shown.
[root@centos-seafile seafile-server]# ./seafile.sh start
Then you will be asked to configured your admin email account, you will be greeted with below successful message.
---------------------------------------- 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.
Login to Seahub
Now open any one the web browser to access the seahub dashboard to manage and shared your libraries and folders etc.
Open the URL with your FQDN or Server's IP address with your configured default port and login with admin email address that you created during the seahub server startup.
http://your_servers_ip:8000
サーバ構成:http://manual-cn.seafile.com/config/index.html
起動して、自分でseafile-startを作成します.sh,~の下に置いてsudo運転:
#!/bin/bash#python 2.6(2.7)実行可能ファイルを/usr/binディレクトリの下で#PATH=$PATH:/usr/bin/#userをLinuxユーザー名に変更してください#user=miaoloud#script_パスをSeafileファイルのインストールパスに変更しましたseafile_dir=/var/www/storage script_path=${seafile_dir}/seafile-server-latest ${script_path}/seafile.sh start ${script_path}/seahub.sh start 8000