CentOS 7 install Seafile Server

sudo yum install epel-release

sudo yum update -y && sudo reboot

sudo yum install python python-setuptools python-imaging python-ldap python-memcached MySQL-python mariadb mariadb-server

sudo systemctl start mariadb.service

sudo systemctl enable mariadb.service

sudo /usr/bin/mysql_secure_installation

Enter current password for root (enter for none): enter

Set root password? [Y/n]: Y

New password:

Re-enter new password:

Remove anonymous users? [Y/n]: Y

Disallow root login remotely? [Y/n]: Y

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

Reload privilege tables now? [Y/n]: Y

cd ~

wget https://bintray.com/artifact/download/seafile-org/seafile/seafile-server_6.2.5_x86-64.tar.gz

tar -zxvf seafile-server_6.2.5_x86-64.tar.gz

sudo mkdir -p /opt/seafile/installed

sudo mv seafile-server_6.2.5_x86-64.tar.gz /opt/seafile/installed

sudo mv seafile-server-6.2.5/  /opt/seafile


cd /opt/seafile/seafile-server-6.2.5

sudo ./setup-seafile-mysql.sh

sudo ./seafile.sh start

sudo ./seahub.sh start

sudo firewall-cmd --zone=public --permanent --add-port=8082/tcp

sudo firewall-cmd --zone=public --permanent --add-port=8000/tcp

sudo firewall-cmd --reload

你可能感兴趣的:(CentOS 7 install Seafile Server)