Current location: home page > course > original > CentOS 7 One click installation of Seafile to build private cloud storage

CentOS 7 One click installation of Seafile to build private cloud storage

Published on: June 12, 2017 original 118 comments 134,126 views
This website provides Linux server operation and maintenance, automated script writing and other services. If you need, please contact the blogger on WeChat: xiaozme

Seafile is an open source enterprise cloud disk. Similar to Owncloud, I feel that Seafile is more stable and easy to build. For convenience, Xiaoz wrote a one click script to quickly build his own private cloud.

Environmental requirements

  • CentOS 7 64 bit
  • Python >= 2.7
  • SqLite 3

Start Installation

Copy the following commands and enter them in sequence. If you are not surprised, you will see the following screenshot. Please follow the notes in the screenshot.

 yum -y install wget wget  https://raw.githubusercontent.com/helloxz/seafile/master/install_seafile.sh chmod +x install_seafile.sh && ./ install_seafile.sh
Enter the number 1 for installation
When you see this message, press Enter to continue
Enter the service name (such as mycloud)
Fill in the public IP address of the server
Four returns along the way
Set the administrator's mailbox and password (the password will not be displayed, and enter directly after entering)

When you see the following interface, it indicates that the installation has been completed. Enter it directly http//:IP:8000 Access. As long as you can understand Chinese, the next operation is not a problem. Seafile also provides a multi platform client (see the end of the article).

Enter the mailbox and password you just set to log in

Other instructions

The installation directory and services are as follows. If you need to configure more functions or extensions, please visit the official help document: https://manual-cn.seafile.com/

 #Installation directory /home/MyCloud #Start Service /home/MyCloud/seafile-server/seafile.sh start /home/MyCloud/seafile-server/seahub.sh start #Stop service /home/MyCloud/seafile-server/seafile.sh stop /home/MyCloud/seafile-server/seahub.sh stop

summary

Seafile supports full platform clients, which is very suitable for private cloud solutions. One VPS can handle everything. Once in the article《 CentOS One click Installation of Resilio Sync Script 》I have shared the Resilio Sync one click script, and you can try it if you are interested.

Script source code: https://github.com/helloxz/seafile
Seafile client download: https://www.seafile.com/download/

Post reply

Your email address will not be disclosed. Required items have been used * tagging


118 comments


    1. Hello, this script is no longer updated. It is recommended to refer to the Docker installation method in the official document.

  1. It is installed completely according to this method, but the page cannot be opened after IP access

    1. Check whether the port is listening, and whether the firewall (security group) has released the port. In addition, this project is no longer maintained. It is recommended to refer to the official Seafile help document to install the latest version.

  2. Ask for advice~~
    Why did I use our installation script to change the installation package to version 7.3, but it failed to display after successful installation?
    There is no mistake in the middle.
    I have changed bing to 0.0.0.0:8000. The IP: 8000 can't be opened.

  3. Blogger, is it the cross domain limitation of seafile? I can't use my mobile phone, but my computer can.

  4. What's the matter with my email and password not prompted after my installation? As a result, you cannot log in now

  5. No matter local or webpage upload files always fail, anonymous error, how to solve it, thank you!!!

  6. Hello administrator, I successfully entered the login interface
    However, entering the user name and password always prompts that the password is wrong. My password is clearly correct
    How to solve this problem, thank you!

  7. Thank you very much. The self installation has not been successful. I used your one directly. Thank you Thank you!

  8. Hello, could you tell me the installation method of the next one click deployment? Why didn't you install the database? Are these files and login information not stored in the database?

      1. Well, I followed the research yesterday and changed the path. It seems that I found the update method, but it seems that the script installed with your one button is the latest version. I don't know whether I really found the upgrade method, ha~
        Thank you anyway

  9. Error: the user running the script (“root”) is not the owner of “/cloudfile/oss/seafile” folder, you should use the user “apache” to run the script.
    What is this problem? How to solve it?

  10. How to set auto start
    My seafile.service can start automatically, but seaub.service can't
    The format is as follows
    [Unit]
    Description=Seafile hub
    After=network.target seafile.service

    [Service]
    ExecStart=/home/MyCloud/seafile-server/seahub.sh start
    ExecStop=/home/MyCloud/seafile-server/seahub.sh stop
    User=seafile
    Group=seafile
    Type=oneshot
    RemainAfterExit=yes

    [Install]
    WantedBy=multi-user.target

      1. touch /var/lock/subsys/local
        /home/MyCloud/seafile-server/seafile.sh start
        /home/MyCloud/seafile-server/seahub.sh start
        /home/MyCloud/seafile-server/seafile.sh start
        /home/MyCloud/seafile-server/seahub.sh start
        It may not be a self startup problem. Systemctl start seahub will report errors. The error message is as follows
        Loaded: loaded (/etc/systemd/system/seahub.service; disabled; vendor preset: disabled)
        Active: failed (Result: exit-code) since Wed 2018-05-30 10:49:52 CST; 1min 43s ago
        Process: 1685 ExecStart=/home/MyCloud/seafile-server/seahub.sh start (code=exited, status=217/USER)
        Main PID: 1685 (code=exited, status=217/USER)

        centos-01 systemd[1]: Starting Seafile hub…
        centos-01 systemd[1]: seahub.service: main process exited, code=exited, status=217/USER
        centos-s-1vcpu-1gb-sgp1-01 systemd[1]: Failed to start Seafile hub.
        centos-01 systemd[1]: Unit seahub.service entered failed state.
        centos-1-01 systemd[1]: seahub.service failed.

      2. I install the server according to this script. I have to manually open the seafile service every time I restart it

  11. Thank you for your guidance
    I built it with Google Cloud. After building it, this pop-up appears:
    Congratulations, installation is complete. Please visit: http://

    For help documents, please visit: https://www.xiaoz.me/archives/8480
    Alibaba Cloud users should pay attention to the port (8000/8082): https://www.xiaoz.me/archives/9310

    Is it because it is Google Cloud? esteem it a favor