编程知识 cdmana.com

Centos7 next click Xiaobai to build seafile Pro cloud disk

Preparation before construction

  1. vps Or cloud servers , Personal building and use suggestions Tencent cloud , Alibaba cloud is recommended to build and use the company .

  2. No server partners can follow the link to see , The configuration bandwidth of Tencent cloud will be better than that of Alibaba cloud .

Alicloud new preferential server    

Tencent's special offer

Nonsense , Open up ,,,


putty perhaps WinSCP Tools SSH Connect

command :

yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh

After installing the pagoda , install mysql database , Panel settings can set the user name , Change the password to yourself so that you can remember .

Except for the installation mysql, Ignore everything else


The following is strictly in accordance with the tutorial , One step in place

1. Environmental Science
# install seahub rely on
yum install python python-setuptools MySQL-python python-urllib3 python-ldap -y 

# install office Preview plug-ins  

sudo yum install libreoffice libreoffice-headless libreoffice-pyuno poppler-utils 

# Install font files  

sudo yum install wqy-microhei-fonts wqy-zenhei-fonts wqy-unibit-fonts -y

 


2. Create directory , Upload pro package

# Create installation directory mkdir /opt/seafile # Switch installation directory cd /opt/seafile/
I use it winscp Tools , Put the following installation package in /opt/seafile/ Under the table of contents
# decompression tar -zxvf seafile-pro-server_7.0.19_x86-64.tar.gz 7.0.19 According to your package version number, you can modify the corresponding

3. Execute the installation command

/opt/seafile/seafile-pro-server-7.0.14/setup-seafile-mysql.sh 7.0.19 According to your package version number, you can modify the corresponding

4. Follow the instructions

Checking python on this machine ...
  Checking python module: python-mysqldb ... Done.

Checking for java ...Done.

-----------------------------------------------------------------
This script will guide you to setup your seafile server using MySQL.
Make sure you have read seafile server manual at

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

Press ENTER to continue   Just enter here 
-----------------------------------------------------------------
What is the name of the server? It will be displayed on the client.
3 - 15 letters or digits
[ server name ]  Your site name , Feel free to fill in 
What is the ip or domain of the server?
For example: www.mycompany.com, 192.168.1.101
[ This server's ip or domain ]  Your domain name or this machine IP
Where do you want to put your seafile data?
Please use a volume with enough free space
[ default "/opt/seafile/seafile-data" ]  Default carriage return 
Which port do you want to use for the seafile fileserver?
[ default "8082" ]  Default carriage return 
-------------------------------------------------------
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 ] 1
What is the host of mysql server?
[ default "localhost" ]  Default carriage return 
What is the port of mysql server?
[ default "3306" ]  Default carriage return 
What is the password of the mysql root user?
[ root password ]  Input root password 
verifying password of user root ...  done
Enter the name for mysql user of seafile. It would be created if not exists.
[ default "seafile" ]  Default carriage return 
Enter the password for mysql user "seafile":
[ password for seafile ]  Set up database users seafile Password 
Enter the database name for ccnet-server:
[ default "ccnet-db" ]  Default carriage return 
Enter the database name for seafile-server:
[ default "seafile-db" ]  Default carriage return 
Enter the database name for seahub:
[ default "seahub-db" ]  Default carriage return 
---------------------------------
This is your configuration
---------------------------------

    server name:            seafile
    server ip/domain:       192.168.2.81

    seafile data dir:       /opt/seafile/seafile-data
    fileserver port:        8082

    database:               create new
    ccnet database:         ccnet-db
    seafile database:       seafile-db
    seahub database:        seahub-db
    database user:          seafile

---------------------------------
Press ENTER to continue, or Ctrl-C to abort
---------------------------------
 Continue to enter here 
Generating ccnet configuration ...

done
Successly create configuration dir /opt/seafile/ccnet.
Generating seafile configuration ...

Done.
done
Generating seahub configuration ...

----------------------------------------
Now creating ccnet database tables ...

----------------------------------------
----------------------------------------
Now creating seafile database tables ...

----------------------------------------
----------------------------------------
Now creating seahub database tables ...

----------------------------------------

creating seafile-server-latest symbolic link ...  done

-----------------------------------------------------------------
Your seafile server configuration has been finished successfully.
-----------------------------------------------------------------

run seafile server:     ./seafile.sh { start | stop | restart }
run seahub  server:     ./seahub.sh  { start  | stop | restart  }

-----------------------------------------------------------------
If you are behind a firewall, remember to allow input/output of these tcp ports:
-----------------------------------------------------------------

port of seafile fileserver:   8082
port of seahub:               8000

When problems occur, Refer to

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

for information.
 Installation is now complete 

5. Start and configure the Administrator

  • Create a startup user ( I can't help it root User start , Otherwise search won't work )
# Create user 
useradd --system --comment "seafile" seafile --create-home --home-dir  /home/seafile
# Modify directory permissions 
chown -R seafile.seafile /opt/seafile
  • Start the service
# Switch seafile The user performs the startup 
sudo -u seafile    /opt/seafile/seafile-server-latest/seafile.sh start
#  start-up seahub, You will be prompted to create an administrator user , Installation prompt create 
sudo -u seafile    /opt/seafile/seafile-server-latest/seahub.sh start
 
-----------------------------------------------------
6.  7.0 Above version , Need to be revised ip Text can only be accessed normally
/opt/seafile/conf   In the catalog :gunicorn.conf# default localhost:8000
bind = "127.0.0.1:8000"
127.0.0.1 Change to 0.0.0.08000
Restart after modification
/opt/seafile/seafile-server-latest/seafile.sh start  Restart the service  
/opt/seafile/seafile-server-latest/seahub.sh start   Restart the website 
 Copy code 

This tutorial is for beginners , The only drawback is , There is no reverse proxy , Bind domain name .

ip End exposure , It's OK for personal use


There are cracked versions on the Internet, no limit on the number of people , Seriously, it's not easy to develop , Or don't crack it , Too many users , With the support of the proposal seafile

版权声明
本文为[Tiane55555]所创,转载请带上原文链接,感谢

Scroll to Top