centos6.8+nginx+python2.7.13 Configuring Seafile Private Cloud Disks

Source: Internet
Author: User
Tags seafile

This paper is for the reference only in the process of building the essay with the notes.

I also first know Linux system Novice, a lot of building process, is also the process of learning, while building side search related information.

Deploying Seafile servers (using MySQL)

Installation configuration MySQL, the specific process is no longer described.

Research Seafile Server Manual, Address:

1 https://manual-cn.seafile.com

Read the relevant documentation and build it step by step.

The first few steps are basically no problem, there is a problem at startup

Start Seafile Server and Seahub Web site

    • Start Seafile:
1 ./seafile. sh Start # start Seafile service
    • Start Seahub
1 ./seahub. sh start <port>  # launches Seahub Web site (default on port 8000)

Start Seahub, there is the problem of unable to find the SSL module, after looking for data, there is no solution, temporarily abandon the way to start the site directly, using Nginx to configure the boot.

Ngnix under Configuration Seahub

Refer to the Seafile documentation and configure the Seahub,nginx configuration as follows:

Server {Listen the; #依据实际使用端口配置 server_name www.myseafile.com; #依据实际情况配置 proxy_set_header X-forwarded-For $remote _addr; Location/{Fastcgi_pass127.0.0.1:8000;        Fastcgi_param script_filename $document _root$fastcgi_script_name;        Fastcgi_param path_info $fastcgi _script_name;        Fastcgi_param server_protocol $server _protocol;        Fastcgi_param query_string $query _string;        Fastcgi_param Request_method $request _method;        Fastcgi_param Content_Type $content _type;        Fastcgi_param content_length $content _length;        Fastcgi_param server_addr $server _addr;        Fastcgi_param server_port $server _port;        Fastcgi_param server_name $server _name;        Fastcgi_param remote_addr $remote _addr; Access_log/var/log/nginx/Seahub.access.log; Error_log/var/log/nginx/Seahub.error.log; } Location/seafhttp {rewrite^/seafhttp (. *) $ $1Break ; Proxy_pass http://127.0.0.1:8082;Client_max_body_size0;        Proxy_connect_timeout 36000s;    Proxy_read_timeout 36000s; } Location/Media {root/home/user/haiwen/seafile-server-latest/ seahub; #改为自己seahub路径}}

Start Seafile and Seahub

./seafile.sh start./seahub.sh start-fastcgi

started successfully.  

Through address access, the test was successful.

In this paper, some of the data for the network extraction, for their own reference backup

Turn on MySQL remote access permission

1. Log in to MySQL

1 - -P

2. Modify the user table of the MySQL library and change the host entry from localhost to%. % here is to allow any host access, if only one IP access, you can change to the corresponding IP, such as can be changed to 192.168.1.123, this means that only allow LAN 192.168.1.123 this IP remote access to MySQL.

1Mysql>  UseMySQL;2Mysql> Update User SetHost= '%' where User = 'Root'; 3Mysql> SelectHostUser  from User;4Mysql>FlushPrivileges;

Some problems in the construction process:

1, the construction process, the _ssl module can not find the problem, there is no solution to find the way,

Cannot be used temporarily

1 seahub.sh start

To start the web site

2, the process of building a large number of Linux command use, and nginx simple configuration, the learning process is hard, but also full of fun.

centos6.8+nginx+python2.7.13 Configuring Seafile private Cloud Disks

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.