CentOS 6 – How to build seafile private cloud

Create disk directories
mkdir /yunpan
cd /yunpan
Disk installation package into the directory cloud
wget http://download-cn.seafile.com/seafile-server_4.2.3_x86-64.tar.gz
Or use the RZ command to upload. RZ to use yum to install lrzsz.
3. extract
tar xzvf seafile-server_4.2.3_x86-64.tar.gz
mkdir installed
mv seafile-server_* installed
4. update the yum
yum update -y
yum upgrade -y
5.1 installationrelated environmental package (may not install yum, more prompts to install in manually)
yum install -y python2.7 python-setuptools python-simplejson python-imaging MySQL-python
yum install -y mysql mysql-server
5.2 If you have not installed MySQL-Python and Python-mysqld need to be manually installed on the following two packages
wget http://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.3.tar.gz
wget http://pypi.python.org/packages/2.4/s/setuptools/setuptools-0.6c11-py2.4.egg
1、# yum install python-devel mysql-devel zlib-devel openssl-devel
2, http://pypi.python.org/pypi/MySQL-python/#downloads, download the installation package
# wget http://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.3.tar.gz
3, http://pypi.Python.org/pypi/setuptools#downloads download tool
# wget http://pypi.python.org/packages/2.4/s/setuptools/setuptools-0.6c11-py2.4.egg
4, installing tools
# sh setuptools-0.6c11-py2.4.egg
# python
>>> import setuptools
Do not prompt an error indicating success
5, installation MySQL-python-1.2.3.tar.gz
# tar -zxvf MySQL-python-1.2.3.tar.gz
# cd MySQL-python-1.2.3
# vi setup_posix.py
Find a mysql_config.path line, change mysql_config.path = /usr/bin/mysql_config
# python setup.py build
# python setup.py install
# python
>>> import MySQLdb
Do not prompt an error indicating success
6. install the cloud Server
Should be started before installing MySQL
service mysqld star
mysql -u root -p password LINlin123
What is the name of the server? It will be displayed on the client
[ server name ] YuanYang >>>> define the cloud server name
What is the ip or domain of the server?
[Thisserver’sipordomain]>>>> set a cloud server IP or domain name
What is the ip or domain of the server?
[Default 10001] 80 >>>> the default connection server ports
What is the ip or domain of the server?
[Default /yunpan/installed/seafile-data]/yunpan/data >>>> set the cloud data storage directory
Which port do you want to use for the seafile server?
[Default 12001] 81 >>>> set of cloud server on port 81
Which port do you want to use for the seafile fileserver?
[Default 8082] 82 >>>> sets the port for cloud files service 82
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 new
What is the host of mysql server?
[Default localhost] return >>>>> directly choose to use database
What is the port of mysql server?
[Default 3306] return >>>>> directly to a database port
What is the password of the mysql root user?
[ root password ] LINlin123 >>>>> database root password
Can enter, meet needs reform can
If you are behind a firewall, remember to allow input/output of these tcp ports:
port of ccnet server: 80
port of seafile server: 81
port of seafile fileserver: 82
port of seahub: 8000
When problems occur, Refer to
for information.
See tips on the installation is complete
7.Seafile server startup and configuration
Execute the following command to modify Linux maximum number of open files: 30000
Start the Seafile service./seafile.sh start,
Start the Seahub service./seahub.sh start
8. ccnet.conf configuration
Seafile network configuration (ccnet.conf) can also be defined for other, related configurations are described below:
# Seafile server is not set up
Please do not change the ID #.
# Seafile server name, clients are visible.
# Seahub (Seafile Web) external link. Client is visible.
# The domain part (i.e., www.example.com), also will be used in the file synchronization.
# Note: the external links means that If you’re using Nginx, use Nginx address
# Ccnet listens for client connections through this port. As was occupy change.
# Seafile server is valid.
# Ccnet listens for local connections through this port (such as the Seahub site) requests.
# The port in use by other services, Seafile and Seahub will not work properly.
# If you want to run on the same host Seafile and Seahub, change to port used by the client.

Leave a Reply

Your email address will not be published. Required fields are marked *