Install Seafile Secure Cloud Storage on CentOS 7
2016-04-01 11:32
465 查看
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
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/
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.
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 ] kashifs@linoxide.com
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.
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_path 改为你的 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 itscross 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 ] kashifs@linoxide.com
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_path 改为你的 Seafile 文件安装路径
seafile_dir=/var/www/storage
script_path=${seafile_dir}/seafile-server-latest
${script_path}/seafile.sh start
${script_path}/seahub.sh start 8000
相关文章推荐
- 虚拟机WM中win7和linux间共享目录的另一解决方法
- Linux Kernel系列一:开篇和Kernel启动概要
- 如何在Linux上安装Node.js
- Linux下批量改动名字方法
- linux上ln命令详细说明
- Linux系统的优点小结
- Linux下GPIO驱动
- CentOS6 安装saltstack
- Linux部分命令
- linux 日志查询常用命令
- Linux下注销登录用户的方法
- 系统的备份恢复
- userdel删除用户时候提示:userdel: user xx is currently logged in
- Linux下用SCP无需输入密码传输文件
- ARM Linux 3.x的设备树(Device Tree)
- centos6.2修改网卡名称
- Linux系统调用列表
- linux下实现定时执行php脚本
- linux设备驱动之led子系统<一>
- linux基础学习2