Once seafile source is downloaded, extract it with the following command:
tar -xvzf seafile-server_6.0.6_x86-64.tar.gz
Next, rename seafile-server_6.0.6 directory to seafile-server:
mv seafile-server_6.0.6 seafile-server
Create the Database for Seafile
You will also need to create three database such as ccnet, seafile and seahub for seafile server.
First, exit from the seafile user shell with the following command:
Next, create three database with one user and grant the user to all databases:
First, login to Mysql:
mysql -u root -p
Create three database with the following command:
MariaDB [(none)]> create database ccnet_db character set = 'utf8';MariaDB [(none)]> create database seafile_db character set = 'utf8';MariaDB [(none)]> create database seahub_db character set = 'utf8';
Create a user for these databases:
MariaDB [(none)]> create user seacloud@localhost identified by 'password';
Grant user to the databases:
MariaDB [(none)]> grant all privileges on ccnet_db.* to seacloud@localhost identified by 'password';MariaDB [(none)]> grant all privileges on seafile_db.* to seacloud@localhost identified by 'password';MariaDB [(none)]> grant all privileges on seahub_db.* to seacloud@localhost identified by 'password';
Next flush the privileges and exit from the shell:
Before installing seafile, you will need to login as a seafile user.
To do so, run the following command:
su - seafile
Next, change the directory to seafile-server and install seafile by running setup-seafile-mysql.sh script:
During installation you will be asked about Server Name, Domain/IP, Seafile data directory, Seafile server port configuration and database information, provide each information carefully. Once the installation is completed successfully start seafile and the seahub server:
./seafile.sh start./seahub.sh start
You will be asked about the admin email and password for seafile. Provide each details carefully, then stop seafile now.
./seafile.sh stop./seahub.sh stop
Configuring Seafile Service File
Next, you will need to create seafile and seahub services file to start and stop seafile server.
Create a new service file with named seafile.service inside /lib/systemd/system/ directory:
First, exit from the seafile user shell:
Then create service file for seafile:
sudo nano /lib/systemd/system/seafile.service
Add the following lines:
Truth be told, it’s difficult for a web application that doesn’t have some kind of identification, even if you don’t see it as a security measure in and of itself. The Internet is a kind of lawless land, and even on free services like Google’s, authentication ensures that abuses will...
Although data persistence is almost always a fundamental element of applications, Node.js has no native integration with databases. Everything is delegated to third-party libraries to be included manually, in addition to the standard APIs. Although MongoDB and other non-relational databases are the most common choice with Node because if you...