Centos7.x deployment SeaFile private network disk

1. Installation environment-dependent
yum -y install wge gcc-c ++ ..........

2. Turn off the firewall and Firewalld SElinux
systemctl STOP firewalld
systemct disable firewalld
cd / etc / SELinux / config
to change to enable disabled

3. Install epel, Nux Dextop

Installation epel

rpm -ivh http://mirrors.ustc.edu.cn/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm

Installation Nux Dextop

rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm

4.安装mysql或mariadb
yum -y install mariadb mariadb-server
systemctl enable mariadb
systemctl start mariadb

The initial setting for mariadb
mysql_secure_installation

According to their own content change the settings

The first time you run a blank password, enter.

Enter current password for root (enter for none):

Need to set the root password, enter y enter.

Set root password? [Y / n ] y
and then enter the new password twice.

Delete anonymous users Enter.

Remove anonymous users? [Y/n]

Prohibit root remote login, Enter.

Disallow root login remotely? [Y/n]

Whether to delete the test database, enter.

Remove test database and access to it? [Y/n]

Whether to re-load permission table, Enter.

Reload privilege tables now? [Y/n]

6. Log database
mysql -uroot -p # normal access to the database description has been deployed successfully

7. Set permissions to the database

Allows any remote connection using the root ip

create user 'root' 'remote login password root' @ '%' identified by;

Add permissions to the root

All privileges ON Grant . to 'root' @ '%' IDENTIFIED by 'root password for remote login';

Configuration takes effect immediately

flush privileges;

8. Installation seafile environment-dependent
yum install -y python-memcached python- ldap python-urllib3 python-imaging MySQL-python python-distribute ffmpeg ffmpeg-devel

9. Download Source Package
wget http://seafile-downloads.oss-cn-shanghai.aliyuncs.com/seafile-server_6.2.5_x86-64.tar.gz

10. The decompression Source Package
tar -zxf seafile-server_6.2.5_x86-64.tar.gz -C path

11. enter the uncompressed file to install
cd seafile-Server- *
./setup-seafile-mysql.sh

12. conduct its own settings according to the following contents

Display to the client's service name, enter the service name Enter.

What is the name of the server? It will be displayed on the client.

  • 15 letters or digits
    [ server name ] OpsBakPE

Enter the domain name or ip, due to internal direct ip, enter ip Enter.

What is the ip or domain of the server?
For example: www.mycompany.com, 192.168.1.101
[ This server's ip or domain ] 192.168.16.203

The default, the data files in the / root / seafile-data, the transport.

Where do you want to put your seafile data?
Please use a volume with enough free space
[ default "/root/seafile-data" ]

Use the default file service port 8082, enter.

Which port do you want to use for the seafile fileserver?
[ default "8082" ]

# Seahub use the new database, enter after one 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

Because just installed mariadb, use the default local, Enter.

What is the host of mysql server?
[ default "localhost" ]

Mariadb default port is 3306, Enter.

What is the port of mysql server?
[ default "3306" ]

Seafile as the default user seafile use mariadb, and press Enter.

Enter the name for mysql user of seafile. It would be created if not exists.
[ default "seafile" ]

Enter mariadb seafile user's password and press enter.

Enter the password for mysql user "seafile":
[ password for seafile ]

Use the default database name ccnet-db used as ccnet-server, press Enter.

Enter the database name for ccnet-server:
[ default "ccnet-db" ]

Use the default seafile-db as the database name seafile-server use Enter.

Enter the database name for seafile-server:
[ default "seafile-db" ]

Use the default database name seahub-db used as seahub, Enter.

At The Database name for seahub the Enter:
[default "seahub-db"]
Wait ........ successful silent installation

13. Start service
./seafile.sh start

14. Start port
./seafile.sh start 80 # do not set the default port is port 8000

15. The visit
http: // ip: 80 / # If you do not set the default port number on the line

16. login account password

Guess you like

Origin www.cnblogs.com/lfl17718347843/p/12045250.html