Set up seafile private cloud disk in centos 6.6
1
Create 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 the file. To use rz, install lrzsz with yum.
3. Extract
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 package (some may not be able to install yum, and more prompt for manual installation in)
Yum install-y python2.7 python-setuptools python-simplejson python-imaging MySQL-python
Yum install-y mysql-server
《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《
5.2 if mysql-python and Python-mysqld are not installed, 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 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
If no error is displayed, the operation is successful.
5. Install 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 line in mysql_config.path and change it to mysql_config.path = "/usr/bin/mysql_config"
# Python setup. py build
# Python setup. py install
# Python
>>> Import MySQLdb
If no error is displayed, the operation is successful.
""
6. Install the cloud disk Server
Start mysql before installation
Service mysqld star
Mysql-u root-p password LINlin123
/Setup-seafile-mysql.sh
What is the name of the server? It will be displayed on the client
[Server name] YuanYang >>> defines the ECS name
What is the ip or domain of the server?
[This server's ip or domain] 172.16.1.220 >>> set the ecs ip address or domain name
What is the ip or domain of the server?
[Default "10001"] 80 >>> default port connecting to the server
What is the ip or domain of the server?
[Default "/yunpan/installed/seafile-data"]/yunpan/data >>> set the cloud disk data storage directory
Which port do you want to use for the seafile server?
[Default "12001"] 81 >>> set the port of the cloud disk server to 81
Which port do you want to use for the seafile fileserver?
[Default "8082"] 82 >>> set the port of the cloud disk file service to 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] >>>>> select 1 to create
What is the host of mysql server?
[Default "localhost"] Press ENTER >>>> select the database to use
What is the port of mysql server?
[Default "3306"] Press ENTER >>>>> database Port
What is the password of the mysql root user?
[Root password] LINlin123 >>>> Database root password
You can press enter all the way, and you can change it if necessary.
-----------------------------------------------------------------
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
Https://github.com/haiwen/seafile/wiki
For information.
The above prompt is displayed, indicating that the installation is complete.
7. Seafile server startup and Configuration
Run the following command to modify the maximum number of opened Linux Files: ulimit-n 30000
Start the Seafile service:./seafile. sh start,
Start the Seahub service:./seahub. sh start
8. ccnet. conf configuration
The Seafile network configuration (ccnet. conf) can also be defined as follows:
[General]
# Disable Seafile settings on the server
USER_NAME = example
# Do not change this ID.
ID = eb812fd276432eff33bcdde7506f896eb4769da0
# Seafile server name, visible to the client.
NAME = example
# Seahub (Seafile Web) External link. visible to the client.
# The domain name section (I. e., www.example.com) will also be used in file synchronization.
# Note: External links mean "if you use Nginx, please use Nginx address"
SERVICE_URL = http://www.example.com: 8000
[Network]
# Ccnet listens to the client connection through this port. If it is occupied, change it.
# Valid in Seafile server.
PORT = 10001
[Client]
# Ccnet listens to local connection (such as Seahub website) 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, change it to the port used by the client.
PORT = 13419