CentOS 6.6 Build seafile Private Cloud Disk

Source: Internet
Author: User
Tags seafile

1
Create a Cloud Disk directory
Mkdir/yunpan
Cd/yunpan

2
Put the Cloud disk installation package in the directory
wget http://download-cn.seafile.com/seafile-server_4.2.3_x86-64.tar.gz
or use the RZ command to upload. Use the RZ to install Lrzsz with Yum first.


3. Unzip
Tar xzvf seafile-server_4.2.3_x86-64.tar.gz
mkdir installed
MV Seafile-server_* installed

4. Update Yum
Yum Update-y
Yum Upgrade-y

5.1 Install the relevant environment pack (some may not install the Yum, more prompt manual installation in)
Yum install-y python2.7 python-setuptools python-simplejson python-imaging Mysql-python
Yum install-y MySQL Mysql-server



《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《
5.2 If not installed on Mysql-python and python-mysqld need to manually install 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. Install the tool first

# sh Setuptools-0.6c11-py2.4.egg
# python

>>> Import Setuptools

Do not prompt for error indicates 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 Mysql_config.path Line, change to Mysql_config.path = "/usr/bin/mysql_config"

# python setup.py Build

# python setup.py Install

# python

>>> Import MySQLdb

Do not prompt for error indicates success

》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》


6. Install Cloud Disk Server
Start MySQL before installing

Service Mysqld Star
Mysql-u root-p Password LINlin123

./setup-seafile-mysql.sh

What is the name of the server? It'll be displayed on the client
[Server name] Yuanyang >>>> Define Cloud server name

What is the IP or domain of the server?
[This server ' s IP or domain] 172.16.1.220 >>>> set cloud server IP or domain name


What is the IP or domain of the server?
[Default "10001"] >>>> default port of connection server


What is the IP or domain of the server?
[Default "/yunpan/installed/seafile-data"]/yunpan/data >>>> set cloud disk data storage directory


Which port do you want to use for the Seafile server?
[Default "12001"] Bayi >>>> Set the port of the cloud disk server to 81


Which port do you want to use for the Seafile fileserver?
[Default "8082"] >>>> set the cloud Disk File service port to 82


-------------------------------------------------------
Please choose a-to initialize Seafile databases:
-------------------------------------------------------

[1] Create new Ccnet/seafile/seahub databases
[2] Use existing Ccnet/seafile/seahub databases

[1 or 2] >>>>> general selection 1 new

What's the host of MySQL server?
[Default "localhost"] Direct enter >>>>> Select database to use


What is the port of MySQL server?
[Default "3306"] Direct enter >>>>> port of database

What is the password of the MySQL root user?
[Root Password] Root password for LINlin123 >>>>> database

One side of the basic can go all the way, meet the need to change the change can be




-----------------------------------------------------------------
If You is 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

Https://github.com/haiwen/seafile/wiki

For information.
See the installation complete as prompted


7.Seafile Server Startup and configuration
Execute the following command to modify the maximum number of open Linux files: ulimit-n 30000
Start the Seafile service:./seafile.sh start,
Start Seahub service:./seahub.sh start


8. ccnet.conf Configuration
Seafile Network Configuration (ccnet.conf) can also be used for other definitions, the relevant configuration instructions are as follows:


[General]
# Seafile Server side does not set
User_name=example

# Please do not change this ID.
Id=eb812fd276432eff33bcdde7506f896eb4769da0

# Seafile server name, client visible.
Name=example

# Seahub (Seafile Web) External links. The client is visible.
# Domain Name section (i.e., www.example.com), which is also used in file synchronization.
Note: External links mean "If you use Nginx, please use Nginx related address"
service_url=http://www.example.com:8000

[Network]
# Ccnet listens for client connections through this port. Please change it if it is occupied.
# valid in Seafile server.
port=10001

[Client]
# Ccnet listens for local connections (such as Seahub Web site) requests through this port.
# If this port is occupied by other services, Seafile and Seahub will not work properly.
# If you want to run Seafile and Seahub on the same host, please change the port used by the client.
port=13419




CentOS 6.6 Build seafile Private Cloud Disk

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.