Centos6.8 + nginx + python2.7.13 configure seafile private cloud disk and seafile cloud Disk

Source: Internet
Author: User
Tags seafile

Centos6.8 + nginx + python2.7.13 configure seafile private cloud disk and seafile cloud Disk

This article is a casual note during the building process and is for your reference only.

I am also a newbie to linux systems. Many of the building processes are also learning, while building and searching for relevant materials.

 

Deploy Seafile server (using MySQL)

Install and configure MySQL. The specific process is not described.

 

Seafile server manual, address:

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

Read the relevant documents of the study and build them step by step.

There are basically no problems in the first few steps.

 

Start the Seafile server and Seahub website

  • Start Seafile:
1./seafile. sh start # start the Seafile Service
  • Start Seahub
1./seahub. sh start <port> # start the Seahub website (which runs on port 8000 by default)

When Seahub is started, the problem that the ssl module cannot be found has not been solved after searching for information from many aspects. temporarily, the method of directly starting the website is abandoned and nginx is used for configuration startup.

 

Configure Seahub in Ngnix

Refer to the Seafile document to configure Seahub. The nginx configuration is as follows:

Server {listen 80; # configure server_name www.myseafile.com based on the actual port used; # configure proxy_set_header X-Forwarded-For $ remote_addr based on the actual situation; location/{fastcgi_pass 127.0.0.1: 8000; response SCRIPT_FILENAME $ document_root $ response; Response PATH_INFO $ response; Response SERVER_PROTOCOL $ server_protocol; Response QUERY_STRING $ query_string; Response REQUEST_METHOD $ request_method; Response response $ CONTENT_TYPE; Response 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 (. *) $1 break; proxy_pass http: /127.0.0.1: 8082; client_max_body_size 0; proxy_connect_timeout 36000 s; proxy_read_timeout 36000 s;} location/media {root/Home/user/haiwen/seafile-server-latest/Seahub; # Change to your own seahub path }}

 

Start Seafile and Seahub

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

Started successfully. 

Access through address. The test is successful.

 

Some documents in this article are extracted from the network for your reference.

Enable mysql Remote Access Permissions

1. log on to mysql

1 mysql -u root -p

2. Modify the user table of the mysql database and change the host item from localhost to %. % This indicates that access from any host is allowed. If only one ip address is allowed, you can change it to the corresponding ip address. For example, you can change localhost to 192.168.1.123, this means that only the ip address 192.168.1.123 of the LAN can remotely access mysql.

1 mysql> use mysql;2 mysql> update user set host = '%' where user = 'root'; 3 mysql> select host, user from user;4 mysql> flush privileges;

 

Some Problems During setup:

1. During the setup process, the _ ssl module cannot find the problem, and no solution is found at present,

Temporarily unavailable

1 seahub.sh start

To start the website

2. During the setup process, I studied a large number of linux Command usage methods and simple nginx configuration. The learning process is hard and fun.

 

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.